|
require "../conf/SRGD-left.php";
?>
|
| ID |
GroupID |
hHomologs |
seHomologs |
Gene Name |
GeneID |
Chr |
str |
from |
to |
Txn |
Citation |
$i=0;
while ($i<$num_rows) {
$ID=mysql_result($result, $i, "ID");
$GroupID=mysql_result($result, $i, "GroupID");
$Homologs=mysql_result($result, $i, "hHomologs");
$seHomologs=mysql_result($result, $i, "seHomologs");
$Gene_Name=mysql_result($result, $i, "Gene_Name");
$GeneID=mysql_result($result, $i, "GeneID");
$Chr=mysql_result($result, $i, "Chr");
$str=mysql_result($result, $i, "strand");
$from=mysql_result($result, $i, "l_pos");
$to=mysql_result($result, $i, "r_pos");
$Txn=mysql_result($result, $i, "Txn");
$Citation=mysql_result($result, $i, "Citation");
$LinkCitation="";
$Ref=preg_split ('/;/', $Citation);
foreach ($Ref as $reference) {
$Author= preg_replace ('/\[.+\]/', '',$reference);
$Pubmed= preg_replace ('/.+\[/', '',$reference);
$Pubmed= preg_replace ('/\]/', '',$Pubmed);
if (!preg_match('/\D+/',$Pubmed)) {
$LinkCitation= $LinkCitation."$Author";
}else{
$LinkCitation= $LinkCitation.$Author;
}
}
$GeneIDlist.=$GeneID." ";
if ($Homologs == $PrevHomo) { ////////////////////////// Set the backgound color
$BGCOLOR=$PrevBGColor;
}else {
$PrevHomo=$Homologs;
if ($i<$num_rows-1) {
$NextHomo=mysql_result($result, $i+1, "hHomologs");
}else {
$NextHomo="";
}
if ($Homologs==$NextHomo) {
$detColor++;
if ($detColor % 2) {
$BGCOLOR="#c0c0c0";
}else {
$BGCOLOR="#969696";
}
}else {
$BGCOLOR="#FFFFFF";
} // Determine the background color
$PrevBGColor=$BGCOLOR;
} ////////////////////////////////////////////////////////////////////
if ($GeneID == $Query) { ///////////////////////////// set the font color to highlight the query
$fontcolor="ff0000";
}else {
$fontcolor="000000";
} /////////////////////////////////////////////////////////////////////////
?>
HEIGHT="16">> echo"$ID"; ?> |
HEIGHT="16">> echo"$GroupID"?> |
HEIGHT="16">> echo"$Homologs"?> |
HEIGHT="16">> echo"$seHomologs"?> |
HEIGHT="16">> echo"$Gene_Name"?> |
HEIGHT="16">> echo"$GeneID"?> |
HEIGHT="16">> echo"$Chr"?> |
HEIGHT="16">> echo"$str"?> |
HEIGHT="16">> echo"$from"?> |
HEIGHT="16">> echo"$to"?> |
HEIGHT="16">> if ($from) {echo"$Txn";} else {echo "$Txn";} ?> |
HEIGHT="16">> echo"$LinkCitation"?> |
$i++;
}// end while loop
?>
}else {######################################### Gene Strucutre Pages ######################################
?>
Gene Name |
GeneID |
gene_structure |
AltS |
Domains |
Duplication |
$i=0;
while ($i<$num_rows) {
$Homologs=mysql_result($result, $i, "hHomologs");
$Gene_Name=mysql_result($result, $i, "Gene_Name");
$GeneID=mysql_result($result, $i, "GeneID");
$gene_structure=mysql_result($result, $i, "gene_structure");
$AltS=mysql_result($result, $i, "AltS");
$Domains=mysql_result($result, $i, "Domains");
$Duplication=mysql_result($result, $i, "Duplication");
if ($Homologs == $PrevHomo) {
$BGCOLOR=$PrevBGColor;
}else {
$PrevHomo=$Homologs;
if ($i<$num_rows-1) {
$NextHomo=mysql_result($result, $i+1, "hHomologs");
}else {
$NextHomo="";
}
if ($Homologs==$NextHomo) {
$detColor++;
if ($detColor % 2) {
$BGCOLOR="#c0c0c0";
}else {
$BGCOLOR="#969696";
}
}else {
$BGCOLOR="#FFFFFF";
} // Determine the background color
$PrevBGColor=$BGCOLOR;
}
if ($GeneID == $Query) { ///////////////////////////// set the font color to highlight the query
$fontcolor="ff0000";
}else {
$fontcolor="000000";
} /////////////////////////////////////////////////////////////////////////
?>
HEIGHT="16">> echo"$Gene_Name"?> |
HEIGHT="16">> echo"$GeneID"?> |
HEIGHT="16">> $gene_st=transform_gst($gene_structure); if (strpos($gene_st, "version")=== false) {$dbid=$DBID;} else {$dbid=0;} echo"$gene_st"?> |
HEIGHT="16">> echo"$AltS"?> |
HEIGHT="16">> echo"$Domains"?> |
HEIGHT="16">> if (strpos($Duplication, "Not")=== false){$Duplication="$Duplication";} echo"$Duplication";?> |
$i++;
} // end while loop
} // ########################### END ELSE #############################################################
?>
|