= 2 && array_key_exists('sortkey',$_GET) && array_key_exists($_GET['sortkey'],$genes[0]) ) { $sk = $_GET['sortkey']; if( $_GET['sortrev'] ) { $cmpfunc = "function gene_cmp(\$a,\$b) { if (\$a['$sk']==\$b['$sk']) { return 0; } else { return (\$a['$sk']<\$b['$sk']) ? 1 : -1; } }"; } else { $cmpfunc = "function gene_cmp(\$a,\$b) { if (\$a['$sk']==\$b['$sk']) { return 0; } else { return (\$a['$sk']<\$b['$sk']) ? -1 : 1; } }"; } eval( $cmpfunc ); usort( $genes, 'gene_cmp' ); } // jump to location information if there is only one gene if( count($genes) == 1 ) { $gene = $genes[0]; $url = "browser_keyword_locations.php?" . htmlspecialchars(SID) . "&gid=" . $gene['gid']; header( 'Location: ' . $url ); return; } ?>
Keyword | Length | Match Cnt | Target | Match Range | Match Ratio | Cover Ratio | Clone | Genbank Acc | GI Number | Unigene Cluster ID | Annotation | (*) | "; print "" . $gene['keyword'] . " | "; print isset($gene['len']) ? "".$gene['len']." | " : ""; print isset($gene['matchcnt']) ? " | ".$gene['matchcnt']." | " : ""; print isset($gene['target']) ? " | ".$gene['target']." | " : ""; print isset($gene['range']) ? " | ".$gene['range']." | " : ""; print isset($gene['match']) ? " | ".$gene['match']." | " : ""; print isset($gene['cover']) ? " | ".$gene['cover']." | " : ""; print isset($gene['clone']) ? " | ".$gene['clone']." | " : ""; print isset($gene['gb']) ? " | ".$gene['gb']." | " : ""; print isset($gene['gi']) ? " | ".$gene['gi']." | " : ""; print isset($gene['ug']) ? " | ".$gene['ug']." | " : ""; print " | " . $gene['annotation'] . " | "; print ""; } ?>
---|