GenOO::TranscriptCollection::Factory::FromGeneCollection - Factory to create GenOO::TranscriptCollection object from a GeneCollection
# Creates GenOO::TranscriptCollection object from a GeneCollection # Preferably use it through the generic GenOO::TranscriptCollection::Factory my $factory = GenOO::TranscriptCollection::Factory->create('FromGeneCollection',{ gene_collection => $gene_collection });
An instance of this class is a concrete factory for the creation of a L<GenOO::TranscriptCollection> object from a GeneCollection. It offers the method "read_collection" (as the consumed role requires) which returns the actual L<GenOO::TranscriptCollection> object in the form of L<GenOO::RegionCollection::Type::DoubleHashArray>. The latter is the implementation of the L<GenOO::RegionCollection> class based on the complex data structure L<GenOO::Data::Structure::DoubleHashArray>.
# Create a concrete factory my $factory_implementation = GenOO::TranscriptCollection::Factory->create('FromTranscriptCollection',{ gene_collection => $gene_collection }); # Return the actual GenOO::TranscriptCollection object my $collection = $factory_implementation->read_collection; print ref($collection) # GenOO::RegionCollection::Type::DoubleHashArray
To install GenOO, copy and paste the appropriate command in to your terminal.
cpanm
cpanm GenOO
CPAN shell
perl -MCPAN -e shell install GenOO
For more information on module installation, please visit the detailed CPAN module installation guide.