bpp-seq3
3.0.0
|
The GenBank sequence file format. More...
#include <Bpp/Seq/Io/GenBank.h>
Public Member Functions | |
GenBank () | |
Build a new GenBank object. More... | |
virtual | ~GenBank () |
const std::string | getDataType () const |
The AbstractISequence interface. | |
void | appendSequencesFromStream (std::istream &input, SequenceContainerInterface &sc) const |
Append sequences to a container from a stream. More... | |
The IOSequence interface. | |
const std::string | getFormatName () const |
const std::string | getFormatDescription () const |
ISequence methods: | |
void | readSequences (std::istream &input, SequenceContainerInterface &sc) const override |
Add sequences to a container from a stream. More... | |
void | readSequences (const std::string &path, SequenceContainerInterface &sc) const override |
Add sequences to a container from a file. More... | |
std::unique_ptr< SequenceContainerInterface > | readSequences (std::istream &input, std::shared_ptr< const Alphabet > alpha) const override |
Create a new container from a stream. More... | |
std::unique_ptr< SequenceContainerInterface > | readSequences (const std::string &path, std::shared_ptr< const Alphabet > alpha) const override |
Create a new container from a file. More... | |
Protected Member Functions | |
virtual void | appendSequencesFromFile (const std::string &path, SequenceContainerInterface &sc) const |
Append sequences to a container from a file. More... | |
std::unique_ptr< SequenceContainerInterface > | readSequencesFromStream (std::istream &input, std::shared_ptr< const Alphabet > &alpha) const |
Read sequences from a stream. More... | |
std::unique_ptr< SequenceContainerInterface > | readSequencesFromFile (const std::string &path, std::shared_ptr< const Alphabet > &alpha) const |
Append sequences to a container from a file. More... | |
The GenBank sequence file format.
For now, only read raw sequences. Features are not yet supported.
|
inline |
|
inlineprotectedvirtualinherited |
Append sequences to a container from a file.
path | The path to the file to read. |
sc | The sequence container to update. |
Exception | If the file is not in the specified format. |
Definition at line 92 of file AbstractISequence.h.
References bpp::AbstractISequence::appendSequencesFromStream().
Referenced by bpp::AbstractISequence::readSequences(), and bpp::AbstractISequence::readSequencesFromFile().
|
virtual |
Append sequences to a container from a stream.
This is the unique method to implement!
input | The input stream to read. |
sc | The sequence container to update. |
Exception | If the file is not in the specified format. |
Implements bpp::AbstractISequence.
Definition at line 15 of file GenBank.cpp.
References bpp::TemplateSequenceContainerInterface< SequenceType, HashType >::addSequence(), bpp::TemplateSequenceDataInterface< HashType >::getAlphabet(), bpp::StringTokenizer::nextToken(), bpp::TextTools::removeSurroundingWhiteSpaces(), and bpp::TextTools::removeWhiteSpaces().
|
inlinevirtualinherited |
|
inlinevirtual |
Implements bpp::IOFormat.
|
inlinevirtual |
Implements bpp::IOFormat.
|
inlineoverridevirtualinherited |
Add sequences to a container from a file.
path | The path to the file to read. |
sc | The sequence container to update. |
Exception | If the file is not in the specified format. |
Implements bpp::ISequence.
Definition at line 57 of file AbstractISequence.h.
References bpp::AbstractISequence::appendSequencesFromFile().
|
inlineoverridevirtualinherited |
Create a new container from a file.
path | The path to the file to read. |
alpha | The alphabet to be associated to the container. |
Exception | If the file is not in the specified format. |
Implements bpp::ISequence.
Definition at line 67 of file AbstractISequence.h.
References bpp::AbstractISequence::readSequencesFromFile().
|
inlineoverridevirtualinherited |
Add sequences to a container from a stream.
input | The input stream to read. |
sc | The sequence container to update. |
Exception | If the file is not in the specified format. |
Implements bpp::ISequence.
Definition at line 45 of file AbstractISequence.h.
References bpp::AbstractISequence::appendSequencesFromStream().
Referenced by bpp::Mase::readMeta().
|
inlineoverridevirtualinherited |
Create a new container from a stream.
input | The input stream to read. |
alpha | The alphabet to be associated to the container. |
Exception | If the file is not in the specified format. |
Implements bpp::ISequence.
Definition at line 62 of file AbstractISequence.h.
References bpp::AbstractISequence::readSequencesFromStream().
|
inlineprotectedinherited |
Append sequences to a container from a file.
path | The path to the file to read. |
alpha | The alphabet to use. |
Exception | If the file is not in the specified format. |
Definition at line 123 of file AbstractISequence.h.
References bpp::AbstractISequence::appendSequencesFromFile().
Referenced by bpp::AbstractISequence::readSequences().
|
inlineprotectedinherited |
Read sequences from a stream.
input | The input stream to read. |
alpha | The alphabet to use. |
Exception | If the file is not in the specified format. |
Definition at line 109 of file AbstractISequence.h.
References bpp::AbstractISequence::appendSequencesFromStream().
Referenced by bpp::AbstractISequence::readSequences().