[Bioperl-l] RE: [Gmod-gbrowse] gbrowse: creating link based on 'Note' feature

Marc Logghe Marc.Logghe at devgen.com
Tue Nov 4 09:47:29 EST 2003



> -----Original Message-----
> From: Charles Hauser [mailto:chauser at duke.edu]
> Sent: Tuesday, November 04, 2003 3:43 PM
> To: BioPerl-List; GBrowse
> Subject: [Gmod-gbrowse] gbrowse: creating link based on 'Note' feature
> 
> 
> 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');
tags are case sensitive, so you should call:
my @notes = $feature->get_tag_values('Note');
                                      ~~~~

HTH,
Marc



More information about the Bioperl-l mailing list