bpp-seq
2.2.0
|
Partial implementation of the IAlignment interface, dedicated to alignment readers. More...
#include <Bpp/Seq/Io/AbstractIAlignment.h>
Public Member Functions | |
AbstractIAlignment () | |
virtual | ~AbstractIAlignment () |
const std::string | getDataType () const |
IAlignment methods: | |
virtual void | readAlignment (std::istream &input, SiteContainer &sc) const throw (Exception) |
Add sequences to a container from a stream. More... | |
virtual void | readAlignment (const std::string &path, SiteContainer &sc) const throw (Exception) |
Add sequences to a container from a file. More... | |
virtual AlignedSequenceContainer * | readAlignment (const std::string &path, const Alphabet *alpha) const throw (Exception) |
Create a new container from a file. More... | |
virtual AlignedSequenceContainer * | readAlignment (std::istream &input, const Alphabet *alpha) const throw (Exception) |
Create a new container from a stream. More... | |
Protected Member Functions | |
virtual void | appendAlignmentFromStream (std::istream &input, SiteContainer &sc) const =0 throw (Exception) |
Append sequences to a container from a stream. More... | |
virtual void | appendAlignmentFromFile (const std::string &path, SiteContainer &sc) const throw (Exception) |
Append sequences to a container from a file. More... | |
virtual AlignedSequenceContainer * | readAlignmentFromStream (std::istream &input, const Alphabet *alpha) const throw (Exception) |
Read sequences from a stream. More... | |
virtual AlignedSequenceContainer * | readAlignmentFromFile (const std::string &path, const Alphabet *alpha) const throw (Exception) |
Read sequences from a file. More... | |
Partial implementation of the IAlignment interface, dedicated to alignment readers.
Definition at line 58 of file AbstractIAlignment.h.
|
inline |
Definition at line 63 of file AbstractIAlignment.h.
|
inlinevirtual |
Definition at line 64 of file AbstractIAlignment.h.
|
inlineprotectedvirtual |
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 143 of file AbstractIAlignment.h.
References appendAlignmentFromStream().
Referenced by readAlignment(), and readAlignmentFromFile().
|
protectedpure 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. |
Implemented in bpp::Mase, bpp::Phylip, bpp::Fasta, bpp::NexusIOSequence, bpp::Clustal, and bpp::DCSE.
Referenced by appendAlignmentFromFile(), readAlignment(), and readAlignmentFromStream().
|
inlineinherited |
Definition at line 65 of file IoSequence.h.
|
inlinevirtual |
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. |
Definition at line 81 of file AbstractIAlignment.h.
References appendAlignmentFromStream().
Referenced by bpp::DCSE::readSequences(), bpp::Clustal::readSequences(), bpp::NexusIOSequence::readSequences(), and bpp::Phylip::readSequences().
|
inlinevirtual |
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. |
Definition at line 93 of file AbstractIAlignment.h.
References appendAlignmentFromFile().
|
inlinevirtual |
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::IAlignment.
Definition at line 104 of file AbstractIAlignment.h.
References readAlignmentFromFile().
|
inlinevirtual |
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::IAlignment.
Definition at line 115 of file AbstractIAlignment.h.
References readAlignmentFromStream().
|
inlineprotectedvirtual |
Read sequences 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 173 of file AbstractIAlignment.h.
References appendAlignmentFromFile().
Referenced by readAlignment().
|
inlineprotectedvirtual |
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 158 of file AbstractIAlignment.h.
References appendAlignmentFromStream().
Referenced by readAlignment().