[Bioperl-l] gbrowse: creating link based on 'Note' feature
Charles Hauser
chauser at duke.edu
Tue Nov 4 09:40:12 EST 2003
All,
I'd like to create a link for a tract using an element in the 'Note'
field (gff-2) which contains a genbank accn.
$feat->add_tag_value('Note', $blat_feat->seq_id);
where $blat_feat->seq_id = genbank accn
this returns the link lacking a value for $notes[0].
link = sub {
my $feature = shift;
my @notes = $feature->get_tag_values('note');
my $link = "http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=search&db=Nucleotide&term=$notes[0]";
return $link;
}
Charles
More information about the Bioperl-l
mailing list