GenOO::Data::File::FASTA - Object implementing methods for accessing fasta formatted files (http://genome.ucsc.edu/FAQ/FAQformat#format1)
# Object that manages a fasta file. # To initialize my $fasta_parser = GenOO::Data::File::FASTA->new( file => undef, );
This object offers methods to read a fasta file line by line.
# Create object my $fasta_parser = GenOO::Data::File::FASTA->new( file => 't/sample_data/sample.fasta.gz' ); # Read one record at a time my $record = $fasta_parser->next_record; # Get the number of records read my $count = $fasta_parser->records_read_count;
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.