ソースを参照

wasn't passing link_id to gbrowse linkout

E.Cannon 9 年 前
コミット
7e6c5a7204
1 ファイル変更8 行追加5 行削除
  1. 8 5
      includes/blast_ui.linkouts.inc

+ 8 - 5
includes/blast_ui.linkouts.inc

@@ -157,12 +157,15 @@ function tripal_blast_generate_linkout_gbrowse($url_prefix, $hit, $info, $option
    $min = min($coords);
    $max = max($coords);
    $joined_ranges = join ("," , $ranges);
-   $track_name = $hit->{'hit_name'} . '_' . $info['query_name'] . '_' . $info['e-value'];
+//   $track_name = $hit->{'hit_name'} . '_' . $info['query_name'] . '_' . $info['e-value'];
+   $track_name = $hit->{'linkout_id'} . '_' . $info['query_name'] . '_' . $info['e-value'];
    
-   $url_postfix = 'query=';
-   $url_postfix .= 'start=' . $min . ';stop=' . $max;
-   $url_postfix .= ';ref=' . $hit->{'hit_name'};
-   $url_postfix .= ';add=' . $hit->{'hit_name'} . '+BLAST+Query+' . $joined_ranges;
+//   $url_postfix = 'query=';
+   $url_postfix = 'start=' . $min . ';stop=' . $max;
+//   $url_postfix .= ';ref=' . $hit->{'hit_name'};
+//   $url_postfix .= ';add=' . $hit->{'hit_name'} . '+BLAST+Query+' . $joined_ranges;
+   $url_postfix .= ';ref=' . $hit->{'linkout_id'};
+   $url_postfix .= ';add=' . $hit->{'linkout_id'} . '+BLAST+Query+' . $joined_ranges;
    $url_postfix .= ';h_feat=Query';
 
    return $url_prefix . $url_postfix;