bpp-seq3
3.0.0
|
A helper class to easily convert coordinates between sequence and alignments. More...
#include <Bpp/Seq/SequenceWalker.h>
Public Member Functions | |
SequenceWalker (const SequenceInterface &seq) | |
SequenceWalker (const SequenceWalker &walker) | |
SequenceWalker & | operator= (const SequenceWalker &walker) |
virtual | ~SequenceWalker () |
size_t | getAlignmentPosition (size_t seqPos) |
size_t | getSequencePosition (size_t alnPos) |
Private Attributes | |
const SequenceInterface * | seq_ |
size_t | seqPos_ |
size_t | alnPos_ |
int | gap_ |
A helper class to easily convert coordinates between sequence and alignments.
Coordinates are 0-based. The walker will be more efficient if coordinates are called in pre-ordered way.
Definition at line 19 of file SequenceWalker.h.
|
inline |
Definition at line 27 of file SequenceWalker.h.
References alnPos_, gap_, seq_, and bpp::CruxSymbolListInterface::size().
|
inline |
Definition at line 36 of file SequenceWalker.h.
|
inlinevirtual |
Definition at line 46 of file SequenceWalker.h.
size_t SequenceWalker::getAlignmentPosition | ( | size_t | seqPos | ) |
Definition at line 16 of file SequenceWalker.cpp.
size_t SequenceWalker::getSequencePosition | ( | size_t | alnPos | ) |
Definition at line 56 of file SequenceWalker.cpp.
|
inline |
|
private |
Definition at line 23 of file SequenceWalker.h.
Referenced by operator=(), and SequenceWalker().
|
private |
Definition at line 24 of file SequenceWalker.h.
Referenced by operator=(), and SequenceWalker().
|
private |
Definition at line 22 of file SequenceWalker.h.
Referenced by operator=(), and SequenceWalker().
|
private |
Definition at line 23 of file SequenceWalker.h.
Referenced by operator=().