bpp-seq3
3.0.0
|
#include <Bpp/Seq/Io/AbstractIAlignment.h>
Public Member Functions | |
AbstractIProbabilisticAlignment () | |
virtual | ~AbstractIProbabilisticAlignment () |
const std::string | getDataType () const |
virtual const std::string | getFormatName () const=0 |
virtual const std::string | getFormatDescription () const=0 |
IProbabilisticAlignment methods: | |
void | readAlignment (std::istream &input, ProbabilisticSequenceContainerInterface &sc) const override |
Add sequences to a container from a stream. More... | |
void | readAlignment (const std::string &path, ProbabilisticSequenceContainerInterface &sc) const override |
Add sequences to a container from a file. More... | |
std::unique_ptr< ProbabilisticSiteContainerInterface > | readAlignment (const std::string &path, std::shared_ptr< const Alphabet > alpha) const override |
Create a new container from a file. More... | |
std::unique_ptr< ProbabilisticSiteContainerInterface > | readAlignment (std::istream &input, std::shared_ptr< const Alphabet > alpha) const override |
Create a new container from a stream. More... | |
Protected Member Functions | |
virtual void | appendAlignmentFromStream (std::istream &input, ProbabilisticSequenceContainerInterface &sc) const =0 |
Append sequences to a container from a stream. More... | |
virtual void | appendAlignmentFromFile (const std::string &path, ProbabilisticSequenceContainerInterface &sc) const |
Append sequences to a container from a file. More... | |
virtual std::unique_ptr< ProbabilisticSiteContainerInterface > | readAlignmentFromStream (std::istream &input, std::shared_ptr< const Alphabet > &alpha) const |
Read sequences from a stream. More... | |
virtual std::unique_ptr< ProbabilisticSiteContainerInterface > | readAlignmentFromFile (const std::string &path, std::shared_ptr< const Alphabet > &alpha) const |
Read sequences from a file. More... | |
Definition at line 184 of file AbstractIAlignment.h.
|
inline |
Definition at line 188 of file AbstractIAlignment.h.
|
inlinevirtual |
Definition at line 189 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 250 of file AbstractIAlignment.h.
References appendAlignmentFromStream().
Referenced by readAlignment(), readAlignmentFromFile(), and bpp::AbstractIProbabilisticAlignment2::readSequences().
|
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. |
Implemented in bpp::Pasta.
Referenced by appendAlignmentFromFile(), readAlignment(), readAlignmentFromStream(), and bpp::AbstractIProbabilisticAlignment2::readSequences().
|
inlinevirtualinherited |
|
inlineoverridevirtual |
Add sequences to a container from a file.
path | The path to the file to read. |
sc | The sequence container to update. |
Implements bpp::IProbabilisticAlignment.
Definition at line 215 of file AbstractIAlignment.h.
References appendAlignmentFromFile().
|
inlineoverridevirtual |
Create a new container from a file.
path | The path to the file to read. |
alpha | The alphabet to be associated to the container. |
Implements bpp::IProbabilisticAlignment.
Definition at line 220 of file AbstractIAlignment.h.
References readAlignmentFromFile().
|
inlineoverridevirtual |
Add sequences to a container from a stream.
input | The input stream to read. |
sc | The sequence container to update. |
Implements bpp::IProbabilisticAlignment.
Definition at line 204 of file AbstractIAlignment.h.
References appendAlignmentFromStream().
Referenced by bpp::AbstractIProbabilisticAlignment2::readSequences().
|
inlineoverridevirtual |
Create a new container from a stream.
input | The input stream to read. |
alpha | The alphabet to be associated to the container. |
Implements bpp::IProbabilisticAlignment.
Definition at line 225 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. |
Definition at line 280 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. |
Definition at line 266 of file AbstractIAlignment.h.
References appendAlignmentFromStream().
Referenced by readAlignment().