Bio::Factory::SequenceFactoryI 1.4 review

Download
by rbytes.net on

Bio::Factory::SequenceFactoryI is a Perl interface that allows for generic building of sequences in factories which create sequences

License: Perl Artistic License
File size: 4788K
Developer: Jason Stajich
0 stars award from rbytes.net

Bio::Factory::SequenceFactoryI is a Perl interface that allows for generic building of sequences in factories which create sequences (like SeqIO).

SYNOPSIS

# do not use this object directly it is an interface # get a Bio::Factory::SequenceFactoryI object like
use Bio::Seq::SeqFactory;
my $seqbuilder = new Bio::Seq::SeqFactory('type' => 'Bio::PrimarySeq');

my $seq = $seqbuilder->create(-seq => 'ACTGAT',
-display_id => 'exampleseq');

print "seq is a ", ref($seq), "n";

A generic way to build Sequence objects via a pluggable factory. This reduces the amount of code that looks like
if( $type eq 'Bio::PrimarySeq' ) { ... }
elsif( $type eq 'Bio::Seq::RichSeq' ) { ... }

Requirements:
Perl

Bio::Factory::SequenceFactoryI 1.4 keywords