#include <AbstractMatch.h>
Inheritance diagram for mems::AbstractMatch:

Public Types | |
| enum | orientation { forward, reverse, undefined } |
Public Member Functions | |
| virtual gnSeqI | AlignmentLength () const=0 |
| Returns the total length of this alignment in columns. | |
| virtual AbstractMatch * | Copy () const=0 |
| creates a copy of this using a boost::pool::fast_pool_allocator | |
| virtual void | CropEnd (gnSeqI crop_amount)=0 |
Deprecated: Use CropLeft and CropRight instead Removes the last crop_amount base pairs from the end of the match. | |
| virtual void | CropLeft (gnSeqI crop_amount, uint seqI)=0 |
Crop this match from the left Removes the first crop_amount positions from the left side of the match. | |
| virtual void | CropRight (gnSeqI crop_amount, uint seqI)=0 |
Crop this match from the right Removes the last crop_amount positions from the right side of the match. | |
| virtual void | CropStart (gnSeqI crop_amount)=0 |
Deprecated: Use CropLeft and CropRight instead Removes the first crop_amount base pairs from the beginning of the match. | |
| virtual int64 | End (uint seqI) const |
| Deprecated: use RightEnd() instead Returns the last coordinate of this match in sequence. | |
| virtual uint | FirstStart () const=0 |
| Returns the index of the first sequence this match occurs in. | |
| virtual void | Free ()=0 |
| frees storage used by this object in a boost::pool::fast_pool_allocator | |
| virtual void | GetAlignment (std::vector< bitset_t > &align_matrix) const=0 |
| Gets a copy of the alignment as an array of dynamic_bitsets. | |
| virtual void | GetColumn (gnSeqI col, std::vector< gnSeqI > &pos, std::vector< bool > &column) const=0 |
| Given an alignment column index, this function returns the corresponding sequence coordinates and whether each sequence is aligned in that column If a given sequence is not represented in the requested column, the position returned in pos should be that of the first nucleotide to the left of the requested column. | |
| virtual void | Invert ()=0 |
| Inverts the coordinates of this match. | |
| virtual bool | IsGap (uint seq, gnSeqI col) const=0 |
| returns true if the given row,column of the alignment has a gap character | |
| virtual gnSeqI | LeftEnd (uint seqI) const=0 |
| Returns the left end coordinate of this match at the seqI'th matching position/sequence. | |
| virtual gnSeqI | Length (uint seqI) const=0 |
| Returns the length of this match. | |
| virtual void | MoveEnd (int64 move_amount)=0 |
| Shift the left-end coordinates in reverse oriented positions by a given amount. | |
| virtual void | MoveStart (int64 move_amount)=0 |
| Shift the left-end coordinates in forward oriented positions by a given amount. | |
| virtual uint | Multiplicity () const=0 |
| Returns the multiplicity of the match. | |
| int64 | operator[] (uint seqI) const |
| Deprecated: use LeftEnd() instead Returns the start coordinate of this match in sequence. | |
| virtual orientation | Orientation (uint seqI) const=0 |
| Returns the orientation of this match at the startI'th matching position/sequence, either AbstractMatch::forward or AbstractMatch::reverse. | |
| virtual gnSeqI | RightEnd (uint seqI) const |
| Returns the right-end coordinate of this match at the seqI'th matching position/sequence (equal to LeftEnd(seqI) + Length(seqI) - 1). | |
| virtual uint | SeqCount () const=0 |
| Returns the number of sequences in the alignment which contains this match. | |
| virtual void | SetLeftEnd (uint seqI, gnSeqI start)=0 |
| sets the left end coordinate of this match in the seqI'th matching position/sequence | |
| virtual void | SetLength (gnSeqI len, uint seqI)=0 |
| Sets the length of this match to. | |
| virtual void | SetOrientation (uint seqI, orientation o)=0 |
| sets the relative orientation of this match in the seqI'th matching position/sequence | |
| virtual void | SetStart (uint seqI, int64 start)=0 |
| Deprecated: use SetLeftEnd() and SetOrientation instead Sets the start in sequence. | |
| virtual int64 | Start (uint startI) const=0 |
| Deprecated: use LeftEnd() and Orientation() instead. | |
| virtual uint | UsedSeq (uint seqI) const=0 |
| Returns the id of the i-th defined sequence in this match. | |
Definition at line 256 of file AbstractMatch.h.
|
|
Definition at line 259 of file AbstractMatch.h. |
|
|
Returns the total length of this alignment in columns.
Implemented in mems::MatchProjectionAdapter, mems::PairwiseMatchAdapter, mems::AbstractGappedAlignment< SparseAbstractMatch<> >, mems::UngappedLocalAlignment< mems::HybridAbstractMatch<> >, and mems::UngappedLocalAlignment< HybridAbstractMatch<> >. Referenced by mems::PairwiseMatchAdapter::AlignmentLength(), mems::MatchProjectionAdapter::AlignmentLength(), and mems::GenericInterval< GappedBaseImpl >::Marble(). |
|
|
creates a copy of this using a boost::pool::fast_pool_allocator
Implemented in mems::GappedAlignment, mems::MatchProjectionAdapter, mems::PairwiseMatchAdapter, mems::UngappedLocalAlignment< mems::HybridAbstractMatch<> >, and mems::UngappedLocalAlignment< HybridAbstractMatch<> >. Referenced by mems::GenericInterval< GappedBaseImpl >::add(), mems::MatchProjectionAdapter::MatchProjectionAdapter(), and mems::MatchProjectionAdapter::operator=(). |
|
|
Deprecated: Use CropLeft and CropRight instead Removes the last
Implemented in mems::GappedAlignment, mems::MatchProjectionAdapter, mems::PairwiseMatchAdapter, mems::UngappedLocalAlignment< mems::HybridAbstractMatch<> >, and mems::UngappedLocalAlignment< HybridAbstractMatch<> >. Referenced by mems::PairwiseMatchAdapter::CropEnd(), mems::MatchProjectionAdapter::CropEnd(), and mems::GenericInterval< GappedBaseImpl >::Marble(). |
|
||||||||||||
|
Crop this match from the left Removes the first
Implemented in mems::GappedAlignment, mems::MatchProjectionAdapter, mems::PairwiseMatchAdapter, mems::UngappedLocalAlignment< mems::HybridAbstractMatch<> >, and mems::UngappedLocalAlignment< HybridAbstractMatch<> >. Referenced by mems::PairwiseMatchAdapter::CropLeft(), and mems::MatchProjectionAdapter::CropLeft(). |
|
||||||||||||
|
Crop this match from the right Removes the last
Implemented in mems::GappedAlignment, mems::MatchProjectionAdapter, mems::PairwiseMatchAdapter, mems::UngappedLocalAlignment< mems::HybridAbstractMatch<> >, and mems::UngappedLocalAlignment< HybridAbstractMatch<> >. Referenced by mems::PairwiseMatchAdapter::CropRight(), and mems::MatchProjectionAdapter::CropRight(). |
|
|
Deprecated: Use CropLeft and CropRight instead Removes the first
Implemented in mems::GappedAlignment, mems::MatchProjectionAdapter, mems::PairwiseMatchAdapter, mems::UngappedLocalAlignment< mems::HybridAbstractMatch<> >, and mems::UngappedLocalAlignment< HybridAbstractMatch<> >. Referenced by mems::PairwiseMatchAdapter::CropStart(), and mems::MatchProjectionAdapter::CropStart(). |
|
|
Deprecated: use RightEnd() instead Returns the last coordinate of this match in sequence.
Definition at line 378 of file AbstractMatch.h. References mems::NO_MATCH. Referenced by mems::MuscleInterface::Align(). |
|
|
Returns the index of the first sequence this match occurs in.
Implemented in mems::DenseAbstractMatch< MAX_SEQS >, mems::HybridAbstractMatch< FIXED_SEQ_COUNT, int64Alloc, uintAlloc >, mems::MatchProjectionAdapter, mems::PairwiseMatchAdapter, mems::SparseAbstractMatch< gnSeqIAlloc, uintAlloc >, mems::HybridAbstractMatch<>, and mems::SparseAbstractMatch<>. Referenced by mems::MatchLeftEndComparator::operator()(). |
|
|
frees storage used by this object in a boost::pool::fast_pool_allocator
Implemented in mems::GappedAlignment, mems::MatchProjectionAdapter, mems::PairwiseMatchAdapter, mems::UngappedLocalAlignment< mems::HybridAbstractMatch<> >, and mems::UngappedLocalAlignment< HybridAbstractMatch<> >. Referenced by mems::MatchProjectionAdapter::operator=(), and mems::MatchProjectionAdapter::~MatchProjectionAdapter(). |
|
|
Gets a copy of the alignment as an array of dynamic_bitsets.
Implemented in mems::GappedAlignment, mems::UngappedLocalAlignment< mems::HybridAbstractMatch<> >, and mems::UngappedLocalAlignment< HybridAbstractMatch<> >. Referenced by mems::PairwiseMatchAdapter::GetAlignment(), mems::MatchProjectionAdapter::GetAlignment(), and mems::GetAlignment(). |
|
||||||||||||||||
|
Given an alignment column index, this function returns the corresponding sequence coordinates and whether each sequence is aligned in that column If a given sequence is not represented in the requested column, the position returned in pos should be that of the first nucleotide to the left of the requested column. If no nucleotides exist to the left of the requested column, then a NO_MATCH is returned in pos for that sequence. Implemented in mems::GappedAlignment, mems::MatchProjectionAdapter, mems::PairwiseMatchAdapter, mems::UngappedLocalAlignment< mems::HybridAbstractMatch<> >, and mems::UngappedLocalAlignment< HybridAbstractMatch<> >. Referenced by mems::PairwiseMatchAdapter::GetColumn(), and mems::MatchProjectionAdapter::GetColumn(). |
|
|
||||||||||||
|
returns true if the given row,column of the alignment has a gap character
Implemented in mems::GappedAlignment, mems::MatchProjectionAdapter, mems::PairwiseMatchAdapter, mems::UngappedLocalAlignment< mems::HybridAbstractMatch<> >, and mems::UngappedLocalAlignment< HybridAbstractMatch<> >. Referenced by mems::PairwiseMatchAdapter::IsGap(), and mems::MatchProjectionAdapter::IsGap(). |
|
|
Returns the left end coordinate of this match at the seqI'th matching position/sequence.
Implemented in mems::DenseAbstractMatch< MAX_SEQS >, mems::HybridAbstractMatch< FIXED_SEQ_COUNT, int64Alloc, uintAlloc >, mems::MatchProjectionAdapter, mems::PairwiseMatchAdapter, mems::SparseAbstractMatch< gnSeqIAlloc, uintAlloc >, mems::HybridAbstractMatch<>, and mems::SparseAbstractMatch<>. Referenced by mems::checkConsistent(), mems::GetAlignment(), mems::getInterveningCoordinates(), mems::PairwiseMatchAdapter::LeftEnd(), mems::MatchProjectionAdapter::LeftEnd(), mems::MatchProjectionAdapter::Multiplicity(), and mems::ProgressiveAligner::pairwiseScoreTrackingMatches(). |
|
|
Returns the length of this match.
Implemented in mems::MatchProjectionAdapter, mems::PairwiseMatchAdapter, mems::AbstractGappedAlignment< SparseAbstractMatch<> >, mems::UngappedLocalAlignment< mems::HybridAbstractMatch<> >, and mems::UngappedLocalAlignment< HybridAbstractMatch<> >. Referenced by mems::MuscleInterface::Align(), mems::GetAlignment(), mems::PairwiseMatchAdapter::Length(), and mems::MatchProjectionAdapter::Length(). |
|
|
Shift the left-end coordinates in reverse oriented positions by a given amount.
Implemented in mems::DenseAbstractMatch< MAX_SEQS >, mems::HybridAbstractMatch< FIXED_SEQ_COUNT, int64Alloc, uintAlloc >, mems::MatchProjectionAdapter, mems::PairwiseMatchAdapter, mems::SparseAbstractMatch< gnSeqIAlloc, uintAlloc >, mems::HybridAbstractMatch<>, and mems::SparseAbstractMatch<>. Referenced by mems::PairwiseMatchAdapter::MoveEnd(), and mems::MatchProjectionAdapter::MoveEnd(). |
|
|
Shift the left-end coordinates in forward oriented positions by a given amount.
Implemented in mems::DenseAbstractMatch< MAX_SEQS >, mems::HybridAbstractMatch< FIXED_SEQ_COUNT, int64Alloc, uintAlloc >, mems::MatchProjectionAdapter, mems::PairwiseMatchAdapter, mems::SparseAbstractMatch< gnSeqIAlloc, uintAlloc >, mems::HybridAbstractMatch<>, and mems::SparseAbstractMatch<>. Referenced by mems::PairwiseMatchAdapter::MoveStart(), and mems::MatchProjectionAdapter::MoveStart(). |
|
|
Returns the multiplicity of the match. e.g. the number of sequences this match occurs in Implemented in mems::DenseAbstractMatch< MAX_SEQS >, mems::HybridAbstractMatch< FIXED_SEQ_COUNT, int64Alloc, uintAlloc >, mems::MatchProjectionAdapter, mems::PairwiseMatchAdapter, mems::SparseAbstractMatch< gnSeqIAlloc, uintAlloc >, mems::HybridAbstractMatch<>, and mems::SparseAbstractMatch<>. Referenced by mems::MuscleInterface::Align(). |
|
|
Deprecated: use LeftEnd() instead Returns the start coordinate of this match in sequence.
Definition at line 287 of file AbstractMatch.h. References mems::MatchStartComparator< MatchType >::m_seq. |
|
|
Returns the orientation of this match at the startI'th matching position/sequence, either AbstractMatch::forward or AbstractMatch::reverse.
Implemented in mems::DenseAbstractMatch< MAX_SEQS >, mems::HybridAbstractMatch< FIXED_SEQ_COUNT, int64Alloc, uintAlloc >, mems::MatchProjectionAdapter, mems::PairwiseMatchAdapter, mems::SparseAbstractMatch< gnSeqIAlloc, uintAlloc >, mems::HybridAbstractMatch<>, and mems::SparseAbstractMatch<>. Referenced by mems::GetAlignment(), mems::PairwiseMatchAdapter::Orientation(), and mems::MatchProjectionAdapter::Orientation(). |
|
|
Returns the right-end coordinate of this match at the seqI'th matching position/sequence (equal to LeftEnd(seqI) + Length(seqI) - 1).
Definition at line 298 of file AbstractMatch.h. Referenced by mems::GappedAlignment::GetColumn(), mems::getInterveningCoordinates(), and mems::printMatch(). |
|
|
Returns the number of sequences in the alignment which contains this match.
Implemented in mems::DenseAbstractMatch< MAX_SEQS >, mems::HybridAbstractMatch< FIXED_SEQ_COUNT, int64Alloc, uintAlloc >, mems::MatchProjectionAdapter, mems::PairwiseMatchAdapter, mems::SparseAbstractMatch< gnSeqIAlloc, uintAlloc >, mems::HybridAbstractMatch<>, and mems::SparseAbstractMatch<>. Referenced by mems::checkConsistent(), mems::MatchLeftEndComparator::operator()(), and mems::printMatch(). |
|
||||||||||||
|
sets the left end coordinate of this match in the seqI'th matching position/sequence
Implemented in mems::DenseAbstractMatch< MAX_SEQS >, mems::HybridAbstractMatch< FIXED_SEQ_COUNT, int64Alloc, uintAlloc >, mems::MatchProjectionAdapter, mems::PairwiseMatchAdapter, mems::SparseAbstractMatch< gnSeqIAlloc, uintAlloc >, mems::HybridAbstractMatch<>, and mems::SparseAbstractMatch<>. Referenced by mems::PairwiseMatchAdapter::SetLeftEnd(), and mems::MatchProjectionAdapter::SetLeftEnd(). |
|
||||||||||||
|
Sets the length of this match to.
Implemented in mems::MatchProjectionAdapter, mems::PairwiseMatchAdapter, mems::AbstractGappedAlignment< SparseAbstractMatch<> >, mems::UngappedLocalAlignment< mems::HybridAbstractMatch<> >, and mems::UngappedLocalAlignment< HybridAbstractMatch<> >. Referenced by mems::PairwiseMatchAdapter::SetLength(), and mems::MatchProjectionAdapter::SetLength(). |
|
||||||||||||
|
sets the relative orientation of this match in the seqI'th matching position/sequence
Implemented in mems::DenseAbstractMatch< MAX_SEQS >, mems::HybridAbstractMatch< FIXED_SEQ_COUNT, int64Alloc, uintAlloc >, mems::MatchProjectionAdapter, mems::PairwiseMatchAdapter, mems::SparseAbstractMatch< gnSeqIAlloc, uintAlloc >, mems::HybridAbstractMatch<>, and mems::SparseAbstractMatch<>. Referenced by mems::PairwiseMatchAdapter::SetOrientation(), and mems::MatchProjectionAdapter::SetOrientation(). |
|
||||||||||||
|
Deprecated: use SetLeftEnd() and SetOrientation instead Sets the start in sequence.
Implemented in mems::DenseAbstractMatch< MAX_SEQS >, mems::HybridAbstractMatch< FIXED_SEQ_COUNT, int64Alloc, uintAlloc >, mems::MatchProjectionAdapter, mems::PairwiseMatchAdapter, mems::SparseAbstractMatch< gnSeqIAlloc, uintAlloc >, mems::HybridAbstractMatch<>, and mems::SparseAbstractMatch<>. Referenced by mems::PairwiseMatchAdapter::SetStart(), and mems::MatchProjectionAdapter::SetStart(). |
|
|
Deprecated: use LeftEnd() and Orientation() instead. Returns the start coordinate of this match in sequence
Implemented in mems::DenseAbstractMatch< MAX_SEQS >, mems::HybridAbstractMatch< FIXED_SEQ_COUNT, int64Alloc, uintAlloc >, mems::MatchProjectionAdapter, mems::PairwiseMatchAdapter, mems::SparseAbstractMatch< gnSeqIAlloc, uintAlloc >, mems::HybridAbstractMatch<>, and mems::SparseAbstractMatch<>. Referenced by mems::MuscleInterface::Align(), mems::checkConsistent(), mems::MatchLeftEndComparator::operator()(), mems::printMatch(), mems::PairwiseMatchAdapter::Start(), mems::MatchProjectionAdapter::Start(), mems::PairwiseMatchAdapter::UsedSeq(), and mems::MatchProjectionAdapter::UsedSeq(). |
|
|
Returns the id of the i-th defined sequence in this match.
Implemented in mems::DenseAbstractMatch< MAX_SEQS >, mems::HybridAbstractMatch< FIXED_SEQ_COUNT, int64Alloc, uintAlloc >, mems::MatchProjectionAdapter, mems::PairwiseMatchAdapter, mems::SparseAbstractMatch< gnSeqIAlloc, uintAlloc >, mems::HybridAbstractMatch<>, and mems::SparseAbstractMatch<>. |
1.3.6