bpp-seq-omics
2.2.0
|
This iterator performs a simple SNP call from the MAF blocks, and outputs the results in the Variant Call Format (VCF). More...
#include <Bpp/Seq/Io/Maf/VcfOutputMafIterator.h>
Public Member Functions | |
VcfOutputMafIterator (MafIterator *iterator, std::ostream *out, const std::string &reference, const std::vector< std::string > &genotypes) | |
Build a new VcfOutputMafIterator object. More... | |
MafBlock * | analyseCurrentBlock_ () throw (Exception) |
void | setLogStream (OutputStream *logstream) |
void | addIterationListener (IterationListener *listener) |
MafBlock * | nextBlock () throw (Exception) |
Get the next available alignment block. More... | |
bool | isVerbose () const |
void | setVerbose (bool yn) |
Protected Member Functions | |
virtual void | fireIterationStartSignal_ () |
virtual void | fireIterationMoveSignal_ (const MafBlock ¤tBlock) |
virtual void | fireIterationStopSignal_ () |
Protected Attributes | |
MafIterator * | iterator_ |
MafBlock * | currentBlock_ |
OutputStream * | logstream_ |
std::vector< IterationListener * > | iterationListeners_ |
bool | started_ |
bool | verbose_ |
Private Member Functions | |
VcfOutputMafIterator (const VcfOutputMafIterator &iterator) | |
VcfOutputMafIterator & | operator= (const VcfOutputMafIterator &iterator) |
void | writeHeader_ (std::ostream &out) const |
void | writeBlock_ (std::ostream &out, const MafBlock &block) const |
Private Attributes | |
std::ostream * | output_ |
std::string | refSpecies_ |
std::vector< std::string > | genotypes_ |
This iterator performs a simple SNP call from the MAF blocks, and outputs the results in the Variant Call Format (VCF).
Only substitutions are supported for now.
Definition at line 57 of file VcfOutputMafIterator.h.
|
inline |
Build a new VcfOutputMafIterator object.
iterator | The input iterator. |
out | The output stream where to write the VCF file. |
reference | The species to use as a reference. |
genotypes | A list of species for which genotype information should be written in the VCF file. There will be one extra column per genotype, +1 format column. |
Definition at line 74 of file VcfOutputMafIterator.h.
References output_, and writeHeader_().
|
inlineprivate |
Definition at line 82 of file VcfOutputMafIterator.h.
|
inlinevirtualinherited |
Implements bpp::MafIterator.
Definition at line 99 of file MafIterator.h.
|
inlinevirtual |
Implements bpp::AbstractMafIterator.
Definition at line 99 of file VcfOutputMafIterator.h.
References bpp::AbstractFilterMafIterator::currentBlock_, bpp::AbstractFilterMafIterator::iterator_, bpp::MafIterator::nextBlock(), output_, and writeBlock_().
|
protectedvirtualinherited |
Definition at line 57 of file MafIterator.cpp.
|
protectedvirtualinherited |
Definition at line 51 of file MafIterator.cpp.
|
protectedvirtualinherited |
Definition at line 63 of file MafIterator.cpp.
|
inlinevirtualinherited |
Implements bpp::MafIterator.
Definition at line 116 of file MafIterator.h.
|
inlinevirtualinherited |
Get the next available alignment block.
Implements bpp::MafIterator.
Definition at line 103 of file MafIterator.h.
|
inlineprivate |
Definition at line 89 of file VcfOutputMafIterator.h.
References genotypes_, output_, and refSpecies_.
|
inlineinherited |
Definition at line 178 of file MafIterator.h.
|
inlinevirtualinherited |
Implements bpp::MafIterator.
Definition at line 117 of file MafIterator.h.
|
private |
Definition at line 81 of file VcfOutputMafIterator.cpp.
References bpp::MafBlock::getAlignment(), bpp::MafSequence::getChromosome(), bpp::MafBlock::getSequenceForSpecies(), bpp::MafBlock::getSequencesForSpecies(), and bpp::MafSequence::start().
Referenced by analyseCurrentBlock_().
|
private |
Definition at line 58 of file VcfOutputMafIterator.cpp.
Referenced by VcfOutputMafIterator().
|
protectedinherited |
|
private |
Definition at line 63 of file VcfOutputMafIterator.h.
Referenced by operator=().
|
protectedinherited |
Definition at line 89 of file MafIterator.h.
|
protectedinherited |
Definition at line 153 of file MafIterator.h.
Referenced by bpp::BlockLengthMafIterator::analyseCurrentBlock_(), bpp::BlockSizeMafIterator::analyseCurrentBlock_(), bpp::OutputMafIterator::analyseCurrentBlock_(), analyseCurrentBlock_(), bpp::SequenceStatisticsMafIterator::analyseCurrentBlock_(), and bpp::AbstractFilterMafIterator::operator=().
|
protectedinherited |
Definition at line 155 of file MafIterator.h.
Referenced by bpp::BlockLengthMafIterator::analyseCurrentBlock_(), bpp::BlockSizeMafIterator::analyseCurrentBlock_(), and bpp::AbstractFilterMafIterator::operator=().
|
private |
Definition at line 61 of file VcfOutputMafIterator.h.
Referenced by analyseCurrentBlock_(), operator=(), and VcfOutputMafIterator().
|
private |
Definition at line 62 of file VcfOutputMafIterator.h.
Referenced by operator=().
|
protectedinherited |
Definition at line 90 of file MafIterator.h.
|
protectedinherited |
Definition at line 91 of file MafIterator.h.