[Bioperl-l] Attribute Tags in Bio::Tools::GFF & Bio::SeqFeature::Generic

Lee Ping Alison g0404203 at nus.edu.sg
Wed Jan 19 01:57:34 EST 2005


Hi,

Referring to the last column of the GFF file format which holds various user-specified attributes (tags), if I need to read in a GFF file and output the information to another GFF file, how do I retain the tags in the output?

e.g. 
i've used the following code:

my $gff = Bio::Tools::GFF->new(-file => $file, -gff_version => 2);
my $f = $gff->next_feature;
print $f->gff_string, "\n";


input is:
chr13   hg15.chr13      transcript      17950005        17951026        .       .       .       -name "chr13.0"

the output becomes:
chr13   hg15.chr13      transcript      17950005        17951026        .       .       .


Is there some way to retain the tag information? I figure this is related to the way the GFF line is parsed and the way the Generic feature object is created.

Thanks a lot in advance!

Best Regards,
Alison.


More information about the Bioperl-l mailing list