NCBI C++ ToolKit
|
Search Toolkit Book for CAlnMap
#include <objtools/alnmgr/alnmap.hpp>
Classes | |
class | CAlnChunk |
class | CAlnChunkVec |
class | CNumSegWithOffset |
Public Types | |
enum | ESegTypeFlags { fSeq = 0x0001 , fNotAlignedToSeqOnAnchor = 0x0002 , fInsert = fSeq | fNotAlignedToSeqOnAnchor , fUnalignedOnRight = 0x0004 , fUnalignedOnLeft = 0x0008 , fNoSeqOnRight = 0x0010 , fNoSeqOnLeft = 0x0020 , fEndOnRight = 0x0040 , fEndOnLeft = 0x0080 , fUnaligned = 0x0100 , fUnalignedOnRightOnAnchor = 0x0200 , fUnalignedOnLeftOnAnchor = 0x0400 , fTypeIsSet = (TSegTypeFlags) 0x80000000 } |
enum | EGetChunkFlags { fAllChunks = 0x0000 , fIgnoreUnaligned = 0x0001 , fInsertSameAsSeq = 0x0002 , fDeletionSameAsGap = 0x0004 , fIgnoreAnchor = fInsertSameAsSeq | fDeletionSameAsGap , fIgnoreGaps = 0x0008 , fChunkSameAsSeg = 0x0010 , fSkipUnalignedGaps = 0x0020 , fSkipDeletions = 0x0040 , fSkipAllGaps = fSkipUnalignedGaps | fSkipDeletions , fSkipInserts = 0x0080 , fSkipAlnSeq = 0x0100 , fSeqOnly = fSkipAllGaps | fSkipInserts , fInsertsOnly = fSkipAllGaps | fSkipAlnSeq , fAlnSegsOnly = fSkipInserts | fSkipUnalignedGaps , fDoNotTruncateSegs = 0x0200 , fAddUnalignedChunks = 0x0400 } |
enum | ESegmentTrimFlag { eSegment_Include , eSegment_Trim , eSegment_Remove } |
typedef unsigned int | TSegTypeFlags |
typedef CDense_seg::TDim | TDim |
typedef TDim | TNumrow |
typedef CRange< TSeqPos > | TRange |
typedef CRange< TSignedSeqPos > | TSignedRange |
typedef CDense_seg::TNumseg | TNumseg |
typedef list< TSeqPos > | TSeqPosList |
typedef int | TGetChunkFlags |
typedef TNumseg | TNumchunk |
![]() | |
enum | EAllocFillMode { eAllocFillNone = 1 , eAllocFillZero , eAllocFillPattern } |
Control filling of newly allocated memory. More... | |
typedef CObjectCounterLocker | TLockerType |
Default locker type for CRef. More... | |
typedef atomic< Uint8 > | TCounter |
Counter type is CAtomiCounter. More... | |
typedef Uint8 | TCount |
Alias for value type of counter. More... | |
![]() | |
enum | EAlignType { fDNA = 0x01 , fProtein = 0x02 , fMixed = 0x04 , fHomogenous = fDNA | fProtein , fInvalid = 0x80000000 } |
enum | ESearchDirection { eNone , eBackwards , eForward , eLeft , eRight } |
Position search options. More... | |
enum | ESortState { eUnSorted , eAscending , eDescending , eNotSupported } |
typedef int | TNumrow |
typedef objects::CSeqVector::TResidue | TResidue |
typedef CRange< TSeqPos > | TRange |
typedef CRange< TSignedSeqPos > | TSignedRange |
Static Public Member Functions | |
static bool | IsTypeInsert (TSegTypeFlags type) |
![]() | |
static NCBI_XNCBI_EXPORT void | ThrowNullPointerException (void) |
Define method to throw null pointer exception. More... | |
static NCBI_XNCBI_EXPORT void | ThrowNullPointerException (const type_info &type) |
static EAllocFillMode | GetAllocFillMode (void) |
static void | SetAllocFillMode (EAllocFillMode mode) |
static void | SetAllocFillMode (const string &value) |
Set mode from configuration parameter value. More... | |
![]() | |
static void | EnableDebugDump (bool on) |
Protected Types | |
typedef vector< TSegTypeFlags > | TRawSegTypes |
Protected Attributes | |
CConstRef< CDense_seg > | m_DS |
TNumrow | m_NumRows |
TNumseg | m_NumSegs |
const CDense_seg::TIds & | m_Ids |
const CDense_seg::TStarts & | m_Starts |
const CDense_seg::TLens & | m_Lens |
const CDense_seg::TStrands & | m_Strands |
const CDense_seg::TScores & | m_Scores |
const CDense_seg::TWidths & | m_Widths |
TNumrow | m_Anchor |
vector< TNumseg > | m_AlnSegIdx |
vector< TNumseg > | m_SeqLeftSegs |
vector< TNumseg > | m_SeqRightSegs |
CDense_seg::TStarts | m_AlnStarts |
vector< CNumSegWithOffset > | m_NumSegWithOffsets |
TRawSegTypes * | m_RawSegTypes |
Private Types | |
typedef CObject | TParent |
Friends | |
CConstRef< CAlnChunk > | CAlnChunkVec::operator[] (TNumchunk i) const |
Additional Inherited Members | |
![]() | |
static const TCount | eCounterBitsCanBeDeleted = 1 << 0 |
Define possible object states. More... | |
static const TCount | eCounterBitsInPlainHeap = 1 << 1 |
Heap signature was found. More... | |
static const TCount | eCounterBitsPlaceMask |
Mask for 'in heap' state flags. More... | |
static const int | eCounterStep = 1 << 2 |
Skip over the "in heap" bits. More... | |
static const TCount | eCounterValid = TCount(1) << (sizeof(TCount) * 8 - 2) |
Minimal value for valid objects (reference counter is zero) Must be a single bit value. More... | |
static const TCount | eCounterStateMask |
Valid object, and object in heap. More... | |
Definition at line 44 of file alnmap.hpp.
typedef CDense_seg::TDim CAlnMap::TDim |
Definition at line 68 of file alnmap.hpp.
typedef int CAlnMap::TGetChunkFlags |
Definition at line 110 of file alnmap.hpp.
typedef TNumseg CAlnMap::TNumchunk |
Definition at line 112 of file alnmap.hpp.
typedef TDim CAlnMap::TNumrow |
Definition at line 69 of file alnmap.hpp.
typedef CDense_seg::TNumseg CAlnMap::TNumseg |
Definition at line 72 of file alnmap.hpp.
|
private |
Definition at line 46 of file alnmap.hpp.
typedef CRange<TSeqPos> CAlnMap::TRange |
Definition at line 70 of file alnmap.hpp.
|
protected |
Definition at line 342 of file alnmap.hpp.
typedef unsigned int CAlnMap::TSegTypeFlags |
Definition at line 50 of file alnmap.hpp.
typedef list<TSeqPos> CAlnMap::TSeqPosList |
Definition at line 73 of file alnmap.hpp.
typedef CRange<TSignedSeqPos> CAlnMap::TSignedRange |
Definition at line 71 of file alnmap.hpp.
Definition at line 76 of file alnmap.hpp.
Enumerator | |
---|---|
eSegment_Include | |
eSegment_Trim | |
eSegment_Remove |
Definition at line 120 of file alnmap.hpp.
Definition at line 51 of file alnmap.hpp.
|
inline |
Definition at line 428 of file alnmap.hpp.
References x_CreateAlnStarts(), and x_Init().
|
inline |
Definition at line 447 of file alnmap.hpp.
References SetAnchor(), and x_Init().
|
inline |
Definition at line 466 of file alnmap.hpp.
References m_RawSegTypes.
CRef< CSeq_align > CAlnMap::CreateAlignFromRange | ( | const vector< TNumrow > & | selected_rows, |
TSignedSeqPos | aln_from, | ||
TSignedSeqPos | aln_to, | ||
ESegmentTrimFlag | seg_flag = eSegment_Trim |
||
) |
Definition at line 1404 of file alnmap.cpp.
References _ASSERT, eSegment_Remove, eSegment_Trim, CSeq_align_Base::eType_partial, GetAlnStart(), GetAlnStop(), GetLen(), GetSeg(), GetStart(), i, len, m_Ids, m_NumRows, m_NumSegs, m_Strands, m_Widths, r(), CRef< C, Locker >::Reset(), CDense_seg_Base::SetDim(), CSeq_align_Base::SetDim(), CDense_seg_Base::SetIds(), CDense_seg_Base::SetLens(), CDense_seg_Base::SetNumseg(), CSeq_align_Base::SetSegs(), CDense_seg_Base::SetStarts(), CDense_seg_Base::SetStrands(), CSeq_align_Base::SetType(), and CDense_seg::SetWidths().
CRef< CAlnMap::CAlnChunkVec > CAlnMap::GetAlnChunks | ( | TNumrow | row, |
const TSignedRange & | range, | ||
TGetChunkFlags | flags = fAlnSegsOnly |
||
) | const |
Definition at line 1002 of file alnmap.cpp.
References fDoNotTruncateSegs, flags, GetAlnStart(), GetAlnStop(), GetNumSegs(), GetSeg(), m_NumSegs, compile_time_bits::range(), x_GetChunks(), and x_GetRawSegFromSeg().
Referenced by CAlnMapPrinter::Chunks(), CAlignFormatUtil::GetAlignLengths(), CAlnVec::GetAlnSeqString(), and CSampleAlnmgrApplication::Run().
TSignedSeqPos CAlnMap::GetAlnPosFromSeqPos | ( | TNumrow | row, |
TSeqPos | seq_pos, | ||
ESearchDirection | dir = eNone , |
||
bool | try_reverse_dir = true |
||
) | const |
Definition at line 527 of file alnmap.cpp.
References delta(), IAlnExplorer::eBackwards, IAlnExplorer::eForward, IAlnExplorer::eLeft, IAlnExplorer::eNone, IAlnExplorer::eRight, CAlnMap::CNumSegWithOffset::GetAlnSeg(), GetAlnStart(), GetAlnStop(), GetNumSegs(), CAlnMap::CNumSegWithOffset::GetOffset(), GetRawSeg(), GetWidth(), IsPositiveStrand(), len, m_AlnStarts, m_Lens, m_NumRows, m_Starts, plus(), x_GetLen(), and x_GetSegFromRawSeg().
Referenced by s_GetGermlineTranslation(), s_MapSlaveFeatureToMaster(), s_MaskQuerySeq(), CAlnVwrApp::View10(), and CIgBlast::x_AnnotateDomain().
Definition at line 481 of file alnmap.hpp.
References m_AlnStarts.
Referenced by CAlnPos_CI::CAlnPos_CI(), CAlnMap::CAlnChunkVec::operator[](), s_MaskQuerySeq(), CAlnMapPrinter::Segments(), CAlnVwrApp::View10(), and CAlnVwrApp::View7().
|
inline |
Definition at line 177 of file alnmap.hpp.
Referenced by CreateAlignFromRange(), GetAlnChunks(), GetAlnPosFromSeqPos(), CAlnVec::GetColumnVector(), GetSeqAlnStart(), and GetSeqPosFromAlnPos().
Definition at line 488 of file alnmap.hpp.
References m_AlnStarts, m_Lens, and x_GetRawSegFromSeg().
Referenced by CAlnPos_CI::CAlnPos_CI(), CContigAssembly::CAlnStats::CAlnStats(), CAlnMapPrinter::Chunks(), CAlnVecPrinter::ClustalStyle(), CAlignFormatUtil::GetAlignmentLength(), CAlnMap::CAlnChunkVec::operator[](), CAlnVecPrinter::PopsetStyle(), CTestSingleAln_All::RunTest(), s_CalculateMatchingColumns(), s_MaskQuerySeq(), CAlnMapPrinter::Segments(), CAlnVwrApp::View10(), CAlnVwrApp::View9(), COligoSpecificityCheck::x_FindMatchInfoForAlignment(), CMultiAlnPrinter::x_PrintNexus(), and CMultiAlnPrinter::x_PrintPhylipInterleaved().
|
inline |
Definition at line 495 of file alnmap.hpp.
References GetNumSegs().
Referenced by CreateAlignFromRange(), GetAlnChunks(), GetAlnPosFromSeqPos(), CAlnVec::GetColumnVector(), CAlnVec::GetResidue(), GetResidueIndexMap(), GetSeqAlnStop(), GetSeqPosFromAlnPos(), and CAlnVec::GetWholeAlnSeqString().
|
inline |
Definition at line 530 of file alnmap.hpp.
References m_Anchor.
Referenced by CAlnPos_CI::operator++(), and CAlnPos_CI::operator--().
|
inline |
Definition at line 475 of file alnmap.hpp.
References m_DS.
Referenced by CAlnVecPrinter::ClustalStyle(), CPhyTreeCalc::GetSeqAlign(), CPhyTreeCalc::GetSeqIds(), CAlnVecPrinter::PopsetStyle(), CPhyTreeCalc::SetQuery(), CPhyTreeCalc::x_CreateValidAlign(), CGff3Writer::xAssignAlignmentDensegGap(), CGff3Writer::xAssignAlignmentDensegScores(), and CGff3FlybaseWriter::xAssignAlignmentDensegScores().
Definition at line 621 of file alnmap.hpp.
References m_Lens, offset, and x_GetRawSegFromSeg().
Referenced by CreateAlignFromRange(), CAlnMapPrinter::CsvTable(), CScoreBuilder::GetBlastScoreDenseg(), CAlnVec::GetColumnVector(), CAlnPos_CI::operator++(), CAlnPos_CI::operator--(), CAlnVwrApp::View7(), CGff3Writer::xAssignAlignmentDensegTarget(), and CGff3FlybaseWriter::xAssignAlignmentDensegTarget().
|
inline |
Definition at line 517 of file alnmap.hpp.
References m_NumRows.
Referenced by CBuildAlnVecJob::Build(), CPhyTreeCalc::CalcBioTree(), CAlnPos_CI::CAlnPos_CI(), CAlignFormatUtil::GetAlignLengths(), CAlnVec::GetColumnVector(), s_GetCountIdentityMismatch(), s_GetTails(), CAlnVec::SetGenCode(), CAlnVwrApp::View10(), CAlnVwrApp::View7(), CAlnVwrApp::View8(), CPhyTreeCalc::x_CalcDivergenceMatrix(), CPhyTreeCalc::x_ComputeTree(), CTreeBuilderJob::x_CreateProjectItems(), CPhyTreeCalc::x_CreateValidAlign(), CCIGAR_Formatter::x_FormatDensegRows(), CApplyRNAITSDlg::x_GetRow(), CCIGAR_Formatter::x_GetRowById(), x_Init(), CMultiAlnPrinter::x_PrintFastaPlusGaps(), CMultiAlnPrinter::x_PrintNexus(), CMultiAlnPrinter::x_PrintPhylipInterleaved(), CMultiAlnPrinter::x_PrintPhylipSequential(), and CGff3Writer::xWriteAlignDenseg().
|
inline |
Definition at line 510 of file alnmap.hpp.
References IsSetAnchor(), m_AlnSegIdx, and m_NumSegs.
Referenced by CAlnVecPrinter::ClustalStyle(), CAlnMapPrinter::CsvTable(), GetAlnChunks(), GetAlnPosFromSeqPos(), GetAlnStop(), CScoreBuilder::GetBlastScoreDenseg(), CAlnVecPrinter::PopsetStyle(), CTestSingleAln_All::RunTest(), s_GetCountIdentityMismatch(), s_MaskQuerySeq(), CAlnMapPrinter::Segments(), CAlnVwrApp::View7(), x_CreateAlnStarts(), CCIGAR_Formatter::x_FormatLine(), CGff3Writer::xAssignAlignmentDensegGap(), CGff3Writer::xAssignAlignmentDensegTarget(), and CGff3FlybaseWriter::xAssignAlignmentDensegTarget().
|
inline |
Definition at line 653 of file alnmap.hpp.
References GetSeqLen(), GetStart(), and offset.
Referenced by CTestSingleAln_All::RunTest(), CCIGAR_Formatter::x_FormatLine(), and CGff3Writer::xAssignAlignmentDensegGap().
CAlnMap::TNumseg CAlnMap::GetRawSeg | ( | TNumrow | row, |
TSeqPos | seq_pos, | ||
ESearchDirection | dir = eNone , |
||
bool | try_reverse_dir = true |
||
) | const |
Definition at line 400 of file alnmap.cpp.
References IAlnExplorer::eBackwards, IAlnExplorer::eForward, IAlnExplorer::eLeft, IAlnExplorer::eNone, IAlnExplorer::eRight, GetSeqStart(), GetSeqStop(), IsPositiveStrand(), last(), m_NumRows, m_NumSegs, m_Starts, plus(), and x_GetLen().
Referenced by GetAlnPosFromSeqPos(), GetSeqChunks(), and GetSeqPosFromSeqPos().
void CAlnMap::GetResidueIndexMap | ( | TNumrow | row0, |
TNumrow | row1, | ||
TRange | aln_rng, | ||
vector< TSignedSeqPos > & | result, | ||
TRange & | rng0, | ||
TRange & | rng1 | ||
) | const |
Definition at line 757 of file alnmap.cpp.
References _ASSERT, delta(), GetAlnStop(), CRange_Base::GetFrom(), CRange_Base::GetTo(), NStr::IntToString(), IsPositiveStrand(), IsSetAnchor(), m_Lens, m_NumRows, m_NumSegs, m_Starts, NCBI_THROW, result, CRange_Base::SetFrom(), CRange_Base::SetTo(), ncbi::grid::netcache::search::fields::size, and string.
Referenced by CAlnVwrApp::View9().
CAlnMap::TNumseg CAlnMap::GetSeg | ( | TSeqPos | aln_pos | ) | const |
Definition at line 373 of file alnmap.cpp.
References m_AlnStarts, m_Lens, and x_GetRawSegFromSeg().
Referenced by CAlnPos_CI::CAlnPos_CI(), CreateAlignFromRange(), GetAlnChunks(), CAlnVec::GetColumnVector(), CAlnVec::GetResidue(), GetSeqPosFromAlnPos(), GetTypeAtAlnPos(), and CIgBlast::x_AnnotateDomain().
|
inline |
Definition at line 503 of file alnmap.hpp.
References offset, x_GetRawSegFromSeg(), and x_GetRawSegType().
Referenced by CBuildAlnVecJob::Build(), CAlnVec::GetColumnVector(), CAlnVec::GetResidue(), GetTypeAtAlnPos(), CAlnMapPrinter::Segments(), CCIGAR_Formatter::x_FormatLine(), and CGff3Writer::xAssignAlignmentDensegGap().
|
inline |
Definition at line 691 of file alnmap.hpp.
References GetSeqAlnStart(), and GetSeqAlnStop().
Referenced by CAlignFormatUtil::GetAlignLengths().
TSignedSeqPos CAlnMap::GetSeqAlnStart | ( | TNumrow | row | ) | const |
Definition at line 969 of file alnmap.cpp.
References GetAlnStart(), IsSetAnchor(), m_AlnSegIdx, m_NumRows, m_Starts, and x_GetSeqLeftSeg().
Referenced by GetSeqAlnRange(), and s_SetAirrAlignmentInfo().
TSignedSeqPos CAlnMap::GetSeqAlnStop | ( | TNumrow | row | ) | const |
Definition at line 985 of file alnmap.cpp.
References GetAlnStop(), IsSetAnchor(), m_AlnSegIdx, m_NumRows, m_Starts, and x_GetSeqRightSeg().
Referenced by GetSeqAlnRange(), and s_SetAirrAlignmentInfo().
CRef< CAlnMap::CAlnChunkVec > CAlnMap::GetSeqChunks | ( | TNumrow | row, |
const TSignedRange & | range, | ||
TGetChunkFlags | flags = fAlnSegsOnly |
||
) | const |
Definition at line 1039 of file alnmap.cpp.
References fDoNotTruncateSegs, flags, GetRawSeg(), GetSeqStart(), GetSeqStop(), IsPositiveStrand(), m_NumSegs, compile_time_bits::range(), x_GetChunks(), x_GetRawStart(), and x_GetRawStop().
Referenced by COligoSpecificityCheck::x_NW_alignment().
Definition at line 645 of file alnmap.hpp.
References m_Ids.
Referenced by CBuildAlnVecJob::Build(), CAlnMapPrinter::CAlnMapPrinter(), CDisplaySeqalign::DisplaySeqalign(), CAlnVec::GetBioseqHandle(), s_DoNWalign(), CCIGAR_Formatter::x_FormatDensegRows(), CCIGAR_Formatter::x_FormatLine(), CApplyRNAITSDlg::x_GetRow(), CCIGAR_Formatter::x_GetRowById(), CMultiAlnPrinter::x_PrintFastaPlusGaps(), CMultiAlnPrinter::x_PrintNexus(), CMultiAlnPrinter::x_PrintPhylipInterleaved(), CMultiAlnPrinter::x_PrintPhylipSequential(), CGff3Writer::xAssignAlignmentDensegGap(), CGff3Writer::xAssignAlignmentDensegMethod(), CGff3Writer::xAssignAlignmentDensegSeqId(), CGff3FlybaseWriter::xAssignAlignmentDensegSeqId(), CGff3Writer::xAssignAlignmentDensegTarget(), CGff3FlybaseWriter::xAssignAlignmentDensegTarget(), CGff3Writer::xAssignAlignmentDensegType(), and CGff3Writer::xWriteAlignDenseg().
Definition at line 628 of file alnmap.hpp.
References offset, x_GetLen(), and x_GetRawSegFromSeg().
Referenced by GetRange(), and GetStop().
TSignedSeqPos CAlnMap::GetSeqPosFromAlnPos | ( | TNumrow | for_row, |
TSeqPos | aln_pos, | ||
ESearchDirection | dir = eNone , |
||
bool | try_reverse_dir = true |
||
) | const |
Definition at line 663 of file alnmap.cpp.
References delta(), IAlnExplorer::eNone, GetAlnStart(), GetAlnStop(), GetSeg(), GetStart(), GetWidth(), IsPositiveStrand(), x_FindClosestSeqPos(), x_GetLen(), and x_GetRawSegFromSeg().
Referenced by CContigAssembly::BestLocalSubAlignment(), CAlnVec::GetResidue(), CApplyRNAITSDlg::GetRNAITSList_AlignCoordFromDlg(), CAlnVecPrinter::PopsetStyle(), CTestSingleAln_All::RunTest(), s_MapSlaveFeatureToMaster(), and CAlnVwrApp::View10().
TSignedSeqPos CAlnMap::GetSeqPosFromSeqPos | ( | TNumrow | for_row, |
TNumrow | row, | ||
TSeqPos | seq_pos, | ||
ESearchDirection | dir = eNone , |
||
bool | try_reverse_dir = true |
||
) | const |
Definition at line 688 of file alnmap.cpp.
References delta(), GetRawSeg(), GetWidth(), m_NumRows, m_Starts, offset, StrandSign(), x_FindClosestSeqPos(), and x_GetLen().
Referenced by CAlnVwrApp::View10(), CIgBlast::x_AnnotateC(), CIgBlast::x_AnnotateDomain(), CIgBlast::x_FillJDomain(), and COligoSpecificityCheck::x_NW_alignment().
|
inline |
Definition at line 684 of file alnmap.hpp.
References GetSeqStart(), and GetSeqStop().
Referenced by s_MapSlaveFeatureToMaster().
Definition at line 665 of file alnmap.hpp.
References IsPositiveStrand(), m_NumRows, m_Starts, x_GetSeqLeftSeg(), and x_GetSeqRightSeg().
Referenced by GetRawSeg(), GetSeqChunks(), GetSeqRange(), CTestSingleAln_All::RunTest(), s_GetGermlineTranslation(), s_GetTails(), CBlastTabularInfo::SetFields(), CIgBlastTabularInfo::SetIgAnnotation(), CDisplaySeqalign::x_CalcUrlLinksParams(), CGff3Writer::xAssignAlignmentDensegLocation(), and CGff3FlybaseWriter::xAssignAlignmentDensegLocation().
Definition at line 675 of file alnmap.hpp.
References IsPositiveStrand(), m_NumRows, m_Starts, x_GetLen(), x_GetSeqLeftSeg(), and x_GetSeqRightSeg().
Referenced by GetRawSeg(), GetSeqChunks(), GetSeqRange(), CTestSingleAln_All::RunTest(), s_GetGermlineTranslation(), s_GetTails(), CBlastTabularInfo::SetFields(), CIgBlastTabularInfo::SetIgAnnotation(), CDisplaySeqalign::x_CalcUrlLinksParams(), CGff3Writer::xAssignAlignmentDensegLocation(), and CGff3FlybaseWriter::xAssignAlignmentDensegLocation().
|
inline |
Definition at line 614 of file alnmap.hpp.
References m_NumRows, m_Starts, offset, and x_GetRawSegFromSeg().
Referenced by CreateAlignFromRange(), CAlnMapPrinter::CsvTable(), CScoreBuilder::GetBlastScoreDenseg(), CAlnVec::GetColumnVector(), GetRange(), CAlnVec::GetSegSeqString(), CAlnPos_CI::GetSeqPos(), GetSeqPosFromAlnPos(), GetStop(), CTestSingleAln_All::RunTest(), s_GetCountIdentityMismatch(), CAlnMapPrinter::Segments(), CAlnVwrApp::View7(), CIgBlast::x_AnnotateDomain(), CGff3Writer::xAssignAlignmentDensegTarget(), and CGff3FlybaseWriter::xAssignAlignmentDensegTarget().
|
inline |
Definition at line 635 of file alnmap.hpp.
References GetSeqLen(), GetStart(), and offset.
Referenced by CAlnMapPrinter::CsvTable(), CAlnVec::GetSegSeqString(), CTestSingleAln_All::RunTest(), s_GetCountIdentityMismatch(), CAlnMapPrinter::Segments(), and CAlnVwrApp::View7().
|
inline |
Definition at line 730 of file alnmap.hpp.
References GetSeg(), and GetSegType().
Definition at line 560 of file alnmap.hpp.
References _ASSERT, m_NumRows, and m_Widths.
Referenced by CAlnVecPrinter::ClustalStyle(), GetAlnPosFromSeqPos(), CAlnVec::GetAlnSeqString(), CAlnVec::GetColumnVector(), CAlnVec::GetResidue(), GetSeqPosFromAlnPos(), GetSeqPosFromSeqPos(), CAlnVec::GetSeqString(), CAlnVec::GetWholeAlnSeqString(), CAlnMap::CAlnChunkVec::operator[](), CAlnVecPrinter::PopsetStyle(), and x_GetLen().
Definition at line 607 of file alnmap.hpp.
References IsPositiveStrand().
Referenced by s_MapSlaveFeatureToMaster().
Definition at line 600 of file alnmap.hpp.
References eNa_strand_minus, and m_Strands.
Referenced by CAlnVec::CalculateScore(), GetAlnPosFromSeqPos(), CAlnVec::GetAlnSeqString(), CAlnVec::GetColumnVector(), GetRawSeg(), CAlnVec::GetResidue(), GetResidueIndexMap(), GetSeqChunks(), CAlnPos_CI::GetSeqPos(), GetSeqPosFromAlnPos(), GetSeqStart(), GetSeqStop(), CAlnVec::GetSeqString(), CAlnVec::GetWholeAlnSeqString(), IsNegativeStrand(), CAlnMap::CAlnChunkVec::operator[](), CAlnVec::RetrieveSegmentSequences(), s_DoNWalign(), s_GetTails(), s_MapSlaveFeatureToMaster(), StrandSign(), x_FindClosestSeqPos(), CAlnVec::x_GetSeqVector(), COligoSpecificityCheck::x_NW_alignment(), x_SetRawSegType(), and x_SetRawSegTypes().
|
inline |
Definition at line 524 of file alnmap.hpp.
References m_Anchor.
Referenced by GetNumSegs(), GetResidueIndexMap(), GetSeqAlnStart(), GetSeqAlnStop(), CAlnVec::GetWholeAlnSeqString(), x_GetRawSegFromSeg(), x_GetSegFromRawSeg(), x_SetRawSegType(), and x_SetRawSegTypes().
|
inlinestatic |
Definition at line 723 of file alnmap.hpp.
References fInsert.
Referenced by CAlnMapPrinter::Chunks(), and CAlnMapPrinter::Segments().
void CAlnMap::SetAnchor | ( | TNumrow | anchor | ) |
Definition at line 79 of file alnmap.cpp.
References i, len, m_AlnSegIdx, m_AlnStarts, m_Anchor, m_Lens, m_NumRows, m_NumSegs, m_NumSegWithOffsets, m_RawSegTypes, m_Starts, NCBI_THROW, offset, and UnsetAnchor().
Referenced by BuildAlignDataSource(), CAlnMap(), CAlnVwrApp::Run(), CSampleAlnmgrApplication::Run(), and CAlnMrgApp::ViewMergedAln().
Definition at line 593 of file alnmap.hpp.
References IsPositiveStrand().
Referenced by CScoreBuilder::GetBlastScoreDenseg(), GetSeqPosFromSeqPos(), CCIGAR_Formatter::x_FormatLine(), CGff3Writer::xAssignAlignmentDensegLocation(), CGff3FlybaseWriter::xAssignAlignmentDensegLocation(), CGff3Writer::xAssignAlignmentDensegTarget(), and CGff3FlybaseWriter::xAssignAlignmentDensegTarget().
void CAlnMap::UnsetAnchor | ( | void | ) |
Definition at line 63 of file alnmap.cpp.
References m_AlnSegIdx, m_Anchor, m_NumSegWithOffsets, m_RawSegTypes, and x_CreateAlnStarts().
Referenced by SetAnchor().
|
inlineprotected |
|
protected |
Definition at line 49 of file alnmap.cpp.
References GetNumSegs(), i, len, m_AlnStarts, and m_Lens.
Referenced by CAlnMap(), and UnsetAnchor().
|
protected |
Definition at line 598 of file alnmap.cpp.
References _ASSERT, IAlnExplorer::eBackwards, IAlnExplorer::eForward, IAlnExplorer::eLeft, IAlnExplorer::eNone, IAlnExplorer::eRight, NStr::IntToString(), IsPositiveStrand(), m_NumSegs, NCBI_THROW, x_GetRawStart(), and x_GetRawStop().
Referenced by GetSeqPosFromAlnPos(), and GetSeqPosFromSeqPos().
|
protected |
Definition at line 1145 of file alnmap.cpp.
References _ASSERT, Critical(), fAddUnalignedChunks, fIgnoreGaps, flags, fSeq, fUnalignedOnRight, int, CAlnMap::CAlnChunkVec::m_LeftDelta, m_NumRows, CAlnMap::CAlnChunkVec::m_RightDelta, CAlnMap::CAlnChunkVec::m_StartSegs, CAlnMap::CAlnChunkVec::m_StopSegs, NCBI_THROW, type, x_CompareAdjacentSegTypes(), x_GetRawSegType(), and x_SkipType().
Referenced by GetAlnChunks(), and GetSeqChunks().
Definition at line 571 of file alnmap.hpp.
References _ASSERT, GetWidth(), len, and m_Lens.
Referenced by GetAlnPosFromSeqPos(), GetRawSeg(), GetSeqLen(), GetSeqPosFromAlnPos(), GetSeqPosFromSeqPos(), GetSeqStop(), CAlnMap::CAlnChunkVec::operator[](), x_GetRawStop(), x_SetRawSegType(), and x_SetRawSegTypes().
|
inlineprotected |
Definition at line 547 of file alnmap.hpp.
References IsSetAnchor(), and m_AlnSegIdx.
Referenced by GetAlnChunks(), GetAlnStop(), GetLen(), GetSeg(), GetSegType(), GetSeqLen(), GetSeqPosFromAlnPos(), and GetStart().
|
inlineprotected |
Definition at line 712 of file alnmap.hpp.
References _ASSERT, fTypeIsSet, m_NumRows, types, x_GetRawSegTypes(), and x_SetRawSegTypes().
Referenced by GetSegType(), CAlnMap::CAlnChunkVec::operator[](), and x_GetChunks().
|
inlineprotected |
Definition at line 699 of file alnmap.hpp.
References m_NumRows, m_NumSegs, and m_RawSegTypes.
Referenced by x_GetRawSegType(), and x_SetRawSegTypes().
|
inlineprotected |
Definition at line 554 of file alnmap.hpp.
References m_NumRows, and m_Starts.
Referenced by GetSeqChunks(), x_FindClosestSeqPos(), and x_GetRawStop().
|
inlineprotected |
Definition at line 584 of file alnmap.hpp.
References x_GetLen(), and x_GetRawStart().
Referenced by GetSeqChunks(), and x_FindClosestSeqPos().
|
inlineprotected |
Definition at line 539 of file alnmap.hpp.
References IsSetAnchor(), and m_NumSegWithOffsets.
Referenced by GetAlnPosFromSeqPos(), and CAlnMap::CAlnChunkVec::operator[]().
|
protected |
Definition at line 716 of file alnmap.cpp.
References NStr::IntToString(), m_NumRows, m_NumSegs, m_SeqLeftSegs, m_Starts, and NCBI_THROW.
Referenced by GetSeqAlnStart(), GetSeqStart(), GetSeqStop(), and CAlnVec::GetWholeAlnSeqString().
|
protected |
Definition at line 736 of file alnmap.cpp.
References NStr::IntToString(), m_NumRows, m_NumSegs, m_SeqRightSegs, m_Starts, and NCBI_THROW.
Referenced by GetSeqAlnStop(), GetSeqStart(), GetSeqStop(), and CAlnVec::GetWholeAlnSeqString().
|
protected |
Definition at line 42 of file alnmap.cpp.
References GetNumRows(), m_SeqLeftSegs, and m_SeqRightSegs.
Referenced by CAlnMap().
|
protected |
Definition at line 125 of file alnmap.cpp.
References fEndOnLeft, fEndOnRight, flags, fNoSeqOnLeft, fNoSeqOnRight, fNotAlignedToSeqOnAnchor, fSeq, fUnalignedOnLeft, fUnalignedOnLeftOnAnchor, fUnalignedOnRight, fUnalignedOnRightOnAnchor, IsPositiveStrand(), IsSetAnchor(), m_Anchor, m_NumRows, m_NumSegs, m_Starts, and x_GetLen().
|
protected |
Definition at line 235 of file alnmap.cpp.
References _ASSERT, fEndOnLeft, fEndOnRight, flags, fNoSeqOnLeft, fNoSeqOnRight, fNotAlignedToSeqOnAnchor, fSeq, fTypeIsSet, fUnalignedOnLeft, fUnalignedOnLeftOnAnchor, fUnalignedOnRight, fUnalignedOnRightOnAnchor, IsPositiveStrand(), IsSetAnchor(), m_Anchor, m_NumRows, m_NumSegs, m_Starts, plus(), types, x_GetLen(), and x_GetRawSegTypes().
Referenced by x_GetRawSegType().
|
inlineprotected |
Definition at line 1082 of file alnmap.cpp.
References flags, fNotAlignedToSeqOnAnchor, fSeq, fSkipAlnSeq, fSkipDeletions, fSkipInserts, and fSkipUnalignedGaps.
Referenced by x_GetChunks().
|
protected |
Definition at line 379 of file alnmap.hpp.
Referenced by GetNumSegs(), GetSeqAlnStart(), GetSeqAlnStop(), SetAnchor(), UnsetAnchor(), and x_GetRawSegFromSeg().
|
protected |
Definition at line 382 of file alnmap.hpp.
Referenced by GetAlnPosFromSeqPos(), GetAlnStart(), GetAlnStop(), GetSeg(), SetAnchor(), and x_CreateAlnStarts().
|
protected |
Definition at line 378 of file alnmap.hpp.
Referenced by GetAnchor(), CAlnVec::GetWholeAlnSeqString(), IsSetAnchor(), SetAnchor(), UnsetAnchor(), x_SetRawSegType(), and x_SetRawSegTypes().
|
protected |
Definition at line 369 of file alnmap.hpp.
Referenced by CAlnVec::CreateConsensus(), and GetDenseg().
|
protected |
Definition at line 372 of file alnmap.hpp.
Referenced by CreateAlignFromRange(), CAlnVec::CreateConsensus(), and GetSeqId().
|
protected |
Definition at line 374 of file alnmap.hpp.
Referenced by CAlnVec::CalculateScore(), CAlnVec::CreateConsensus(), GetAlnPosFromSeqPos(), GetAlnStop(), GetLen(), GetResidueIndexMap(), GetSeg(), CAlnVec::GetWholeAlnSeqString(), CAlnVec::RetrieveSegmentSequences(), SetAnchor(), x_CreateAlnStarts(), and x_GetLen().
|
protected |
Definition at line 370 of file alnmap.hpp.
Referenced by CAlnVec::CalculatePercentIdentity(), CAlnVec::CalculateScore(), CreateAlignFromRange(), CAlnVec::CreateConsensus(), GetAlnPosFromSeqPos(), CAlnVec::GetColumnVector(), GetNumRows(), GetRawSeg(), GetResidueIndexMap(), GetSeqAlnStart(), GetSeqAlnStop(), GetSeqPosFromSeqPos(), GetSeqStart(), GetSeqStop(), GetStart(), CAlnVec::GetWholeAlnSeqString(), GetWidth(), CAlnMap::CAlnChunkVec::operator[](), CAlnVec::RetrieveSegmentSequences(), SetAnchor(), x_GetChunks(), x_GetRawSegType(), x_GetRawSegTypes(), x_GetRawStart(), x_GetSeqLeftSeg(), x_GetSeqRightSeg(), x_SetRawSegType(), and x_SetRawSegTypes().
|
protected |
Definition at line 371 of file alnmap.hpp.
Referenced by CAlnVec::CalculateScore(), CreateAlignFromRange(), CAlnVec::CreateConsensus(), GetAlnChunks(), GetNumSegs(), GetRawSeg(), GetResidueIndexMap(), GetSeqChunks(), CAlnVec::GetWholeAlnSeqString(), CAlnMap::CAlnChunkVec::operator[](), SetAnchor(), x_FindClosestSeqPos(), x_GetRawSegTypes(), x_GetSeqLeftSeg(), x_GetSeqRightSeg(), x_SetRawSegType(), and x_SetRawSegTypes().
|
protected |
Definition at line 383 of file alnmap.hpp.
Referenced by SetAnchor(), UnsetAnchor(), and x_GetSegFromRawSeg().
|
mutableprotected |
Definition at line 384 of file alnmap.hpp.
Referenced by SetAnchor(), UnsetAnchor(), x_GetRawSegTypes(), and ~CAlnMap().
|
protected |
Definition at line 376 of file alnmap.hpp.
|
mutableprotected |
Definition at line 380 of file alnmap.hpp.
Referenced by x_GetSeqLeftSeg(), and x_Init().
|
mutableprotected |
Definition at line 381 of file alnmap.hpp.
Referenced by x_GetSeqRightSeg(), and x_Init().
|
protected |
Definition at line 373 of file alnmap.hpp.
Referenced by CAlnVec::CalculateScore(), CAlnVec::CreateConsensus(), GetAlnPosFromSeqPos(), GetRawSeg(), GetResidueIndexMap(), GetSeqAlnStart(), GetSeqAlnStop(), GetSeqPosFromSeqPos(), GetSeqStart(), GetSeqStop(), GetStart(), CAlnVec::GetWholeAlnSeqString(), CAlnMap::CAlnChunkVec::operator[](), CAlnVec::RetrieveSegmentSequences(), SetAnchor(), x_GetRawStart(), x_GetSeqLeftSeg(), x_GetSeqRightSeg(), x_SetRawSegType(), and x_SetRawSegTypes().
|
protected |
Definition at line 375 of file alnmap.hpp.
Referenced by CreateAlignFromRange(), CAlnVec::CreateConsensus(), and IsPositiveStrand().
|
protected |
Definition at line 377 of file alnmap.hpp.
Referenced by CreateAlignFromRange(), and GetWidth().