Bio::Fasta
Inherits Bio::SequenceDB < Reference < Object
Fasta SequenceDB created from a fasta file.
The descriptors of each sequence will be based on the fields separated by '|' as defined in the format. Descriptor names can be provided optionally for further filtering.
Constructors
new(str : String, id_field : Int32 = 0, descriptor_names = nil, sequence_type = Bio::SequenceType::Undefined)
Creates a new Fasta object from a fasta-formatted String. id_field is the univocal identificator of the sequence within the database. descriptor_names can be optionally provided for the fields within the sequence header.
Class methods
from_file(path, id_field = 0, descriptor_names = nil, sequence_type = Bio::SequenceType::Undefined)
Creates a new Fasta object from a local fasta file.