[Bioperl-l] BioPerl object deep copy

Mark A. Jensen maj at fortinbras.us
Mon Sep 28 16:05:42 UTC 2009


For some relatively careful examples of cloning code, 
you can look at the source for 
Bio::Tree::TreeFunctionsI::clone
and 
Bio::Restriction::Enzyme::clone (not clone_depr)
MAJ

----- Original Message ----- 
From: "Paolo Pavan" <paolo.pavan at gmail.com>
To: <bioperl-l at lists.open-bio.org>
Sent: Monday, September 28, 2009 11:51 AM
Subject: [Bioperl-l] BioPerl object deep copy


> Hi all,
> I would like to have just a programming hint, there is a way in
> bioperl (or just in perl) to get an deep copy or a clone of an object?
> That is, I get a new object with all the fields copied one by one.
> 
> At least, can I do so for a Bio::SeqI or a Bio::AlignI compliant object?
> 
> Thank you,
> Paolo
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/bioperl-l
> 
>



More information about the Bioperl-l mailing list