bpp-phyl
2.2.0
|
Distance matrix I/O in Phylip format. More...
#include <Bpp/Phyl/Io/PhylipDistanceMatrixFormat.h>
Public Member Functions | |
PhylipDistanceMatrixFormat (bool extended=false) | |
virtual | ~PhylipDistanceMatrixFormat () |
const std::string | getFormatName () const |
const std::string | getFormatDescription () const |
DistanceMatrix * | read (const std::string &path) const throw (Exception) |
Read a distance matrix from a file. More... | |
DistanceMatrix * | read (std::istream &in) const throw (Exception) |
Read a distance matrix from a stream. More... | |
void | write (const DistanceMatrix &dist, const std::string &path, bool overwrite=true) const throw (Exception) |
Write a distance matrix to a file. More... | |
void | write (const DistanceMatrix &dist, std::ostream &out) const throw (Exception) |
Write a distance matrix to a stream. More... | |
virtual const std::string | getDataType () const |
Private Attributes | |
bool | extended_ |
Distance matrix I/O in Phylip format.
Entry names must be 10 characters long. If 'extended' is set to true, then entry names can be of any size, and should be separated from the data by at least two spaces. Names should therefor not contian more than one consecutive space.
Definition at line 55 of file PhylipDistanceMatrixFormat.h.
|
inline |
Definition at line 63 of file PhylipDistanceMatrixFormat.h.
|
inlinevirtual |
Definition at line 64 of file PhylipDistanceMatrixFormat.h.
|
inlinevirtualinherited |
Definition at line 65 of file IoDistanceMatrix.h.
|
inline |
Definition at line 69 of file PhylipDistanceMatrixFormat.h.
|
inline |
Definition at line 67 of file PhylipDistanceMatrixFormat.h.
|
inlinevirtual |
Read a distance matrix from a file.
path | The file path. |
Exception | If an error occured. |
Reimplemented from bpp::AbstractIDistanceMatrix.
Definition at line 70 of file PhylipDistanceMatrixFormat.h.
References bpp::AbstractIDistanceMatrix::read().
|
virtual |
Read a distance matrix from a stream.
in | The input stream. |
Exception | If an error occured. |
Implements bpp::AbstractIDistanceMatrix.
Definition at line 56 of file PhylipDistanceMatrixFormat.cpp.
|
inlinevirtual |
Write a distance matrix to a file.
dist | A distance matrix object. |
path | The file path. |
overwrite | Tell if existing file must be overwritten. Otherwise append to the file. |
Exception | If an error occured. |
Reimplemented from bpp::AbstractODistanceMatrix.
Definition at line 76 of file PhylipDistanceMatrixFormat.h.
References bpp::AbstractODistanceMatrix::write().
|
virtual |
Write a distance matrix to a stream.
dist | A distance matrix object. |
out | The output stream. |
Exception | If an error occured. |
Implements bpp::AbstractODistanceMatrix.
Definition at line 96 of file PhylipDistanceMatrixFormat.cpp.
|
private |
Definition at line 60 of file PhylipDistanceMatrixFormat.h.