bpp::BlockMergerMafIterator Class Reference

Merge blocks if some of their sequences are contiguous. More...

#include <Bpp/Seq/Io/MafIterator.h>

Inheritance diagram for bpp::BlockMergerMafIterator:
Inheritance graph
[legend]
Collaboration diagram for bpp::BlockMergerMafIterator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 BlockMergerMafIterator (MafIterator *iterator, const std::vector< std::string > &species, unsigned int maxDist=0)
MafBlocknextBlock () throw (Exception)
 Get the next available alignment block.
void ignoreChromosome (const std::string &chr)
void setLogStream (OutputStream *logstream)
bool verbose () const
void verbose (bool yn)

Protected Attributes

MafIteratoriterator_
OutputStreamlogstream_
bool verbose_

Private Member Functions

 BlockMergerMafIterator (const BlockMergerMafIterator &iterator)
BlockMergerMafIteratoroperator= (const BlockMergerMafIterator &iterator)

Private Attributes

std::vector< std::string > species_
MafBlockincomingBlock_
MafBlockcurrentBlock_
std::vector< std::string > ignoreChrs_
unsigned int maxDist_

Detailed Description

Merge blocks if some of their sequences are contiguous.

The user specifies the focus species. Sequences that are not in this set will be automatically merged and their coordinates removed. The scores, if any, will be averaged for the block, weighted by the corresponding block sizes. the pass value will be removed if it is different for the two blocks. It is possible to define a maximum distance for the merging. Setting a distance of zero implies that the blocks have to be exactly contiguous. Alternatively, the appropriate number of 'N' will be inserted in all species. All species however have to be distant of the exact same amount.

Definition at line 537 of file MafIterator.h.


Constructor & Destructor Documentation

bpp::BlockMergerMafIterator::BlockMergerMafIterator ( MafIterator iterator,
const std::vector< std::string > &  species,
unsigned int  maxDist = 0 
) [inline]

Definition at line 548 of file MafIterator.h.

References bpp::MafIterator::nextBlock().

bpp::BlockMergerMafIterator::BlockMergerMafIterator ( const BlockMergerMafIterator iterator  )  [inline, private]

Definition at line 560 of file MafIterator.h.


Member Function Documentation

void bpp::BlockMergerMafIterator::ignoreChromosome ( const std::string &  chr  )  [inline]

brief Add a chromosome that should be ignored to the list.

Parameters:
chr The name of the chromosome to be ignored.

Definition at line 586 of file MafIterator.h.

MafBlock * BlockMergerMafIterator::nextBlock (  )  throw (Exception) [virtual]
BlockMergerMafIterator& bpp::BlockMergerMafIterator::operator= ( const BlockMergerMafIterator iterator  )  [inline, private]

Definition at line 569 of file MafIterator.h.

References currentBlock_, ignoreChrs_, incomingBlock_, maxDist_, and species_.

void bpp::AbstractFilterMafIterator::setLogStream ( OutputStream logstream  )  [inline, inherited]

Definition at line 341 of file MafIterator.h.

void bpp::AbstractFilterMafIterator::verbose ( bool  yn  )  [inline, inherited]

Definition at line 343 of file MafIterator.h.

bool bpp::AbstractFilterMafIterator::verbose (  )  const [inline, inherited]

Definition at line 342 of file MafIterator.h.


Member Data Documentation

Definition at line 543 of file MafIterator.h.

Referenced by nextBlock(), and operator=().

std::vector<std::string> bpp::BlockMergerMafIterator::ignoreChrs_ [private]

Definition at line 544 of file MafIterator.h.

Referenced by nextBlock(), and operator=().

Definition at line 542 of file MafIterator.h.

Referenced by nextBlock(), and operator=().

unsigned int bpp::BlockMergerMafIterator::maxDist_ [private]

Definition at line 545 of file MafIterator.h.

Referenced by nextBlock(), and operator=().

std::vector<std::string> bpp::BlockMergerMafIterator::species_ [private]

Definition at line 541 of file MafIterator.h.

Referenced by nextBlock(), and operator=().

bool bpp::AbstractFilterMafIterator::verbose_ [protected, inherited]

The documentation for this class was generated from the following files:
Generated on Wed Feb 29 14:50:39 2012 for bpp-seq by  doxygen 1.6.3