NAME

GenOO::Data::File::FASTA - Object implementing methods for accessing fasta formatted files (http://genome.ucsc.edu/FAQ/FAQformat#format1)

SYNOPSIS

# Object that manages a fasta file.

# To initialize
my $fasta_parser = GenOO::Data::File::FASTA->new(
    file            => undef,
);

DESCRIPTION

This object offers methods to read a fasta file line by line.

EXAMPLES

# 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;