([\S]+)/', $gene['annotation'] , $match ) ) { $gb = $match[1]; } break; } } assert( isset($gene) ); $locations = $gene['locations']; assert( is_array($locations) ); assert( count($locations) >= 1 ); // set 'foundGene' optional attribute to mappedGene track if $gb is available if( isset($gb) ) { for( $i=0 ; $i= 2 && array_key_exists('sortkey',$_GET) && $_GET['sortkey'] && isset($locations[0][$_GET['sortkey']]) ) { $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( $locations, 'gene_cmp' ); } // jump to browser if there is only one location if( count($locations) == 1 ) { $loc = $locations[0]; $url = "browser_frameoper_proxy.php?" . htmlspecialchars(SID) . "&setspecies=" . $searchparam['species'] . "&setrevision=" . $searchparam['revision'] . "&settarget=" . $loc['target'] . "&setstart=" . $loc['t_start'] . "&setend=" . $loc['t_end']; header( 'Location: ' . $url ); return; } ?> UT Genome Browser Search Results

UT Genome Browser Search Results

gene [] is mapped to locations

keyword:

(back) (top) (clear)

0 ) { ?>
"; print ""; print ""; print ""; print ""; print ""; print ""; } ?>
  Target Range Cover ratio Match ratio
(*)" . $loc['target'] . "" . $loc['t_start'] . " - " . $loc['t_end'] . "" . sprintf( '%3.2f', $loc['cover'] ) . "" . sprintf( '%3.2f', $loc['match'] ) . "