NAME

Bio::SeqReader::FastaRecord - Class providing methods for representing identifier, description, and sequence information in FASTA records.

SYNOPSIS

use Bio::SeqReader::FastaRecord;

EXAMPLES

my $so = new Bio::SeqReader::FastaRecord();
$so->seq( 'ACGTACGT' );
print $so->seq();       # => ACGTACGT

DESCRIPTION

Class representing a sequence in FASTA format. Display id, description, and sequence text are accessed by the object's getter-setter methods.

CLASS METHODS

Bio::SeqReader::FastaRecord provides no class methods.

INSTANCE METHODS

Bio::SeqReader::FastaRecord provides the following instance methods.

new()

Returns a new Bio::SeqReader::FastaRecord object.

# Void constructor
my $so = new Bio::SeqReader::FastaRecord();

# Constructor with initial values
my $so = new Bio::SeqReader::FastaRecord(
                display_id  => 'R_12345',
                description => 'Predicted kinase gene',
                seqtext     => 'ACGTACGT',
                );
desc()

Getter-setter for the description text of a Bio::SeqReader::FastaRecord object.

$so->desc( 'R_12345 read info ...' );
print $so->desc();   # => R_12345 read info
display_id()

Getter-setter for the display id of a Bio::SeqReader::FastaRecord object.

$so->display_id( 'R_12345 read info ...' );
print $so->display_id();   # => R_12345 read info
reset()

Reset a Bio::SeqReader::FastaRecord object.

seq()

Getter-setter for the sequence text from a Bio::SeqReader::FastaRecord object.

$so->seq( 'ACGTACGT' );
print $so->seq();   # => ACGTACGT

EXTERNAL DEPENDENCIES

Perl core.

BUGS

None reported yet, but let me know.

SEE ALSO

Bio::SeqReader::Fasta, Bio::SeqReader.

AUTHOR

John A. Crow <jac_at_cpan_dot_org>

COPYRIGHT AND LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.

Copyright (C) 2012 by John A. Crow
Copyright (C) 2012 by National Center for Genome Resources