[Bioperl-l] Bio::SeqFeature::Generic clone()

Chris Fields cjfields at illinois.edu
Mon Jun 14 12:58:40 EDT 2010


Both Data::Dumper and Storable are part of perl core now.  I've used Clone.pm w/o problems in some of my code, and wouldn't have a problem adding that as a dependency for bioperl (it's currently listed as a recommended module).

chris

On Jun 14, 2010, at 11:35 AM, Lincoln Stein wrote:

> I suggest that you use Data::Dumper to implement clone (or alternatively
> Storable's dclone() method). I just had a look at how I did the clone in
> Lite, and it is a bit fragile if someone subclasses Lite.
> 
> I also think there is a Clone module in CPAN.
> 
> Lincoln
> 
> On Mon, Jun 14, 2010 at 12:30 PM, Jay Hannah <jay at jays.net> wrote:
> 
>> Hola,
>> 
>> I seem to be in need of an easy way to copy features. Bio::SeqFeature::Lite
>> has a clone() method, but Bio::SeqFeature::Generic doesn't. So I'll be
>> adding one unless someone points out that this is a bad idea for some
>> reason.
>> 
>> Also, this seems insufficient for a branch, so it'll just be a single
>> commit to master unless someone slaps me.
>> 
>> Thanks,
>> 
>> Jay Hannah
>> http://biodoc.ist.unomaha.edu/wiki/User:Jhannah
>> 
>> 
>> _______________________________________________
>> Bioperl-l mailing list
>> Bioperl-l at lists.open-bio.org
>> http://lists.open-bio.org/mailman/listinfo/bioperl-l
>> 
> 
> 
> 
> -- 
> Lincoln D. Stein
> Director, Informatics and Biocomputing Platform
> Ontario Institute for Cancer Research
> 101 College St., Suite 800
> Toronto, ON, Canada M5G0A3
> 416 673-8514
> Assistant: Renata Musa <Renata.Musa at oicr.on.ca>
> _______________________________________________
> 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