[Bioperl-l] Cloning Bio::Search::Result::GenericResult

Remi remi.planel at free.fr
Fri May 28 10:29:50 UTC 2010


Hi all,

I would like to get a clone of a Bio::Search::Result::GenericResult 
object and I'm not sure of what I'm doing ...

I've tried something like :

/my $searchIn = Bio::SearchIO->new(
    -file   => 'result.bls',
    -format => 'blastxml',
);

my $result = $searchIn->next_result;
my $result_copy = $result->new($result);


/It seems to work but I'm not sure to understand how.
So I would like to know if I'll get in trouble using this code and if 
all the fields are copied one by one.


Thank you,

Rémi

//



More information about the Bioperl-l mailing list