Utilitary class for creating sequence readers and writers.
More...
#include <Bpp/Seq/Io/IoSequenceFactory.h>
Utilitary class for creating sequence readers and writers.
Definition at line 18 of file IoSequenceFactory.h.
◆ IoSequenceFactory()
bpp::IoSequenceFactory::IoSequenceFactory |
( |
| ) |
|
|
inline |
Creates a new factory object.
Example:
unique_ptr<SequenceContainer> sequences = seqReader->read("file.fasta", alphabet);
delete seqReader;
IoSequenceFactory()
Creates a new factory object.
static const std::string FASTA_FORMAT
Definition at line 44 of file IoSequenceFactory.h.
◆ ~IoSequenceFactory()
virtual bpp::IoSequenceFactory::~IoSequenceFactory |
( |
| ) |
|
|
inlinevirtual |
◆ createAlignmentReader()
unique_ptr< IAlignment > IoSequenceFactory::createAlignmentReader |
( |
const std::string & |
format | ) |
|
|
virtual |
Get a new dynamically created IAlignment object.
- Parameters
-
format | The input file format. |
- Returns
- A pointer toward a new IAlignment object.
- Exceptions
-
Exception | If the format name do not match any available format. |
Definition at line 54 of file IoSequenceFactory.cpp.
◆ createAlignmentWriter()
unique_ptr< OAlignment > IoSequenceFactory::createAlignmentWriter |
( |
const std::string & |
format | ) |
|
|
virtual |
Get a new dynamically created OAlignment object.
- Parameters
-
format | The output file format. |
- Returns
- A pointer toward a new OAlignment object.
- Exceptions
-
Exception | If the format name do not match any available format. |
Definition at line 88 of file IoSequenceFactory.cpp.
◆ createReader()
unique_ptr< ISequence > IoSequenceFactory::createReader |
( |
const std::string & |
format | ) |
|
|
virtual |
Get a new dynamically created ISequence object.
- Parameters
-
format | The input file format. |
- Returns
- A pointer toward a new ISequence object.
- Exceptions
-
Exception | If the format name do not match any available format. |
Definition at line 28 of file IoSequenceFactory.cpp.
◆ createWriter()
unique_ptr< OSequence > IoSequenceFactory::createWriter |
( |
const std::string & |
format | ) |
|
|
virtual |
Get a new dynamically created OSequence object.
- Parameters
-
format | The output file format. |
- Returns
- A pointer toward a new OSequence object.
- Exceptions
-
Exception | If the format name do not match any available format. |
Definition at line 78 of file IoSequenceFactory.cpp.
◆ CLUSTAL_FORMAT
const string IoSequenceFactory::CLUSTAL_FORMAT = "Clustal" |
|
static |
◆ DCSE_FORMAT
const string IoSequenceFactory::DCSE_FORMAT = "DCSE" |
|
static |
◆ FASTA_FORMAT
const string IoSequenceFactory::FASTA_FORMAT = "Fasta" |
|
static |
◆ GENBANK_FORMAT
const string IoSequenceFactory::GENBANK_FORMAT = "GenBank" |
|
static |
◆ MASE_FORMAT
const string IoSequenceFactory::MASE_FORMAT = "Mase" |
|
static |
◆ NEXUS_FORMAT
const string IoSequenceFactory::NEXUS_FORMAT = "Nexus" |
|
static |
◆ PAML_FORMAT_INTERLEAVED
const string IoSequenceFactory::PAML_FORMAT_INTERLEAVED = "PAML I" |
|
static |
◆ PAML_FORMAT_SEQUENTIAL
const string IoSequenceFactory::PAML_FORMAT_SEQUENTIAL = "PAML S" |
|
static |
◆ PHYLIP_FORMAT_INTERLEAVED
const string IoSequenceFactory::PHYLIP_FORMAT_INTERLEAVED = "Phylip I" |
|
static |
◆ PHYLIP_FORMAT_SEQUENTIAL
const string IoSequenceFactory::PHYLIP_FORMAT_SEQUENTIAL = "Phylip S" |
|
static |
The documentation for this class was generated from the following files: