NCBI C++ ToolKit
|
Search Toolkit Book for CProSplign::CImplementation
Public Member Functions | |
CImplementation (CProSplignScoring scoring) | |
virtual | ~CImplementation () |
virtual CImplementation * | clone ()=0 |
int | FindGlobalAlignment_stage1 (CScope &scope, const CSeq_id &protein, const CSeq_loc &genomic) |
CRef< CSeq_align > | FindGlobalAlignment_stage2 () |
CRef< CSeq_align > | FindGlobalAlignment (CScope &scope, const CSeq_id &protein, const CSeq_loc &genomic_orig) |
bool | HasStartOnNuc (const CSpliced_seg &sps) |
bool | HasStopOnNuc (const CSpliced_seg &sps) |
void | SeekStartStop (CSeq_align &seq_align) |
const CProSplignScaledScoring & | GetScaleScoring () const |
const CSubstMatrix & | GetSubstMatrix () const |
virtual const vector< pair< int, int > > & | GetExons () const |
virtual vector< pair< int, int > > & | SetExons () |
virtual void | GetFlanks (bool &, bool &) const |
virtual void | SetFlanks (bool, bool) |
void | Interrupt (void) |
void | SetInterruptCallback (CProSplign::TInterruptFnPtr prg_callback, void *data) |
void | SetScope (CScope &scope) |
void | SetTranslationTable (int gcode) |
Static Public Member Functions | |
static CImplementation * | create (CProSplignScoring scoring, bool intronless, bool one_stage, bool just_second_stage, bool old) |
Protected Attributes | |
CProSplignScaledScoring | m_scoring |
CSubstMatrix | m_matrix |
CScope * | m_scope |
const CSeq_id * | m_protein |
CRef< CSeq_loc > | m_genomic |
shared_ptr< CPSeq > | m_protseq |
shared_ptr< CNSeq > | m_cnseq |
CProSplignInterrupt | m_Interrupt |
Private Member Functions | |
virtual int | stage1 ()=0 |
virtual void | stage2 (CAli &ali)=0 |
Definition at line 756 of file prosplign.cpp.
|
inline |
Definition at line 759 of file prosplign.cpp.
|
inlinevirtual |
Definition at line 761 of file prosplign.cpp.
|
pure virtual |
Implemented in CIntronlessNew, CIntronlessOld, CTwoStageNew, CTwoStageOld, and COneStage.
|
static |
Definition at line 1011 of file prosplign.cpp.
|
inline |
Definition at line 768 of file prosplign.cpp.
References FindGlobalAlignment_stage1(), and FindGlobalAlignment_stage2().
int CProSplign::CImplementation::FindGlobalAlignment_stage1 | ( | CScope & | scope, |
const CSeq_id & | protein, | ||
const CSeq_loc & | genomic | ||
) |
Definition at line 1190 of file prosplign.cpp.
References CSeq_loc::Assign(), CProSplignOptions_Base::GetAltStarts(), CScope::GetBioseqHandle(), COrg_ref::GetGcode(), GetOrg_ref(), m_cnseq, m_genomic, m_matrix, m_protein, m_protseq, m_scope, m_scoring, CRef< C, Locker >::Reset(), CSubstMatrix::SetTranslationTable(), and stage1().
Referenced by FindGlobalAlignment().
CRef< CSeq_align > CProSplign::CImplementation::FindGlobalAlignment_stage2 | ( | ) |
Definition at line 1210 of file prosplign.cpp.
References CSeq_align_Base::eType_disc, CSeq_align_Base::GetSegs(), CSeq_align_Base::C_Segs::GetSpliced(), CAliToSeq_align::MakeSeq_align(), and CSeq_align_Base::SetType().
Referenced by FindGlobalAlignment().
|
inline |
Definition at line 780 of file prosplign.cpp.
References m_scoring.
|
inline |
Definition at line 785 of file prosplign.cpp.
References m_matrix.
bool CProSplign::CImplementation::HasStartOnNuc | ( | const CSpliced_seg & | sps | ) |
Definition at line 1265 of file prosplign.cpp.
References CSeq_id::Assign(), buf, CBioseq_Handle::eCoding_Iupac, CSpliced_exon_chunk_Base::GetDiag(), CSpliced_seg_Base::GetExons(), CProt_pos::GetFrame(), CSpliced_exon_Base::GetGenomic_end(), CSpliced_seg_Base::GetGenomic_id(), CSpliced_exon_Base::GetGenomic_start(), CSpliced_seg_Base::GetGenomic_strand(), CSpliced_exon_chunk_Base::GetMatch(), CSpliced_exon_chunk_Base::GetMismatch(), CSpliced_exon_Base::GetParts(), CSpliced_exon_Base::GetProduct_start(), CProduct_pos_Base::GetProtpos(), CSeqVector_CI::GetSeqData(), CSpliced_exon_chunk_Base::IsDiag(), CSpliced_exon_chunk_Base::IsGenomic_ins(), CSpliced_exon_chunk_Base::IsMatch(), CSpliced_exon_chunk_Base::IsMismatch(), CSpliced_exon_chunk_Base::IsProduct_ins(), and len.
bool CProSplign::CImplementation::HasStopOnNuc | ( | const CSpliced_seg & | sps | ) |
Definition at line 1306 of file prosplign.cpp.
References CSeq_id::Assign(), buf, CBioseq_Handle::eCoding_Iupac, eNa_strand_minus, eNa_strand_plus, CSpliced_seg_Base::GetExons(), CProt_pos::GetFrame(), CSpliced_exon_Base::GetGenomic_end(), CSpliced_seg_Base::GetGenomic_id(), CSpliced_exon_Base::GetGenomic_start(), CSpliced_seg_Base::GetGenomic_strand(), GetLength(), CSpliced_exon_Base::GetProduct_end(), CProduct_pos_Base::GetProtpos(), and CSeqVector_CI::GetSeqData().
|
inline |
Definition at line 807 of file prosplign.cpp.
References CProSplignInterrupt::Interrupt(), and m_Interrupt.
void CProSplign::CImplementation::SeekStartStop | ( | CSeq_align & | seq_align | ) |
Definition at line 1344 of file prosplign.cpp.
References _ASSERT, CSeq_id::Assign(), CProt_pos_Base::GetAmin(), CSpliced_seg_Base::GetModifiers(), CSpliced_seg_Base::GetProduct_id(), CSpliced_exon_Base::GetProduct_start(), CProduct_pos_Base::GetProtpos(), CPSeq::HasStart(), CSpliced_seg_Base::IsSetModifiers(), len, CRef< C, Locker >::Reset(), CSpliced_seg_Base::ResetModifiers(), CSpliced_seg_Base::SetExons(), CSpliced_seg_Base::SetModifiers(), CSpliced_exon_Base::SetParts(), and CSeq_align_Base::SetSegs().
|
inline |
Definition at line 812 of file prosplign.cpp.
References data, m_Interrupt, and CProSplignInterrupt::SetInterruptCallback().
|
inline |
Definition at line 817 of file prosplign.cpp.
References m_scope.
|
inline |
Definition at line 820 of file prosplign.cpp.
References CProSplignOptions_Base::GetAltStarts(), m_matrix, m_scoring, and CSubstMatrix::SetTranslationTable().
|
privatepure virtual |
Implemented in CIntronlessNew, CIntronlessOld, CTwoStageNew, CTwoStageOld, and COneStage.
Referenced by FindGlobalAlignment_stage1().
|
privatepure virtual |
Implemented in CIntronless, CTwoStageNew, CTwoStageOld, and COneStage.
|
protected |
Definition at line 835 of file prosplign.cpp.
Referenced by FindGlobalAlignment_stage1(), COneStage::stage1(), CTwoStageOld::stage1(), CTwoStageNew::stage1(), CIntronlessOld::stage1(), CIntronlessNew::stage1(), CTwoStageOld::stage2(), and CTwoStageNew::stage2().
Definition at line 833 of file prosplign.cpp.
Referenced by FindGlobalAlignment_stage1().
|
protected |
Definition at line 837 of file prosplign.cpp.
Referenced by Interrupt(), SetInterruptCallback(), COneStage::stage1(), CTwoStageOld::stage1(), CTwoStageNew::stage1(), CIntronlessOld::stage1(), CIntronlessNew::stage1(), CTwoStageOld::stage2(), and CTwoStageNew::stage2().
|
protected |
Definition at line 829 of file prosplign.cpp.
Referenced by FindGlobalAlignment_stage1(), GetSubstMatrix(), SetTranslationTable(), COneStage::stage1(), CTwoStageOld::stage1(), CTwoStageNew::stage1(), CIntronlessOld::stage1(), CIntronlessNew::stage1(), CTwoStageOld::stage2(), and CTwoStageNew::stage2().
Definition at line 832 of file prosplign.cpp.
Referenced by FindGlobalAlignment_stage1().
|
protected |
Definition at line 834 of file prosplign.cpp.
Referenced by FindGlobalAlignment_stage1(), COneStage::stage1(), CTwoStageOld::stage1(), CTwoStageNew::stage1(), CIntronlessOld::stage1(), CIntronlessNew::stage1(), CTwoStageOld::stage2(), and CTwoStageNew::stage2().
|
protected |
Definition at line 831 of file prosplign.cpp.
Referenced by FindGlobalAlignment_stage1(), and SetScope().
|
protected |
Definition at line 828 of file prosplign.cpp.
Referenced by FindGlobalAlignment_stage1(), GetScaleScoring(), SetTranslationTable(), COneStage::stage1(), CTwoStageOld::stage1(), CTwoStageNew::stage1(), CIntronlessOld::stage1(), CIntronlessNew::stage1(), CTwoStageOld::stage2(), and CTwoStageNew::stage2().