Skip to content

Commit

Permalink
Confidence score is now linked to a specific target
Browse files Browse the repository at this point in the history
  • Loading branch information
egonw committed Apr 7, 2012
1 parent bc06bce commit 0d11201
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions assays.php
Expand Up @@ -41,10 +41,16 @@

$props = mysql_query("SELECT DISTINCT * FROM assay2target WHERE assay_id = " . $row['assay_id']);
while ($prop = mysql_fetch_assoc($props)) {
if ($prop['tid'])
echo triple( $assay, $ONTO . "hasTarget", $TRG . "t" . $prop['tid'] );
if ($prop['confidence_score'])
echo typeddata_triple( $assay, $ONTO . "hasConfScore", $prop['confidence_score'], $XSD . "int" );
if ($prop['tid']) {
$targetURI = $TRG . "t" . $prop['tid'];
echo triple( $assay, $ONTO . "hasTarget", $targetURI );
if ($prop['confidence_score']) {
$targetScore = $assay . "/score/t" . $prop['tid'];
echo triple( $assay, $ONTO . "hasTargetScore", $targetScore);
echo triple( $targetScore, $ONTO . "forTarget", $targetURI);
echo typeddata_triple( $targetScore, $ONTO . "hasConfScore", $prop['confidence_score'], $XSD . "int" );
}
}
}
echo triple( $assay, $ONTO . "hasAssayType", $ONTO . $row['assay_desc'] );
}
Expand Down

0 comments on commit 0d11201

Please sign in to comment.