bpp::ChromosomeMafIterator Class Reference

Filter maf blocks to keep only the block corresponding to one chromosome (of a reference sequence). More...

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

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

List of all members.

Public Member Functions

 ChromosomeMafIterator (MafIterator *iterator, const std::string &reference, const std::string &chr)
MafBlocknextBlock () throw (Exception)
 Get the next available alignment block.
void setLogStream (OutputStream *logstream)
bool verbose () const
void verbose (bool yn)

Protected Attributes

MafIteratoriterator_
OutputStreamlogstream_
bool verbose_

Private Member Functions

 ChromosomeMafIterator (const ChromosomeMafIterator &iterator)
ChromosomeMafIteratoroperator= (const ChromosomeMafIterator &iterator)

Private Attributes

std::string ref_
std::string chr_
MafBlockcurrentBlock_

Detailed Description

Filter maf blocks to keep only the block corresponding to one chromosome (of a reference sequence).

Definition at line 437 of file MafIterator.h.


Constructor & Destructor Documentation

bpp::ChromosomeMafIterator::ChromosomeMafIterator ( MafIterator iterator,
const std::string &  reference,
const std::string &  chr 
) [inline]
Parameters:
iterator The input iterator.
reference The reference species name.
chr the chromosome name to filter.

Definition at line 451 of file MafIterator.h.

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

Definition at line 459 of file MafIterator.h.


Member Function Documentation

MafBlock * ChromosomeMafIterator::nextBlock (  )  throw (Exception) [virtual]

Get the next available alignment block.

Returns:
A maf alignment block, or a null pointer if no more block is available.

Implements bpp::MafIterator.

Definition at line 130 of file MafIterator.cpp.

References chr_, currentBlock_, bpp::MafSequence::getChromosome(), bpp::MafBlock::getNumberOfSequences(), bpp::MafBlock::getSequence(), bpp::MafSequence::getSpecies(), bpp::AbstractFilterMafIterator::iterator_, bpp::AbstractFilterMafIterator::logstream_, bpp::MafIterator::nextBlock(), and ref_.

ChromosomeMafIterator& bpp::ChromosomeMafIterator::operator= ( const ChromosomeMafIterator iterator  )  [inline, private]

Definition at line 466 of file MafIterator.h.

References chr_, and ref_.

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

std::string bpp::ChromosomeMafIterator::chr_ [private]

Definition at line 442 of file MafIterator.h.

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

Definition at line 443 of file MafIterator.h.

Referenced by nextBlock().

std::string bpp::ChromosomeMafIterator::ref_ [private]

Definition at line 441 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:38 2012 for bpp-seq by  doxygen 1.6.3