#include <Seq_align.hpp>
Inheritance diagram for CSeq_align:


Definition at line 54 of file Seq_align.hpp.
Public Types | ||||
| enum | EScoreType { eScore_Score, eScore_BitScore, eScore_EValue, eScore_IdentityCount, eScore_MismatchCount, eScore_PercentIdentity, eScore_PercentCoverage, eScore_SumEValue, eScore_CompAdjMethod } | |||
| enum controlling known named scores More... | ||||
Public Member Functions | ||||
| CSeq_align (void) | ||||
| constructor | ||||
| ~CSeq_align (void) | ||||
| destructor | ||||
| TDim | CheckNumRows (void) const | |||
| Validatiors. | ||||
| void | Validate (bool full_test=false) const | |||
| CRange< TSeqPos > | GetSeqRange (TDim row) const | |||
| GetSeqRange NB: On a Spliced-seg, in case the product-type is protein, these only return the amin part of Prot-pos. | ||||
| TSeqPos | GetSeqStart (TDim row) const | |||
| TSeqPos | GetSeqStop (TDim row) const | |||
| TSeqPos | GetTotalGapCount () const | |||
Retrieves the total number of gaps in an alignment
| ||||
| TSeqPos | GetNumGapOpenings () const | |||
Retrieves the number of gap openings in an alignment (ignoring how many gaps are in the gapped region)
| ||||
| ENa_strand | GetSeqStrand (TDim row) const | |||
| Get strand (the first one if segments have different strands). | ||||
| const CSeq_id & | GetSeq_id (TDim row) const | |||
| Get seq-id (the first one if segments have different ids). | ||||
| bool | GetNamedScore (const string &id, int &score) const | |||
| Get score. | ||||
| bool | GetNamedScore (const string &id, double &score) const | |||
| --------------------------------------------------------------------------- PRE : name of score to return POST: whether or not we found that score; score converted to double | ||||
| bool | GetNamedScore (EScoreType type, int &score) const | |||
| bool | GetNamedScore (EScoreType type, double &score) const | |||
| void | SetNamedScore (const string &id, int score) | |||
| void | SetNamedScore (const string &id, double score) | |||
| void | SetNamedScore (EScoreType type, int score) | |||
| void | SetNamedScore (EScoreType type, double score) | |||
| void | Reverse (void) | |||
| Reverse the segments' orientation NOTE: currently *only* works for dense-seg. | ||||
| void | SwapRows (TDim row1, TDim row2) | |||
| Swap the position of two rows in the alignment NOTE: currently *only* works for dense-seg & disc. | ||||
| CRef< CSeq_align > | CreateDensegFromStdseg (SSeqIdChooser *SeqIdChooser=0) const | |||
| ---------------------------------------------------------------------------- PRE : the Seq-align has StdSeg segs POST: Seq_align of type Dense-seg is created with m_Widths if necessary | ||||
| CRef< CSeq_align > | CreateDensegFromDisc (SSeqIdChooser *SeqIdChooser=0) const | |||
| CRef< CSeq_align > | CreateTranslatedDensegFromNADenseg (void) const | |||
| Create a Dense-seg with widths from Dense-seg of nucleotides Used by AlnMgr to handle translated nucl2nucl alignments IMPORTANT NOTE: Do *NOT* use for alignments containing proteins; the code will not check for this. | ||||
| void | OffsetRow (TDim row, TSignedSeqPos offset) | |||
| Offset row's coords. | ||||
| NCBI_DEPRECATED void | RemapToLoc (TDim row, const CSeq_loc &dst_loc, bool ignore_strand=false) | |||
Protected Member Functions | ||||
| CConstRef< CScore > | x_GetNamedScore (const string &name) const | |||
| retrieve a named score object | ||||
| CRef< CScore > | x_SetNamedScore (const string &name) | |||
Private Types | ||||
| typedef CSeq_align_Base | Tparent | |||
Private Member Functions | ||||
| CSeq_align (const CSeq_align &value) | ||||
| Prohibit copy constructor and assignment operator. | ||||
| CSeq_align & | operator= (const CSeq_align &value) | |||
Classes | ||||
| struct | SSeqIdChooser | |||
| NOTE: Here we assume that the same rows on different segments contain the same sequence. More... | ||||
|
|
Reimplemented from CSeq_align_Base. Definition at line 56 of file Seq_align.hpp. |
|
|
enum controlling known named scores
Definition at line 59 of file Seq_align.hpp. |
|
|
constructor
Definition at line 213 of file Seq_align.hpp. |
|
|
destructor
Definition at line 65 of file Seq_align.cpp. |
|
|
Prohibit copy constructor and assignment operator.
|
|
|
Validatiors.
Definition at line 70 of file Seq_align.cpp. References CSeq_align_Base::GetSegs(), ITERATE, and NCBI_THROW. Referenced by Validate(). |
|
|
Order the discontinuous densegs First pass: determine dim & numseg Numseg Dim Strands? Multiply the strands by the number of segments. Second pass: validate and set ids and starts Ids Starts Perform full test (including segment starts consistency check) Definition at line 846 of file Seq_align.cpp. References CSeq_align_Base::eType_not_set, CSeq_align_Base::GetScore(), CSeq_align_Base::GetSegs(), CDense_seg::GetSeqStart(), CDense_seg_Base::GetStrands(), CSeq_align_Base::IsSetScore(), CDense_seg_Base::IsSetStrands(), ITERATE, NCBI_THROW, CDense_seg_Base::SetDim(), CDense_seg_Base::SetNumseg(), and size. |
|
|
---------------------------------------------------------------------------- PRE : the Seq-align has StdSeg segs POST: Seq_align of type Dense-seg is created with m_Widths if necessary
Definition at line 553 of file Seq_align.cpp. References eNa_strand_unknown, CSeq_align_Base::eType_not_set, CStd_seg_Base::GetLoc(), CSeq_align_Base::GetScore(), CSeq_align_Base::GetSegs(), CSeq_align_Base::IsSetScore(), ITERATE, NCBI_THROW, CDense_seg_Base::SetLens(), CDense_seg_Base::SetStarts(), CDense_seg_Base::SetStrands(), and CDense_seg::SetWidths(). Referenced by s_SeqAlignSetToXMLHsps(). |
|
|
Create a Dense-seg with widths from Dense-seg of nucleotides Used by AlnMgr to handle translated nucl2nucl alignments IMPORTANT NOTE: Do *NOT* use for alignments containing proteins; the code will not check for this.
Definition at line 784 of file Seq_align.cpp. References CSeq_align_Base::eType_not_set, CDense_seg_Base::GetNumseg(), CSeq_align_Base::GetSegs(), NStr::IntToString(), NCBI_THROW, and CDense_seg_Base::SetLens(). |
|
||||||||||||
|
Definition at line 443 of file Seq_align.cpp. References GetNamedScore(), and sc_ScoreNames. |
|
||||||||||||
|
Definition at line 438 of file Seq_align.cpp. References GetNamedScore(), and sc_ScoreNames. |
|
||||||||||||
|
--------------------------------------------------------------------------- PRE : name of score to return POST: whether or not we found that score; score converted to double
Definition at line 423 of file Seq_align.cpp. References x_GetNamedScore(). |
|
||||||||||||
|
Get score.
Definition at line 406 of file Seq_align.cpp. References x_GetNamedScore(). Referenced by BOOST_AUTO_TEST_CASE(), and GetNamedScore(). |
|
|
Retrieves the number of gap openings in an alignment (ignoring how many gaps are in the gapped region)
Definition at line 1209 of file Seq_align.cpp. References s_GetGapCount(). |
|
|
Get seq-id (the first one if segments have different ids). Throw exception if row is invalid. Definition at line 265 of file Seq_align.cpp. References CSeq_align_Base::GetSegs(), ITERATE, and size. Referenced by s_SeqAlignSetToXMLHsps(). |
|
|
GetSeqRange NB: On a Spliced-seg, in case the product-type is protein, these only return the amin part of Prot-pos. The frame is ignored. Definition at line 126 of file Seq_align.cpp. References CSeq_id::Assign(), CSeq_align_Base::CanGetDim(), COpenRange< Position >::CombineWith(), CSeq_id::Compare(), CSeq_id::e_YES, CSeq_align_Base::GetDim(), CSeq_align_Base::GetSegs(), ITERATE, and NCBI_THROW. Referenced by GetSeqStart(), and GetSeqStop(). |
|
|
Definition at line 208 of file Seq_align.cpp. References COpenRange< Position >::GetFrom(), CSeq_align_Base::GetSegs(), GetSeqRange(), and NCBI_THROW. |
|
|
Definition at line 226 of file Seq_align.cpp. References CSeq_align_Base::GetSegs(), GetSeqRange(), COpenRange< Position >::GetTo(), and NCBI_THROW. |
|
|
Get strand (the first one if segments have different strands).
Definition at line 244 of file Seq_align.cpp. References CSeq_align_Base::GetSegs(), and NCBI_THROW. Referenced by s_GetSeqStrand(). |
|
|
Retrieves the total number of gaps in an alignment
Definition at line 1203 of file Seq_align.cpp. References s_GetGapCount(). |
|
||||||||||||
|
Offset row's coords.
Definition at line 1014 of file Seq_align.cpp. References NCBI_THROW, NON_CONST_ITERATE, and CSeq_align_Base::SetSegs(). |
|
|
|
|
||||||||||||||||
|
Definition at line 1047 of file Seq_align.cpp. References CSeq_loc_Base::e_Int, CSeq_loc_Base::e_Whole, NCBI_THROW, and CSeq_loc_Base::Which(). |
|
|
Reverse the segments' orientation NOTE: currently *only* works for dense-seg.
Definition at line 510 of file Seq_align.cpp. References CSeq_align_Base::GetSegs(), NCBI_THROW, and CSeq_align_Base::SetSegs(). |
|
||||||||||||
|
Definition at line 455 of file Seq_align.cpp. References sc_ScoreNames, and x_SetNamedScore(). |
|
||||||||||||
|
Definition at line 449 of file Seq_align.cpp. References sc_ScoreNames, and x_SetNamedScore(). |
|
||||||||||||
|
Definition at line 467 of file Seq_align.cpp. References x_SetNamedScore(). |
|
||||||||||||
|
Definition at line 461 of file Seq_align.cpp. References x_SetNamedScore(). |
|
||||||||||||
|
Swap the position of two rows in the alignment NOTE: currently *only* works for dense-seg & disc.
Definition at line 526 of file Seq_align.cpp. References CSeq_align_Base::GetSegs(), NCBI_THROW, NON_CONST_ITERATE, and CSeq_align_Base::SetSegs(). |
|
|
Definition at line 474 of file Seq_align.cpp. References CheckNumRows(), CSeq_align_Base::GetSegs(), ITERATE, and NCBI_THROW. Referenced by CAlnContainer::insert(), CSeqAlignContainer::insert(), CPairwiseAlnApp::InsertAln(), CAlnTestApp::InsertAln(), CAlnBuildApp::InsertAln(), and CAlnIdMap< _TAlnVec, TAlnSeqIdExtract >::push_back(). |
|
|
retrieve a named score object
Definition at line 363 of file Seq_align.cpp. References CSeq_align_Base::GetScore(), CSeq_align_Base::IsSetScore(), and ITERATE. Referenced by GetNamedScore(). |
|
|
Definition at line 380 of file Seq_align.cpp. References CSeq_align_Base::IsSetScore(), NON_CONST_ITERATE, and CSeq_align_Base::SetScore(). Referenced by SetNamedScore(). |
1.4.6
Modified on Wed Dec 09 08:19:49 2009 by modify_doxy.py rev. 173732