I am writing a Perl application that processes a lot of GFF3 data. I'm using BioPerl's GFF3 parser (Bio::Tools::GFF
) which returns objects of type Bio::SeqFeature::Generic
. I have written a class (let's call it My::Feature
) that extends the Bio::SeqFeature::Generic
class a bit with some methods that make it easier to work with the objects.
My question is how to create an object of this new type from an existing Bio::SeqFeature::Generic
object. I want to continue to use the BioPerl GFF3 parser to do all the hard work, but that parser gives me Bio::SeqFeature::Generic
objects. Once I have one of these objects, how could I convert it into a My::Feature
object?
Thanks.
PS. Maybe I'm asking the wrong question. Maybe I should be asking if there is a way for the Bio::Tools::GFF
parser to return My::Feature
objects.