NCBI C++ ToolKit
|
Search Toolkit Book for BlockModel
#include <algo/structure/cd_utils/cuBlock.hpp>
Static Public Member Functions | |
static string | toString (const BlockModel &bm) |
Private Member Functions | |
bool | intersectOneBlock (const Block &aBlock, DeltaBlockModel &delta) const |
bool | minusOneBlock (const Block &aBlock, DeltaBlockModel &delta) const |
Private Attributes | |
vector< Block > | m_blocks |
CRef< CSeq_id > | m_seqId |
Definition at line 67 of file cuBlock.hpp.
BlockModel::BlockModel | ( | ) |
Definition at line 191 of file cuBlock.cpp.
Referenced by operator+().
BlockModel::BlockModel | ( | const CRef< CSeq_align > | seqAlign, |
bool | forSlave = true |
||
) |
Definition at line 196 of file cuBlock.cpp.
References assert, GetBlockLengths(), GetBlockStarts(), GetSeqID(), i, m_blocks, and m_seqId.
Definition at line 210 of file cuBlock.cpp.
References m_blocks.
BlockModel::BlockModel | ( | const BlockModel & | rhs | ) |
Definition at line 220 of file cuBlock.cpp.
void BlockModel::addBlock | ( | Block & | block | ) |
Definition at line 225 of file cuBlock.cpp.
References m_blocks, and Block::setId().
Referenced by IntersectByMaster().
void BlockModel::addOffset | ( | int | nExt | ) |
Definition at line 649 of file cuBlock.cpp.
bool BlockModel::blockMatch | ( | const BlockModel & | bm | ) | const |
Definition at line 259 of file cuBlock.cpp.
Referenced by BlockModelPair::degap(), MultipleAlignment::extractAlignedSubset(), MultipleAlignment::isBlockAligned(), BlockModelPair::isValid(), and toSeqAlign().
void BlockModel::clipToRange | ( | unsigned int | min, |
unsigned | max | ||
) |
Definition at line 808 of file cuBlock.cpp.
References getBlocks(), mask(), max(), and min().
BlockModel * BlockModel::completeCastTo | ( | const BlockModel & | target | ) | const |
Definition at line 469 of file cuBlock.cpp.
References contain().
Referenced by MultipleAlignment::locateChildRow().
bool BlockModel::completeModelExtendsIntoUnallowedGappedRegion | ( | const BlockModel & | completeModel, |
int | sequenceLength, | ||
const vector< int > * | commonBlockExt = NULL |
||
) | const |
Definition at line 271 of file cuBlock.cpp.
References getBlock(), getBlockNumber(), getBlocks(), getGapToCTerminal(), Block::getLen(), Block::getStart(), i, and m_blocks.
bool BlockModel::contain | ( | const BlockModel & | rhs | ) | const |
Definition at line 398 of file cuBlock.cpp.
References i, isAlike(), and m_blocks.
Referenced by completeCastTo(), and MultipleAlignment::findParentalEquivalent().
Definition at line 524 of file cuBlock.cpp.
References i, Block::isIntersecting(), m_blocks, and result.
Referenced by intersectOneBlock(), and minusOneBlock().
Definition at line 98 of file cuBlock.hpp.
References m_blocks.
Referenced by completeModelExtendsIntoUnallowedGappedRegion(), BlockModelPair::extendMidway(), IntersectByMaster(), BlockModelPair::mapToMaster(), and BlockModelPair::mapToSlave().
Definition at line 703 of file cuBlock.cpp.
References i, int, and m_blocks.
Referenced by completeModelExtendsIntoUnallowedGappedRegion(), BlockModelPair::mapToMaster(), and BlockModelPair::mapToSlave().
|
inline |
Definition at line 97 of file cuBlock.hpp.
References m_blocks.
Referenced by ResidueProfiles::adjustConsensusAndGuide(), clipToRange(), completeModelExtendsIntoUnallowedGappedRegion(), BlockModelPair::degap(), BlockModelPair::extendMidway(), BlockExtender::extendOnePair(), BlockExtender::findCommonExtension(), IntersectByMaster(), CDUpdater::isFragmentedSeq(), ResidueProfiles::makeConsensus(), mask(), BlockModelPair::mask(), BlockExtender::optimizeBlockScore(), and PssmScorer::score().
Definition at line 101 of file cuBlock.hpp.
References m_blocks.
int BlockModel::getFirstAlignedPosition | ( | ) | const |
Definition at line 602 of file cuBlock.cpp.
References Block::getStart(), and m_blocks.
Referenced by overlap().
Definition at line 632 of file cuBlock.cpp.
References delta(), len, and m_blocks.
Referenced by completeModelExtendsIntoUnallowedGappedRegion(), BlockModelPair::extendMidway(), IntersectByMaster(), and CDUpdater::isFragmentedSeq().
Definition at line 618 of file cuBlock.cpp.
References delta(), and m_blocks.
Referenced by BlockModelPair::extendMidway(), and CDUpdater::isFragmentedSeq().
int BlockModel::getLastAlignedPosition | ( | ) | const |
Definition at line 596 of file cuBlock.cpp.
References Block::getEnd(), and m_blocks.
Referenced by isValid(), overlap(), and PssmScorer::score().
Definition at line 102 of file cuBlock.hpp.
References m_seqId.
Referenced by ConsensusMaker::addRows(), MultipleAlignment::locateChildRow(), mask(), BlockModelPair::remaster(), remasterAlignannot(), and toSeqAlign().
int BlockModel::getTotalBlockLength | ( | ) | const |
Definition at line 608 of file cuBlock.cpp.
References i, len, and m_blocks.
Referenced by BlockExtender::findCommonExtension(), BlockFormater::findIntersectingBlocks(), BlockFormater::getOverlappingPercentages(), IntersectByMaster(), mask(), and BlockModelPair::remaster().
pair< DeltaBlockModel *, bool > BlockModel::intersect | ( | const BlockModel & | bm | ) | const |
Definition at line 431 of file cuBlock.cpp.
References delta(), i, intersectOneBlock(), and m_blocks.
Referenced by intersectOneBlock(), and BlockModelPair::remaster().
|
private |
Definition at line 508 of file cuBlock.cpp.
References delta(), findIntersectingBlocks(), intersect(), and m_blocks.
Referenced by intersect().
bool BlockModel::isAlike | ( | const BlockModel & | rhs | ) | const |
Definition at line 238 of file cuBlock.cpp.
References m_blocks, m_seqId, and SeqIdsMatch().
Referenced by contain(), and operator==().
Definition at line 657 of file cuBlock.cpp.
References getLastAlignedPosition(), i, int, and m_blocks.
Referenced by toSeqAlign().
bool BlockModel::mask | ( | const BlockModel & | maskBlockModel | ) |
Definition at line 717 of file cuBlock.cpp.
References getBlocks(), getSeqId(), result, and SeqIdsMatch().
Referenced by clipToRange(), and BlockModelPair::mask().
Definition at line 727 of file cuBlock.cpp.
References _ASSERT, set< Key, Compare >::end(), set< Key, Compare >::find(), getBlocks(), getTotalBlockLength(), i, set< Key, Compare >::insert(), and len.
|
private |
Definition at line 493 of file cuBlock.cpp.
References delta(), findIntersectingBlocks(), and m_blocks.
Referenced by operator-().
pair< BlockModel *, bool > BlockModel::operator+ | ( | const DeltaBlockModel & | delta | ) | const |
Definition at line 444 of file cuBlock.cpp.
References BlockModel(), delta(), Block::getLen(), Block::getStart(), m_blocks, m_seqId, and result.
pair< DeltaBlockModel *, bool > BlockModel::operator- | ( | const BlockModel & | bm | ) | const |
Definition at line 413 of file cuBlock.cpp.
References set< Key, Compare >::begin(), delta(), set< Key, Compare >::end(), i, set< Key, Compare >::insert(), m_blocks, and minusOneBlock().
BlockModel & BlockModel::operator= | ( | const BlockModel & | rhs | ) |
Definition at line 231 of file cuBlock.cpp.
bool BlockModel::operator== | ( | const BlockModel & | rhs | ) | const |
Definition at line 247 of file cuBlock.cpp.
bool BlockModel::overlap | ( | const BlockModel & | bm | ) | const |
Definition at line 688 of file cuBlock.cpp.
References getFirstAlignedPosition(), getLastAlignedPosition(), m_seqId, and SeqIdsMatch().
Definition at line 103 of file cuBlock.hpp.
References m_seqId.
Referenced by ConsensusMaker::makeConsensus().
CRef< CSeq_align > BlockModel::toSeqAlign | ( | const BlockModel & | master | ) | const |
Definition at line 557 of file cuBlock.cpp.
References CSeq_id::Assign(), blockMatch(), CSeq_align_Base::eType_partial, getSeqId(), i, isValid(), m_blocks, CSeq_align_Base::Reset(), CSeq_align_Base::SetDim(), CSeq_align_Base::SetSegs(), and CSeq_align_Base::SetType().
Referenced by MultipleAlignment::extractAlignedSubset(), IntersectByMaster(), and BlockModelPair::toSeqAlign().
string BlockModel::toString | ( | ) | const |
Definition at line 830 of file cuBlock.cpp.
References GetSeqIDStr(), i, NStr::IntToString(), m_blocks, m_seqId, CRef< C, Locker >::NotEmpty(), and tmp.
|
static |
Definition at line 865 of file cuBlock.cpp.
|
private |
Definition at line 137 of file cuBlock.hpp.
Referenced by addBlock(), addOffset(), blockMatch(), BlockModel(), completeModelExtendsIntoUnallowedGappedRegion(), contain(), findIntersectingBlocks(), getBlock(), getBlockNumber(), getBlocks(), getFirstAlignedPosition(), getGapToCTerminal(), getGapToNTerminal(), getLastAlignedPosition(), getTotalBlockLength(), intersect(), intersectOneBlock(), isAlike(), isValid(), minusOneBlock(), operator+(), operator-(), operator=(), operator==(), toSeqAlign(), and toString().
Definition at line 138 of file cuBlock.hpp.
Referenced by BlockModel(), getSeqId(), isAlike(), operator+(), operator=(), overlap(), setSeqId(), and toString().