The IAlignment interface.
More...
#include <Bpp/Seq/Io/ISequence.h>
The IAlignment interface.
This interface defines the basic methods for reading aligned sequences from a file.
Definition at line 85 of file ISequence.h.
◆ IAlignment()
bpp::IAlignment::IAlignment |
( |
| ) |
|
|
inline |
◆ ~IAlignment()
virtual bpp::IAlignment::~IAlignment |
( |
| ) |
|
|
inlinevirtual |
◆ getDataType()
const std::string bpp::IOSequence::getDataType |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ readAlignment() [1/4]
Create a new container from a file.
- Parameters
-
path | The path to the file to read. |
container | The container where to add data. Needs not be a SiteContainer, as aligned sequences can be stored in a simple SequenceContainer. |
- Exceptions
-
Exception | If the file is not in the specified format. |
Implemented in bpp::AbstractIAlignment.
◆ readAlignment() [2/4]
virtual std::unique_ptr<SiteContainerInterface> bpp::IAlignment::readAlignment |
( |
const std::string & |
path, |
|
|
std::shared_ptr< const Alphabet > |
alpha |
|
) |
| const |
|
pure virtual |
Create a new container from a file.
- Parameters
-
path | The path to the file to read. |
alpha | The alphabet to be associated to the container. |
- Returns
- A new SiteContainer object.
- Exceptions
-
Exception | If the file is not in the specified format. |
Implemented in bpp::AbstractIAlignment.
◆ readAlignment() [3/4]
Add the content of a stream to a new container.
- Parameters
-
input | The input stream to read. |
container | The container where to add data. Needs not be a SiteContainer, as aligned sequences can be stored in a simple SequenceContainer. |
- Exceptions
-
Exception | If the file is not in the specified format. |
Implemented in bpp::AbstractIAlignment.
◆ readAlignment() [4/4]
virtual std::unique_ptr<SiteContainerInterface> bpp::IAlignment::readAlignment |
( |
std::istream & |
input, |
|
|
std::shared_ptr< const Alphabet > |
alpha |
|
) |
| const |
|
pure virtual |
Create a new container from a stream.
- Parameters
-
input | The input stream to read. |
alpha | The alphabet to be associated to the container. |
- Returns
- A new SiteContainer object.
- Exceptions
-
Exception | If the file is not in the specified format. |
Implemented in bpp::AbstractIAlignment.
The documentation for this class was generated from the following file: