Bio::Factory::SequenceFactoryI 1.4 review
DownloadBio::Factory::SequenceFactoryI is a Perl interface that allows for generic building of sequences in factories which create sequences
|
|
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