Bio::SeqReader::FastaRecord - Class providing methods for representing identifier, description, and sequence information in FASTA records.
use Bio::SeqReader::FastaRecord;
my $so = new Bio::SeqReader::FastaRecord(); $so->seq( 'ACGTACGT' ); print $so->seq(); # => ACGTACGT
Class representing a sequence in FASTA format. Display id, description, and sequence text are accessed by the object's getter-setter methods.
Bio::SeqReader::FastaRecord provides no class methods.
Bio::SeqReader::FastaRecord provides the following instance methods.
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', );
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
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 a Bio::SeqReader::FastaRecord object.
Getter-setter for the sequence text from a Bio::SeqReader::FastaRecord object.
$so->seq( 'ACGTACGT' ); print $so->seq(); # => ACGTACGT
Perl core.
None reported yet, but let me know.
Bio::SeqReader::Fasta, Bio::SeqReader.
John A. Crow <jac_at_cpan_dot_org>
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
To install Bio::SeqReader, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bio::SeqReader
CPAN shell
perl -MCPAN -e shell install Bio::SeqReader
For more information on module installation, please visit the detailed CPAN module installation guide.