The Stockholm alignment file format.
More...
#include <Bpp/Seq/Io/Stockholm.h>
The Stockholm alignment file format.
Write to Stockholm files. Only sequence data is read/written, annotation and secondary structures are ignored.
Definition at line 57 of file Stockholm.h.
◆ Stockholm()
bpp::Stockholm::Stockholm |
( |
bool |
checkSequenceNames = true | ) |
|
|
inline |
Build a new Stockholm object.
- Parameters
-
checkSequenceNames | Tell if the names in the file should be checked for unicity (slower, in o(n*n) where n is the number of sequences). |
Definition at line 71 of file Stockholm.h.
◆ ~Stockholm()
virtual bpp::Stockholm::~Stockholm |
( |
| ) |
|
|
inlinevirtual |
◆ checkNames() [1/2]
bool bpp::Stockholm::checkNames |
( |
| ) |
const |
|
inline |
- Warning
- This is not used for now, will be when reading is implemented.
- Returns
- true if the names are to be checked when reading sequences from files.
Definition at line 106 of file Stockholm.h.
References checkNames_.
◆ checkNames() [2/2]
void bpp::Stockholm::checkNames |
( |
bool |
yn | ) |
|
|
inline |
Tell whether the sequence names should be checked when reading from files.
- Warning
- This is not used for now, will be when reading is implemented.
- Parameters
-
yn | whether the sequence names should be checked when reading from files. |
Definition at line 114 of file Stockholm.h.
References checkNames_.
◆ getDataType()
const std::string bpp::IOSequence::getDataType |
( |
| ) |
const |
|
inlineinherited |
◆ getFormatDescription()
const std::string bpp::Stockholm::getFormatDescription |
( |
| ) |
const |
|
inline |
◆ getFormatName()
const std::string bpp::Stockholm::getFormatName |
( |
| ) |
const |
|
inline |
◆ writeAlignment() [1/2]
void Stockholm::writeAlignment |
( |
std::ostream & |
output, |
|
|
const SiteContainer & |
sc |
|
) |
| const |
throw | ( | Exception |
| ) | | |
|
virtual |
Write a container to a stream.
- Parameters
-
output | The output stream where to write. |
sc | The container to write. |
- Exceptions
-
Exception | If the file is not in the specified format. |
Implements bpp::AbstractOAlignment.
Definition at line 54 of file Stockholm.cpp.
◆ writeAlignment() [2/2]
void bpp::Stockholm::writeAlignment |
( |
const std::string & |
path, |
|
|
const SiteContainer & |
sc, |
|
|
bool |
overwrite = true |
|
) |
| const |
throw | ( | Exception |
| ) | | |
|
inlinevirtual |
Write a container to a file.
- Parameters
-
path | The path to the file to write. |
sc | The container to write. |
overwrite | If true the sequences are written at the beginning of the file instead of being appended. Any previous content will be lost. |
- Exceptions
-
Exception | If the file is not in the specified format. |
Reimplemented from bpp::AbstractOAlignment.
Definition at line 84 of file Stockholm.h.
References bpp::AbstractOAlignment::writeAlignment().
◆ checkNames_
bool bpp::Stockholm::checkNames_ |
|
private |
The documentation for this class was generated from the following files: