[Bioperl-l] Tag handling on SeqFeature::Generic

Marco Aurelio Valtas Cunha mavcunha@gordon.fmrp.usp.br
Tue, 27 Aug 2002 15:24:57 -0300


Hi Bioperl,

I don't think this is the better way to do it, but...
I'm using SeqFeature::Generic to create a GFF2 output, some like this:

#!/usr/bin/perl

my $gff_io = new Bio::SeqFeature::Generic();

--cut--

# Some loop ...

$gff_io->add_tag_value("Target","Sequence:$query");

        print $gff_io->gff_string();

$gff_io->remove_tag("Target");

#end of the loop;


The issue is that I always have to add_tag_value() and then 
remove_tag(), cause AFAIK there's no way to change the tag value once is 
created, am I right? or there's a better way to do this?

Thank you,
Marco Valtas.


-- 
##############################################################
# Atenção meu email mudou para  mavcunha@bit.fmrp.usp.br     #
# Veja porque http://scarecrow.fmrp.usp.br/~mavcunha/public  #
# Attention my email changed to mavcunha@bit.fmrp.usp.br     #
# See why here http://scarecrow.fmrp.usp.br/~mavcunha/public #
##############################################################
Marco Aurélio Valtas Cunha
Laboratório de Bioinformática
Hemocentro de Ribeirão Preto
Faculdade de Medicina de Ribeirão Preto
Universidade de São Paulo
Tel 55 16 3963-9300 R: 9603
http://bit.fmrp.usp.br
http://scarecrow.fmrp.usp.br/~mavcunha/public/
email: mavcunha@bit.fmrp.usp.br