NCBI C++ ToolKit
Classes | Typedefs | Functions
align_compare.cpp File Reference
#include <ncbi_pch.hpp>
#include <objects/general/User_object.hpp>
#include <objects/seq/Seq_annot.hpp>
#include <objects/seqloc/Seq_loc.hpp>
#include <objects/seqalign/Seq_align.hpp>
#include <objects/seqalign/Seq_align_set.hpp>
#include <objects/seqalign/Std_seg.hpp>
#include <objects/seqalign/Dense_seg.hpp>
#include <objects/seqalign/Spliced_seg.hpp>
#include <objects/seqalign/Spliced_exon.hpp>
#include <objects/seqalign/Spliced_exon_chunk.hpp>
#include <objects/seqalign/Prot_pos.hpp>
#include <objects/seqalign/Product_pos.hpp>
#include <objects/seqalign/Score.hpp>
#include <objects/seq/seq_id_handle.hpp>
#include <objects/general/Object_id.hpp>
#include <objtools/alnmgr/pairwise_aln.hpp>
#include <objtools/alnmgr/aln_converters.hpp>
#include <algo/align/util/align_compare.hpp>
#include <algo/align/util/score_lookup.hpp>
#include <algo/align/util/algo_align_util_exceptions.hpp>
#include <corelib/rwstream.hpp>
#include <util/checksum.hpp>
#include <cmath>
#include <ctype.h>
+ Include dependency graph for align_compare.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

struct  SComparison
 
struct  SAlignment_PtrLess
 
struct  SComp_Less
 

Typedefs

typedef set< CAlignCompare::SAlignment *, SAlignment_PtrLessTAlignPtrSet
 
typedef pair< CAlignCompare::SAlignment *, CAlignCompare::SAlignment * > TPtrPair
 
typedef pair< TPtrPair, SComparisonTComp
 

Functions

 USING_SCOPE (objects)
 
bool s_IsOverlapping (CAlignCompare::SAlignment const *lhs, CAlignCompare::SAlignment const *rhs, CAlignCompare::ERowComparison row)
 
static void s_UpdateSpans (const TSeqRange &query_range, const TSeqRange &subject_range, CAlignCompare::SAlignment &align_info, CAlignCompare::ERowComparison row)
 
static void s_GetAlignmentSpans_Interval (const CSeq_align &align, CAlignCompare::SAlignment &align_info, CAlignCompare::ERowComparison row)
 
static void s_GetAlignmentMismatches (const CSeq_align &align, CAlignCompare::SAlignment &align_info, CAlignCompare::ERowComparison row)
 
static void s_GetAlignmentSpans_Exon (const CSeq_align &align, CAlignCompare::SAlignment &align_info, CAlignCompare::ERowComparison row)
 
static void s_GetAlignmentSpans_Intron (const CSeq_align &align, CAlignCompare::SAlignment &align_info, CAlignCompare::ERowComparison row)
 
static void s_GetAlignmentSpans_Span (const CSeq_align &align, CAlignCompare::SAlignment &align_info, CAlignCompare::ERowComparison row)
 
template<typename T >
void s_PopulateScores (const CSeq_align &align, const vector< string > &score_list, vector< T > &scores, bool required=true)
 
static void s_PopulateScoreSet (const CSeq_align &align, const set< string > &score_set, bool score_set_as_blacklist, CAlignCompare::TIntegerScoreSet &integer_scores, CAlignCompare::TRealScoreSet &real_scores)
 
static bool s_EquivalentScores (const CAlignCompare::TRealScoreSet &scores1, const CAlignCompare::TRealScoreSet &scores2, double real_score_tolerance)
 
static void s_PopulateExtSet (const CSeq_align &align, const set< string > &ext_set, bool ext_set_as_blacklist, CAlignCompare::TExtSet &exts)
 
string s_ConvertToHexString (unsigned char *ptr, unsigned int length)
 
static bool s_EquivalentExts (const CAlignCompare::TExtSet &exts1, const CAlignCompare::TExtSet &exts2)
 

Typedef Documentation

◆ TAlignPtrSet

Definition at line 659 of file align_compare.cpp.

◆ TComp

typedef pair<TPtrPair, SComparison> TComp

Definition at line 661 of file align_compare.cpp.

◆ TPtrPair

Definition at line 660 of file align_compare.cpp.

Function Documentation

◆ s_ConvertToHexString()

string s_ConvertToHexString ( unsigned char *  ptr,
unsigned int  length 
)

Definition at line 476 of file align_compare.cpp.

References i, and NStr::NumericToString().

Referenced by s_EquivalentExts().

◆ s_EquivalentExts()

static bool s_EquivalentExts ( const CAlignCompare::TExtSet exts1,
const CAlignCompare::TExtSet exts2 
)
static

◆ s_EquivalentScores()

static bool s_EquivalentScores ( const CAlignCompare::TRealScoreSet scores1,
const CAlignCompare::TRealScoreSet scores2,
double  real_score_tolerance 
)
static

◆ s_GetAlignmentMismatches()

static void s_GetAlignmentMismatches ( const CSeq_align align,
CAlignCompare::SAlignment align_info,
CAlignCompare::ERowComparison  row 
)
static

◆ s_GetAlignmentSpans_Exon()

static void s_GetAlignmentSpans_Exon ( const CSeq_align align,
CAlignCompare::SAlignment align_info,
CAlignCompare::ERowComparison  row 
)
static

◆ s_GetAlignmentSpans_Interval()

static void s_GetAlignmentSpans_Interval ( const CSeq_align align,
CAlignCompare::SAlignment align_info,
CAlignCompare::ERowComparison  row 
)
static

◆ s_GetAlignmentSpans_Intron()

static void s_GetAlignmentSpans_Intron ( const CSeq_align align,
CAlignCompare::SAlignment align_info,
CAlignCompare::ERowComparison  row 
)
static

◆ s_GetAlignmentSpans_Span()

static void s_GetAlignmentSpans_Span ( const CSeq_align align,
CAlignCompare::SAlignment align_info,
CAlignCompare::ERowComparison  row 
)
static

Definition at line 361 of file align_compare.cpp.

References CSeq_align::GetSeqRange(), row, and s_UpdateSpans().

Referenced by CAlignCompare::SAlignment::SAlignment().

◆ s_IsOverlapping()

◆ s_PopulateExtSet()

static void s_PopulateExtSet ( const CSeq_align align,
const set< string > &  ext_set,
bool  ext_set_as_blacklist,
CAlignCompare::TExtSet exts 
)
static

◆ s_PopulateScores()

template<typename T >
void s_PopulateScores ( const CSeq_align align,
const vector< string > &  score_list,
vector< T > &  scores,
bool  required = true 
)

◆ s_PopulateScoreSet()

static void s_PopulateScoreSet ( const CSeq_align align,
const set< string > &  score_set,
bool  score_set_as_blacklist,
CAlignCompare::TIntegerScoreSet integer_scores,
CAlignCompare::TRealScoreSet real_scores 
)
static

◆ s_UpdateSpans()

static void s_UpdateSpans ( const TSeqRange query_range,
const TSeqRange subject_range,
CAlignCompare::SAlignment align_info,
CAlignCompare::ERowComparison  row 
)
static

◆ USING_SCOPE()

USING_SCOPE ( objects  )
Modified on Fri Sep 20 14:57:50 2024 by modify_doxy.py rev. 669887