bpp-seq
2.2.0
|
Support for the Dedicated Comparative Sequence Editor format. More...
#include <Bpp/Seq/Io/Dcse.h>
Public Member Functions | |
DCSE () | |
virtual | ~DCSE () |
const std::string | getDataType () const |
The AbstractIAlignment interface. | |
void | appendAlignmentFromStream (std::istream &input, SiteContainer &sc) const throw (Exception) |
Append sequences to a container from a stream. More... | |
The ISequence interface. | |
As a SiteContainer is a subclass of SequenceContainer, we hereby implement the ISequence interface by downcasting the interface. | |
virtual SequenceContainer * | readSequences (std::istream &input, const Alphabet *alpha) const throw (Exception) |
Create a new container from a stream. More... | |
virtual SequenceContainer * | readSequences (const std::string &path, const Alphabet *alpha) const throw (Exception) |
Create a new container from a file. More... | |
The IOSequence interface. | |
const std::string | getFormatName () const |
const std::string | getFormatDescription () 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 | 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... | |
Support for the Dedicated Comparative Sequence Editor format.
Only the sequence information is retrieved. All structural information is dropped for now.
A description of this format may be found here: http://www.psb.ugent.be/rRNA/help/formats/aliformat.html
|
inlineprotectedvirtualinherited |
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 bpp::AbstractIAlignment::appendAlignmentFromStream().
Referenced by bpp::AbstractIAlignment::readAlignment(), and bpp::AbstractIAlignment::readAlignmentFromFile().
|
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. |
Implements bpp::AbstractIAlignment.
|
inlineinherited |
Definition at line 65 of file IoSequence.h.
|
inlinevirtualinherited |
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 bpp::AbstractIAlignment::appendAlignmentFromStream().
Referenced by readSequences(), bpp::Clustal::readSequences(), bpp::NexusIOSequence::readSequences(), and bpp::Phylip::readSequences().
|
inlinevirtualinherited |
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 bpp::AbstractIAlignment::appendAlignmentFromFile().
|
inlinevirtualinherited |
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 bpp::AbstractIAlignment::readAlignmentFromFile().
|
inlinevirtualinherited |
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 bpp::AbstractIAlignment::readAlignmentFromStream().
|
inlineprotectedvirtualinherited |
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 bpp::AbstractIAlignment::appendAlignmentFromFile().
Referenced by bpp::AbstractIAlignment::readAlignment().
|
inlineprotectedvirtualinherited |
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 bpp::AbstractIAlignment::appendAlignmentFromStream().
Referenced by bpp::AbstractIAlignment::readAlignment().
|
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::ISequence.
Definition at line 87 of file Dcse.h.
References bpp::AbstractIAlignment::readAlignment().
|
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::ISequence.
Definition at line 90 of file Dcse.h.
References bpp::AbstractIAlignment::readAlignment().