Utility and support routines for the GUI framework. More...
enum CAlignmentSmear::EAlignSmearStrand { CAlignmentSmear::eSmearStrand_Both , CAlignmentSmear::eSmearStrand_Pos , CAlignmentSmear::eSmearStrand_Neg } enum CAnnotMetaData::ELinksStatus { CAnnotMetaData::ELinksStatus_Undef , CAnnotMetaData::ELinksStatus_Present , CAnnotMetaData::ELinksStatus_Absent } enum CNAUtils::EEntrezDB { CNAUtils::EEDB_Undef , CNAUtils::EEDB_Nucleotide , CNAUtils::EEDB_Protein , CNAUtils::EEDB_All } eutils databases that can be used More...Utility and support routines for the GUI framework.
These routines make use of the object manager and associated tools.
◆ __GUI_SEQ_UTILS_DEFINED__ #define __GUI_SEQ_UTILS_DEFINED__Definition at line 119 of file utils.hpp.
◆ EXT_POINT__NONASN_TRACK_DATA_FACTORY #define EXT_POINT__NONASN_TRACK_DATA_FACTORY "nonasn_track_data_factory"Definition at line 51 of file nonasn_track_data.hpp.
◆ runlen_iterator ◆ score_type ◆ TAccs ◆ TAlnAnchorPair ◆ TAlnList ◆ TAnnotFlags ◆ TAnnotNameType ◆ TAnnots ◆ TAttrTable ◆ TBlastTrackShowFlags ◆ TDataBlob [1/3] ◆ TDataBlob [2/3] ◆ TDataBlob [3/3] ◆ TEntrezIds [1/2] ◆ TEntrezIds [2/2] ◆ TEntrezIdtoGiCache ◆ TEntrezIdtoMetaDataCache ◆ TFeatLinkingMode ◆ TFeatureFlags ◆ TGapMap ◆ TGenomicInterval ◆ TGis [1/2]get all GIs for a given NA accession
Definition at line 176 of file na_utils.hpp.
◆ TGis [2/2] ◆ TIds ◆ TLinkedFeats ◆ TLinks ◆ TLocVec ◆ TMappedInt ◆ TMappingInfo ◆ TModelRange ◆ TMUnitRanges ◆ TNAA ◆ TNAAs ◆ TNAAtoUidCache ◆ TNAMetaDataSet ◆ TProdInterval ◆ TRanges ◆ TSegMap ◆ TSeqIdHandles ◆ TTrackInfoList [1/2] ◆ TTrackInfoList [2/2] ◆ anonymous enumflags controlling feature retrieval
Enumerator fFeature_LinkFeatures fFeature_DefaultDefinition at line 145 of file utils.hpp.
◆ anonymous enumflags controlling use of annotation selectors
Enumerator fAnnot_UnsetNamed fAnnot_UnsetDepthDefinition at line 152 of file utils.hpp.
◆ EAlignSmearStrand Enumerator eSmearStrand_Both eSmearStrand_Pos eSmearStrand_NegDefinition at line 61 of file alignment_smear.hpp.
◆ EAlignSpacing ◆ EAnnotationNameTypeflags for classifying annotation names.
Enumerator eAnnot_Unnamedunnamed annotation
eAnnot_Namedall named annotations
eAnnot_Allall annotations
eAnnot_Otherany given named annots
Definition at line 131 of file utils.hpp.
◆ EBlastTrackShowFlagsflags controlling BLAST track default visibility
Enumerator fBlastTrackShowFlag_Original fBlastTrackShowFlag_CleanedDefinition at line 484 of file utils.hpp.
◆ EEntrezDBeutils databases that can be used
Enumerator EEDB_Undef EEDB_Nucleotide EEDB_Protein EEDB_Alltry both nucleotide and protein databases, merge results
Definition at line 126 of file na_utils.hpp.
◆ ELinksStatus Enumerator ELinksStatus_Undef ELinksStatus_Present ELinksStatus_AbsentDefinition at line 88 of file annot_info.hpp.
◆ EMetaDataSourcesource of obtained NA metadata were internal caches hit, partially hit or totally missed during some cached operations
Enumerator EMetaDataSource_Undef EMetaDataSource_Cache EMetaDataSource_Mixed EMetaDataSource_Eutils EMetaDataSource_EmptyRequest EMetaDataSource_EmptyAfterFilteringRequestDefinition at line 134 of file na_utils.hpp.
◆ ETail ◆ ETearLineLimits ◆ EUidsSource Enumerator EUidsSource_Undef EUidsSource_Cache EUidsSource_Mixed EUidsSource_Eutils EUidsSource_EmptyRequestDefinition at line 143 of file na_utils.hpp.
◆ AddAlignment() [1/2]Add this one alignment to my smear.
Definition at line 338 of file alignment_smear.cpp.
References CDensityMap< CntType >::AddRange(), CSparseAln::CreateSegmentIterator(), IAlnSegmentIterator::eSkipGaps, CSparseAln::GetAlnRange(), IAlnSegment::GetAlnRange(), CSparseAln::GetAnchor(), CRange_Base::GetFrom(), CSparseAln::GetNumRows(), CRange_Base::GetTo(), CAlignmentSmear::m_AccumGap, CAlignmentSmear::m_AccumSeg, and row.
◆ AddAlignment() [2/2] void CAlignmentSmear::AddAlignment ( const objects::CAlnMap & align )Add this one alignment to my smear.
◆ AddAlignments() [1/2] ◆ AddAlignments() [2/2] ◆ AddAnnot() ◆ AddChild() [1/2] ◆ AddChild() [2/2] void CLinkedFeature::AddChild ( const objects::CMappedFeat & feat ) inlineDefinition at line 96 of file utils.hpp.
◆ AddNonAsnData() ◆ AddTaskCompleted() virtual void ISeqTaskProgressCallback::AddTaskCompleted ( int delta ) pure virtual ◆ ApplyFading() void CAlignGlyph::ApplyFading ( ) const ◆ CAlignGlyph()Definition at line 78 of file alignment_glyph.cpp.
References eNa_strand_minus, eNa_strand_plus, IScoringAlignment::GetAnchor(), IScoringAlignment::GetBaseWidth(), IAlnGraphicDataSource::GetSeqId(), IAlnGraphicDataSource::GetSeqStart(), IAlnGraphicDataSource::GetSeqStop(), IAlnGraphicDataSource::IsNegativeStrand(), CAlignGlyph::m_AlnMgr, CAlignGlyph::m_Location, CRef< C, Locker >::Reset(), and CAlignGlyph::x_IsPWAlign().
◆ CAlignmentSmear() ◆ CanHavePlacements() bool CSeqUtils::CanHavePlacements ( const objects::CSeq_id & seqid ) staticcheck that a given seq-id can potentially have placements (to weed out cases like local ids)
Definition at line 1089 of file utils.cpp.
References CSeq_id_Base::e_Genbank, CSeq_id_Base::e_Gi, CSeq_id::eAcc_refseq_contig, CSeq_id::eAcc_refseq_genome, CSeq_id::eAcc_refseq_genomic, CSeq_id::eAcc_refseq_mrna, CSeq_id::eAcc_refseq_mrna_predicted, CSeq_id::eAcc_refseq_ncrna, CSeq_id::eAcc_refseq_ncrna_predicted, CSeq_id::eAcc_refseq_prot, CSeq_id::eAcc_refseq_prot_predicted, CSeq_id::eAcc_refseq_unreserved, CSeq_id::eAcc_refseq_wgs_intermed, CSeq_id::eAcc_refseq_wgs_nuc, CSeq_id::eAcc_refseq_wgs_prot, CSeq_id::eAcc_type_mask, and info.
Referenced by CSeqUtils::GetAccessionPlacementsMsec().
◆ CAnnotMetaData() CAnnotMetaData::CAnnotMetaData ( ) inlineDefinition at line 121 of file annot_info.hpp.
◆ CBioTreeAttrReader() [1/2] ◆ CBioTreeAttrReader() [2/2] ◆ CGencollIdMapperAdapter() ◆ CheckLineReader() void CBioTreeAttrReader::CheckLineReader ( ILineReader & ilr ) protected ◆ CheckMaxSearchSegments() bool CSeqUtils::CheckMaxSearchSegments ( int actual, int max, objects::SAnnotSelector::EMaxSearchSegmentsAction action ) static ◆ CLayoutFeatLabel() CLayoutFeatLabel::CLayoutFeatLabel ( const objects::CMappedFeat & feat )Definition at line 41 of file feat_label.cpp.
◆ CLayoutPWAlign() ◆ CLinkedFeature() CLinkedFeature::CLinkedFeature ( const objects::CMappedFeat & feat ) inlineDefinition at line 81 of file utils.hpp.
◆ CNAUtils() [1/3] ◆ CNAUtils() [2/3] CNAUtils::CNAUtils ( const objects::CSeq_id & id )Ctor with target sequence id.
Only the named annotations associated with the target sequence will be returned. However, the target sequence is ignored if the requested NAAs are explicitly listed.
◆ CNAUtils() [3/3] CNAUtils::CNAUtils ( const objects::CSeq_id & id, objects::CScope & scope ) ◆ CreateCoverageAnnotName() void CSeqUtils::CreateCoverageAnnotName ( const string & annot_name, string & coverage_annot ) inlinestatic ◆ CreateIdStr() ◆ CreateLinkRow() ◆ CreateSectionRow() ◆ CreateSeq_loc()Definition at line 556 of file utils.cpp.
References CPacked_seqint::AddInterval(), CPacked_seqint_Base::Get(), ITERATE, CPacked_seqint_Base::Set(), CSeq_loc::SetInt(), and CSeq_loc::SetPacked_int().
Referenced by CViewGraphic::GetSearchLoc(), CCrossAlignView::GetSelection(), CDotMatrixView::GetSelection(), CMultiAlignView::GetSelection(), CSeqTextView::GetSelection(), and CViewGraphic::GetSelection().
◆ CreateTableEnd() string CSeqUtils::CreateTableEnd ( ) static ◆ CreateTableRow() ◆ CreateTableStart() string CSeqUtils::CreateTableStart ( ) statichelp methods for creating HTML text
Definition at line 979 of file utils.cpp.
◆ CreateTrackData() ◆ CSwitchPointGlyph() CSwitchPointGlyph::CSwitchPointGlyph ( CRef< objects::CSeqMapSwitchPoint > map_points ) ◆ CTrackInfo() ◆ DataType2TrackType() ◆ DECLARE_CLASS_STATIC_FAST_MUTEX() [1/3] CNAUtils::DECLARE_CLASS_STATIC_FAST_MUTEX ( sm_NAAtoUidCacheMutex ) private ◆ DECLARE_CLASS_STATIC_FAST_MUTEX() [2/3] CNAUtils::DECLARE_CLASS_STATIC_FAST_MUTEX ( sm_UidtoGiCacheMutex ) private ◆ DECLARE_CLASS_STATIC_FAST_MUTEX() [3/3] CNAUtils::DECLARE_CLASS_STATIC_FAST_MUTEX ( sm_UidtoMetaDataCacheMutex ) private ◆ DoSearch() [1/2] virtual void INonAsnTrackData::DoSearch ( const objects::CSeq_id * seq_id, const string & sSearchTerm, list< CRef< CObject >> & results ) const pure virtual ◆ DoSearch() [2/2] ◆ DrawPWAlignElem()Definition at line 967 of file alignment_glyph.cpp.
References abs, CGlRect< T >::Bottom(), IRender::Color4f(), IRender::ColorC(), ctx, IRender::Disable(), CRenderingContext::DrawSelection(), CRenderingContext::DrawTriangle(), CAlignGlyph::e3_Prime, CAlignGlyph::e5_Prime, IAlnExplorer::eLeft, COpenRange< Position >::Empty(), IRender::Enable(), IAlnGraphicDataSource::ePartial_3prime, IAlnGraphicDataSource::ePartial_5prime, IAlnExplorer::eRight, Error(), CAlignmentConfig::eTails_Hide, CAlignmentConfig::eTails_ShowGlyph, CAlignmentConfig::eTails_ShowSequence, IAlnGraphicDataSource::GetAlnPosFromSeqPos(), IAlnGraphicDataSource::GetAlnRangeWithTails(), IScoringAlignment::GetAnchor(), CAlignGlyph::GetBarHeight(), IScoringAlignment::GetBaseWidth(), CRange_Base::GetFrom(), GetGl(), CRenderingContext::GetGlPane(), CException::GetMsg(), IScoringAlignment::GetNumRows(), IAlnGraphicDataSource::GetPartialFlags(), IAlnGraphicDataSource::GetQuery(), CRenderingContext::GetScale(), CGlPane::GetScaleY(), IAlnGraphicDataSource::GetSeqStart(), IAlnGraphicDataSource::GetSeqStop(), COpenRange< Position >::GetToOpen(), IAlnGraphicDataSource::GetUnalignedTails(), CRenderingContext::IntersectVisible(), IAlnGraphicDataSource::IsNegativeStrand(), CAlignGlyph::IsSimplified(), LOG_POST, CAlignGlyph::m_AlnMgr, CAlignGlyph::m_Config, CSeqGlyph::m_Context, CAlignGlyph::m_DisableTooltipsCaching, CAlignGlyph::m_FadeFactor, CAlignGlyph::m_Score, CAlignmentConfig::m_UnalignedSequence, CAlignmentConfig::m_UnalignedTailsMode, row, CRenderingContext::ScreenToSeq(), CRenderingContext::SeqToScreen(), swap(), Warning(), CRenderingContext::WillSeqLetterFit(), CAlignGlyph::x_DrawAlignRowSequence(), CAlignGlyph::x_DrawGaps(), CAlignGlyph::x_DrawInserts(), CAlignGlyph::x_DrawIntronsAndInternalUnalignedRegions(), CAlignGlyph::x_DrawNonConsensusSpliceSites(), CAlignGlyph::x_DrawNoScoreAlign(), CAlignGlyph::x_DrawSimplified(), CAlignGlyph::x_DrawStrandIndicators(), CAlignGlyph::x_DrawTailGlyphs(), CAlignGlyph::x_DrawTailSequences(), CAlignGlyph::x_DrawUnalignedRowSequence(), CAlignGlyph::x_GetOverrideColor(), CAlignGlyph::x_RenderAveragableScores(), CAlignGlyph::x_RenderNonAveragableScores(), CAlignGlyph::x_ShowScore(), and CAlignGlyph::x_ShowUnalignedTails().
Referenced by CAlignGlyph::x_DrawPWAlign().
◆ ELinkQuery() [1/4] ◆ ELinkQuery() [2/4] ◆ ELinkQuery() [3/4] ◆ ELinkQuery() [4/4] ◆ ESearchQuery() [1/3] ◆ ESearchQuery() [2/3] ◆ ESearchQuery() [3/3] ◆ FeatSubtypes2TrackSubtypes()Convert feature subtypes to track subtypes.
If the feature subtype list contains 'gene' feature, all gene, RNA, cdregion and exon feature subtypes will be combined into one track subtype: gene_model. If the feature type is variation_ref, the track type will be dbVar. If the feature tyep is variation, the track type will be dbSNP. For anything else, track type will be just treated as a feature track subtype.
Definition at line 206 of file na_utils.cpp.
References CSeqFeatData_Base::e_Gene, set< Key, Compare >::end(), set< Key, Compare >::erase(), set< Key, Compare >::find(), CSeqFeatData::GetFeatList(), CFeatList::GetStoragekey(), set< Key, Compare >::insert(), CDataTrackUtils::IsGeneModelFeature(), ITERATE, and kSnpSubtypeStr.
Referenced by CNAUtils::GetNATrackInfo().
◆ GetAccessionPlacements() ◆ GetAccessionPlacementsMsec()same, with a timeout in milliseconds
Definition at line 1135 of file utils.cpp.
References CSeqUtils::CanHavePlacements(), eGetId_ForceGi, eSerial_AsnText, flags, CSeq_id_Handle::GetGi(), GetId(), GetLinksURL(), GetSeqIdString(), NcbiMsToTimeout(), CObjectIStream::Open(), and s_GetAlnMapplingLocs().
Referenced by CSeqUtils::GetAccessionPlacements().
◆ GetAlignDbBatch() ◆ GetAlignDbIsQuery()get a is_source_assembly_query string from AlignDb annotation suffixed after a second '#'
get a is_source_assembly_query string fro AlignDb annotation suffixed after a second '#'
Definition at line 878 of file utils.cpp.
References CSeqUtils::IsAlignDb(), NStr::Split(), and string.
◆ GetAlignment() [1/2] const objects::CSeq_align & CAlignGlyph::GetAlignment ( void ) const inline ◆ GetAlignment() [2/2] const objects::CSeq_align & CSwitchPointGlyph::GetAlignment ( void ) const ◆ GetAlignMgr()Inline methods.
Definition at line 249 of file alignment_glyph.hpp.
References CAlignGlyph::m_AlnMgr.
Referenced by CSGAlignmentDS::CalculateAlignmentScore(), CMatePairGlyph::CMatePairGlyph(), CSGAlignmentDS::GetAlignType(), CSGAlignmentDS::InitAlignQualityScore(), CSGAlignmentDS::InitAlignScore(), CSGAlignmentDS::InitAlignScoreCache(), CAlignGlyph::LessBySeqPos(), CAlignmentTrack::x_AddAlignmentLayout(), CSGAlignmentJob::x_CreateFeatGlyph(), CAlignmentTrack::x_GetAlignGlyphType(), and CSGAlignmentJob::x_LoadAlignmentFeats().
◆ GetAlignType() string CDataTrackUtils::GetAlignType ( const objects::CSeq_align & align, objects::CScope & scope ) staticGet alignment type.
The alignment types include:
Definition at line 77 of file na_utils.cpp.
References CSeq_align::CheckNumRows(), CSeq_inst_Base::eMol_aa, CSeq_inst_Base::eMol_dna, CSeq_inst_Base::eMol_na, CSeq_inst_Base::eMol_rna, fAlign_DNA, fAlign_Invalid, fAlign_Mixed, fAlign_Protein, CBioseq_Handle::GetBioseqCore(), CScope::GetBioseqHandle(), CBioseq_Base::GetInst(), CSeq_inst_Base::GetMol(), CSeq_align::GetSeq_id(), kEmptyStr, and row.
Referenced by CNAUtils::GetNATrackInfo().
◆ GetAllGIs() ◆ GetAllNAAs()Get a list of NAAs associated with the target sequence.
It returns only the named annotation names only (no meta-data). If the target sequence is not set, it returns nothing.
Definition at line 529 of file na_utils.cpp.
References context, CNAUtils::x_GetNAAs(), and CNAUtils::x_GetNAIds().
◆ GetAllNAMetaData() ◆ GetAlnAnchorPair() ◆ GetAnnotComment() [1/2] ◆ GetAnnotComment() [2/2] ◆ GetAnnotName() [1/2] ◆ GetAnnotName() [2/2] ◆ GetAnnots() ◆ GetAnnotSelector() [1/6]create a annotation selector for collecting annotation names only.
Definition at line 266 of file utils.cpp.
References SAnnotSelector::AddNamedAnnots(), SAnnotSelector::AddUnnamedAnnots(), CSeqUtils::eAnnot_All, CSeqUtils::eAnnot_Named, CSeqUtils::eAnnot_Other, CSeqUtils::eAnnot_Unnamed, SAnnotSelector::ExcludeUnnamedAnnots(), CSeqUtils::GetAnnotSelector(), SAnnotSelector::IncludeNamedAnnotAccession(), CSeqUtils::IsExtendedNAA(), CSeqUtils::IsNAA(), ITERATE, CSeqUtils::NameTypeStrToValue(), SAnnotSelector::SetCollectNames(), and NStr::StartsWith().
◆ GetAnnotSelector() [2/6] ◆ GetAnnotSelector() [3/6] static objects::SAnnotSelector CSeqUtils::GetAnnotSelector ( objects::SAnnotSelector::TAnnotType choice, TAnnotFlags flags =0
) static ◆ GetAnnotSelector() [4/6] static objects::SAnnotSelector CSeqUtils::GetAnnotSelector ( objects::SAnnotSelector::TFeatSubtype , TAnnotFlags flags = 0
) static ◆ GetAnnotSelector() [5/6] static objects::SAnnotSelector CSeqUtils::GetAnnotSelector ( objects::SAnnotSelector::TFeatType , TAnnotFlags flags = 0
) static ◆ GetAnnotSelector() [6/6]
request an annotation selector for a given type
Definition at line 168 of file utils.cpp.
References SAnnotSelector::ExcludeNamedAnnots(), CSeqUtils::fAnnot_UnsetDepth, CSeqUtils::fAnnot_UnsetNamed, flags, CRegistryReadView::GetBool(), CGuiRegistry::GetInstance(), CRegistryReadView::GetKeys(), CGuiRegistry::GetReadView(), CRegistryReadView::GetString(), SAnnotSelector::IncludeNamedAnnotAccession(), ITERATE, NULL, SAnnotSelector::SetAdaptiveDepth(), SAnnotSelector::SetExcludeExternal(), SAnnotSelector::SetOverlapTotalRange(), and SAnnotSelector::SetResolveAll().
Referenced by CAlignmentSmear::AddAnnot(), CLinkUtils::AddDbxrefLinksForSNP(), CSGAlignmentDS::CalcAlnStat(), CBinsTrack::CBinsTrack(), CFeatureTrack::CFeatureTrack(), CGeneModelTrack::CGeneModelTrack(), CGraphTrack::CGraphTrack(), CHapmapTrack::CHapmapTrack(), Convert_Seq_loc_Seq_align(), Convert_Seq_loc_Seq_annot(), Convert_Seq_loc_Seq_feat(), Convert_Seq_loc_Seq_graph(), CSubAnnotationPanel::Create5ColFeatTable(), CVarTrackFactory::CreateTracks(), CFeatureTrackFactory::CreateTracks(), CGraphTrackFactory::CreateTracks(), CSeqTableGraphTrackFactory::CreateTracks(), CSequenceTrackFactory::CreateTracks(), CAlignmentTrackFactory::CreateTracks(), CGeneModelFactory::CreateTracks(), CSeqTextJob::CSeqTextJob(), CGBObjectLoader::Execute(), NSearchFeatPanel::GatherFeatures(), CSGAlignmentDS::GetAlignmentCost(), CSGAlignmentJob::GetAlignType(), CEpigenomicsDS::GetAnnotNames(), CSGSnpDS::GetAnnotNames(), CSeqUtils::GetAnnotSelector(), CSeqTextPaneConfig::GetCaseFeature(), CSGAlignmentDS::GetDataLoader(), NSnpAnnot::GetFeat_CI(), CSeqTextDataSourceInterval::GetFeatureData(), CSeqTextDataSource::GetFeaturesAtPosition(), CSeqTextDataSourceInterval::GetFeaturesAtPosition(), CSGFeatureDS::GetFilters(), NSnpAnnot::GetGraph_CI(), CSGAlignmentDS::GetGraphCost(), CGuiObjectInfoVariation::GetLinks(), CSeqTextDataSourceInterval::GetSubtypesForAlternatingExons(), CSeqTextDataSourceInterval::GetToolTipForPosition(), CBinsDS::GetTrackNames(), CSGHapmapDS::GetTrackNames(), CLDBlockDS::GetTrackNames(), CSeqTextDataSourceInterval::GetVariations(), CFeatTableDS::Init(), CAlnVecMultiDataSource::Init(), CAlnMultiDSBuilder::Init(), CHitMatrixDSBuilder::Init(), CSGAlignmentDS::InitAlignType(), CSGAlignmentDS::LoadAlignFeats(), CSGAlignmentDS::LoadAlignments(), CSGAlignmentDS::LoadCoverageGraph(), CTraceDataProxy::LoadData(), CSGTraceGraphDS::LoadData(), CEpigenomicsDS::LoadData(), CSeqTextDataSourceInterval::RenderFeatureExtras(), CAlignTabExportJob::Run(), C5ColExportJob::Run(), CFlatFileExportJob::Run(), CFeatCompareJob_Align::Run(), CFeatCompareJob_Location::Run(), CTestBMApp::Run(), s_Create5ColFeatTable(), s_GetAnnotSelector(), s_GetMappedFeat(), s_Render_SeqFeat(), CSeqTextPaneConfig::SetCaseFeature(), CSnpJob::x_FetchFtable(), CBinsJob::x_FetchGraphs(), CSnpJob::x_FetchGraphs(), CSGAlignmentJob::x_GetAlignments(), CDensityMapDS::x_GetAnnotSelector(), x_GetAnnotSelector(), CGuiObjectInfoSeq_feat::x_GetProductSequence(), CwxAnnotConfigDlg::x_InitAnnotList(), CLDBlockJob::x_Load(), CSGAlnQualityScore::x_RetrieveQualityMap(), CFlatFeatureRetrieveJob::x_Run(), CFeatureSearchJob::x_SearchFeatures(), CFeatureSearchJob::x_SearchForSNP(), CAlignTabExportPage2::x_StartAlignNamesJob(), CFeatureGraph::x_StartJob(), CAlignTabExportPage2::x_StartNAAlignNamesJob(), and x_ToBlastVec().
◆ GetAnnotShown() bool CSeqUtils::GetAnnotShown ( const objects::CSeq_annot & annot ) static ◆ GetAnnotUserField() ◆ GetAssmAccs_Gi() void CSeqUtils::GetAssmAccs_Gi ( TAccs & accs, TGi gi ) staticget all assembly accessions corresponding to a GI
Definition at line 1561 of file utils.cpp.
References xml::node_set::begin(), set< Key, Compare >::clear(), CSeqUtils::CreateIdStr(), xml::node_set::end(), Error(), xml::node::get_content(), xml::document::get_root_node(), CSeqUtils::GetAssmIds_GI(), CException::GetMsg(), set< Key, Compare >::insert(), kAssmDb, kRetMax, LOG_POST, xml::node::run_xpath_query(), CEutilsClient::SetMaxReturn(), and CEutilsClient::Summary().
◆ GetAssmIds_GI() ◆ GetAssmIds_GIChr()get all assembly ids associated with a gi where this gi is a chromosome
Definition at line 1365 of file utils.cpp.
References xml::node_set::begin(), CSeqUtils::CreateIdStr(), CSeqUtils::ELinkQuery(), ctll::empty(), xml::node_set::end(), Error(), xml::node::get_content(), xml::document::get_root_node(), CException::GetMsg(), GI_TO, kAssmDb, kNucDb, kRetMax, LOG_POST, xml::node::run_xpath_query(), CEutilsClient::SetMaxReturn(), and CEutilsClient::Summary().
Referenced by CSeqUtils::GetChrGI().
◆ GetBarHeight() ◆ GetBioseqForSeqdesc() ◆ GetBioseqForSeqFeat() objects::CBioseq_Handle GetBioseqForSeqFeat ( const objects::CSeq_feat & f, objects::CScope & scope )Referenced by CCitationsPanel::CreateControls(), CreateEditorForObject(), CCmdPromoteCDS::Execute(), CMacroBioData_FeatIterBase::GetBioseqHandle(), CMacroBioData_FeatIntervalIter::GetBioseqHandle(), s_GetAccession(), CMacroFunction_RemoveBothPartials::s_RemoveBothPartials(), CMacroFunction_SetBothPartials::s_SetBothEndsPartial(), CGenericPropsPanel::x_IsRefSeq(), and CIdentifiersPanel::x_UpdateXrefDescriptions().
◆ GetBlob() ◆ GetCategory() ◆ GetCdsMappingInfoFromRna()Derive the CDS feature mapping information based on its parent RNA feature mapping info.
Definition at line 2037 of file utils.cpp.
References CSeq_id::Assign(), CSeq_feat_Base::CanGetProduct(), CSeq_loc::CompareSubLoc(), done, eExtreme_Biological, eNa_strand_minus, eNa_strand_plus, CSeqFeatData::eSubtype_cdregion, SAnnotSelector::ExcludeNamedAnnots(), CSeq_loc::fMerge_AbuttingOnly, CPacked_seqint_Base::Get(), CScope::GetBioseqHandle(), CRange_Base::GetFrom(), CSeq_loc::GetId(), CSeq_feat_Base::GetLocation(), CMappedFeat::GetMappedFeature(), CSeq_loc_Base::GetPacked_int(), CSeq_feat_Base::GetProduct(), CMappedFeat::GetProduct(), CSeq_loc::GetStart(), CSeq_loc::GetStop(), CSeq_loc::GetTotalRange(), COpenRange< TSeqPos >::GetWhole(), SAnnotSelector::IncludeFeatSubtype(), int, CSeq_feat_Base::IsSetExcept(), ITERATE, CSeq_id::Match(), CSeq_loc::Merge(), NULL, r1, r2, s_AdjustToAnnotatedCDS(), SAnnotSelector::SetAdaptiveDepth(), SAnnotSelector::SetExactDepth(), CSeq_interval_Base::SetFrom(), CSeq_interval_Base::SetId(), CSeq_loc::SetPacked_int(), SAnnotSelector::SetResolveAll(), SAnnotSelector::SetResolveDepth(), CSeq_interval_Base::SetStrand(), and CSeq_interval_Base::SetTo().
Referenced by CSeqUtils::GetMappingInfo(), CSGFeatureJob::x_CreateCrossOriginGlyphs(), and CSGFeatureJob::x_CreateFeature1().
◆ GetChildren() [1/2] ◆ GetChildren() [2/2] ◆ GetChrGI() ◆ GetChrId() ◆ GetColumn() int CLayoutFeatLabel::GetColumn ( void ) const inline ◆ GetColumnHeader() void CDataTrackUtils::GetColumnHeader ( set< string > & headers, const objects::CSeq_annot & annot ) staticCollect all column header names for a given seq-table.
The header name is from either field-name or field-id.
Definition at line 165 of file na_utils.cpp.
References CSeqTable_column_info_Base::CanGetField_id(), CSeqTable_column_info_Base::CanGetField_name(), CEnumeratedTypeValues::FindName(), CSeq_table_Base::GetColumns(), CSeq_annot_Base::GetData(), CSeqTable_column_info_Base::GetField_id(), CSeqTable_column_info_Base::GetField_name(), CSeq_annot_Base::C_Data::GetSeq_table(), set< Key, Compare >::insert(), CSeq_annot::IsSeq_table(), and ITERATE.
Referenced by CNAUtils::GetNATrackInfo().
◆ GetDataSourceTypeName() ◆ GetDisplayName() ◆ GetFeatLocation() ◆ GetFeatSubtypes() void CDataTrackUtils::GetFeatSubtypes ( const objects::CSeq_annot & annot, set< string > & subtypes ) static ◆ GetFeature() const objects::CSeq_feat& CLinkedFeature::GetFeature ( ) const inline ◆ GetGenCode() int CSeqUtils::GetGenCode ( const objects::CBioseq_Handle & handle ) static ◆ GetGiPlacements()Retrieve mapped-up sequences.
Help method for retrieving upper level sequences for a given gi.
Definition at line 1069 of file utils.cpp.
References Error(), eSerial_AsnText, flags, GetLinksURL(), CException::GetMsg(), LOG_POST, NStr::NumericToString(), CObjectIStream::Open(), s_GetAlnMapplingLocs(), STimeoutTag::sec, and STimeoutTag::usec.
◆ GetGIString() ◆ GetHTMLActiveAreas() void CAlignGlyph::GetHTMLActiveAreas ( TAreaVector * ) const virtualGet html active areas.
This function is for CGI mode only. By default, it does nothing.
Reimplemented from CSeqGlyph.
Definition at line 155 of file alignment_glyph.cpp.
References CHTMLActiveArea::fNoCaching, IScoringAlignment::GetNumRows(), CAlignGlyph::GetSignature(), CSeqGlyph::GetVisible(), IAlnGraphicDataSource::IsNegativeStrand(), CAlignGlyph::m_AlnMgr, CAlignGlyph::m_DisableTooltipsCaching, CHTMLActiveArea::m_Flags, CHTMLActiveArea::m_PositiveStrand, CHTMLActiveArea::m_Signature, and CSeqGlyph::x_InitHTMLActiveArea().
◆ GetIdMapper() IIdMapper * CGencollIdMapperAdapter::GetIdMapper ( CRef< objects::CGC_Assembly > assm ) staticDefinition at line 2880 of file utils.cpp.
References CGencollIdMapper::SIdSpec::Alias, CGencollIdMapperAdapter::CGencollIdMapperAdapter(), CGC_TypedSeqId_Base::e_Genbank, CGC_SeqIdAlias::e_Public, CGC_TypedSeqId_Base::e_Refseq, eGC_SequenceRole_top_level, CGC_Assembly::IsRefSeq(), CGencollIdMapper::SIdSpec::Role, and CGencollIdMapper::SIdSpec::TypedChoice.
Referenced by CBamUIDataSource::AddDataLoader(), SCoverageData::GetMapper(), CVcfLoadingJob::x_CreateProjectItems(), CVcfRefSequencesPanel::x_FillList(), and CBamUILoadManager::x_GetBamRefSeqs().
◆ GetIntervals() ◆ GetKey() ◆ GetLabel() string CAlignmentSmear::GetLabel ( void ) const ◆ GetLocation() [1/3] const objects::CSeq_loc & CLayoutFeatLabel::GetLocation ( void ) const ◆ GetLocation() [2/3] const objects::CSeq_loc & CAlignGlyph::GetLocation ( void ) const virtual ◆ GetLocation() [3/3] const objects::CSeq_loc & CSwitchPointGlyph::GetLocation ( void ) const ◆ GetLocPlacements()Retrieve locations on mapped-up sequences Help method for retrieving upper level sequences for a given loc.
Definition at line 1161 of file utils.cpp.
References CSeq_align::CheckNumRows(), Error(), eSerial_AsnText, fHTTP_AutoReconnect, CRange_Base::GetFrom(), CSeq_id_Base::GetGi(), GetLinksURL(), CException::GetMsg(), CSeq_align_Base::GetSegs(), CSeq_align::GetSeq_id(), CSeq_align_Base::C_Segs::GetStd(), CRange_Base::GetTo(), INVALID_GI, CSeq_id_Base::IsGi(), CSeq_align_Base::C_Segs::IsStd(), ITERATE, LOG_POST, NStr::NumericToString(), CObjectIStream::Open(), STimeoutTag::sec, swap(), and STimeoutTag::usec.
◆ GetMappedFeature() [1/2] objects::CMappedFeat& CLinkedFeature::GetMappedFeature ( ) inlineDefinition at line 85 of file utils.hpp.
◆ GetMappedFeature() [2/2] const objects::CMappedFeat& CLinkedFeature::GetMappedFeature ( ) const inlineDefinition at line 83 of file utils.hpp.
◆ GetMappingInfo()Definition at line 2282 of file utils.cpp.
References CSeqFeatData_Base::e_Cdregion, eNa_strand_minus, CSeqFeatData::eSubtype_V_segment, CSeqFeatData_Base::GetCdregion(), CSeqUtils::GetCdsMappingInfoFromRna(), CSeq_feat_Base::GetData(), CSeqUtils::GetFeatLocation(), CCdregion_Base::GetFrame(), CSeq_loc::GetId(), CMappedFeat::GetLocation(), CMappedFeat::GetMappedFeature(), CSeqUtils::GetMappingInfoFromLocation(), CSeqUtils::GetMrnaForCds(), CMappedFeat::GetOriginalFeature(), CSeq_feat_Base::GetProduct(), CSeqUtils::GetRnaMappingInfo(), CBioseq_Handle::GetScope(), GetStrand(), CSeqFeatData::GetSubtype(), info, NStr::IntToString(), CSeqFeatData_Base::IsRna(), CCdregion_Base::IsSetFrame(), CSeq_feat_Base::IsSetProduct(), offset, and CSeqFeatData_Base::Which().
Referenced by CGuiObjectInfoSeq_feat::x_GetProductSequence().
◆ GetMappingInfoFromLocation() ◆ GetMaxSearchSegments() ◆ GetMaxSearchSegmentsAction() ◆ GetMaxSearchTime() ◆ GetMaxValue() ◆ GetMrnaForCds() ◆ GetNAMetaData() [1/2] ◆ GetNAMetaData() [2/2] ◆ GetNATrackInfo() [1/4]Do data track discovery for a given NA.
This method relies on NA meta-data to do data discovery completely or partially depending on the annotation type. For example, for seq-table, it will need to look at the data to report the column names. For alignment, it will need to check the alignment type: protein or nucleotide.
Definition at line 607 of file na_utils.cpp.
References CNAUtils::GetNAMetaData().
Referenced by CNAUtils::GetNATrackInfo().
◆ GetNATrackInfo() [2/4]Do data track discovery for a given NA with meta-data.
Definition at line 616 of file na_utils.cpp.
References SAnnotSelector::AddNamedAnnots(), set< Key, Compare >::begin(), data, CSeq_annot_Base::C_Data::e_Align, CSeq_annot_Base::C_Data::e_Ftable, CSeq_annot_Base::C_Data::e_Graph, CSeq_annot_Base::C_Data::e_Seq_table, map_checker< Container >::empty(), set< Key, Compare >::empty(), map_checker< Container >::end(), CDataTrackUtils::FeatSubtypes2TrackSubtypes(), map_checker< Container >::find(), ftable, CDataTrackUtils::GetAlignType(), CDataTrackUtils::GetColumnHeader(), CSeq_annot_Handle::GetCompleteSeq_annot(), CSeq_annot_Base::GetData(), CSeq_table_Base::GetFeat_subtype(), CSeq_annot_Base::C_Data::GetSeq_table(), CDataTrackUtils::GetSeqTableSubtype(), COpenRange< TSeqPos >::GetWhole(), SAnnotSelector::IncludeAnnotType(), SAnnotSelector::IncludeNamedAnnotAccession(), info, set< Key, Compare >::insert(), CSeq_table_Base::IsSetFeat_subtype(), ITERATE, CNAUtils::m_BioseqHandle, CNAUtils::m_Scope, CNAUtils::m_TargetSeq, s_GetFeatSubtypeStr(), CSeq_annot_Base::C_Data::SelectionName(), SAnnotSelector::SetCollectNames(), and SAnnotSelector::SetMaxSize().
◆ GetNATrackInfo() [3/4] ◆ GetNATrackInfo() [4/4] ◆ GetNcbiBaseUrl() string CSeqUtils::GetNcbiBaseUrl ( ) static ◆ GetNonAsnDataBlob() [1/2] ◆ GetNonAsnDataBlob() [2/2] ◆ GetObject() [1/3] ◆ GetObject() [2/3] ◆ GetObject() [3/3] ◆ GetObjects() [1/3] ◆ GetObjects() [2/3] ◆ GetObjects() [3/3] void CSwitchPointGlyph::GetObjects ( vector< CConstRef< CObject > > & objs ) const virtual ◆ GetOrigAlignment() const objects::CSeq_align_Handle & CAlignGlyph::GetOrigAlignment ( void ) const inline ◆ GetOrigAnchor() int CAlignGlyph::GetOrigAnchor ( void ) const inline ◆ GetRange() [1/2] TSeqRange CLayoutFeatLabel::GetRange ( void ) const ◆ GetRange() [2/2] TSeqRange CAlignGlyph::GetRange ( void ) const virtual ◆ GetRangeCollection() ◆ GetRnaMappingInfo() ◆ GetSelectorRegistry() ◆ GetSeqEntryForPubdesc() ◆ GetSeqFeatHandleForBadLocFeature() ◆ GetSeqTableSubtype() ◆ GetShown() virtual bool INonAsnTrackData::GetShown ( ) const pure virtualImplemented in CVcfTrackData.
◆ GetSignature() string CAlignGlyph::GetSignature ( ) const virtualreturn signature for this glyph.
Implements IObjectBasedGlyph.
Definition at line 212 of file alignment_glyph.cpp.
References CSeq_loc::Assign(), CObjFingerprint::GetAlignSignature(), IScoringAlignment::GetAnchor(), CAlignGlyph::GetLocation(), CAlignGlyph::GetObject(), CAlignGlyph::GetOrigAlignment(), CRenderingContext::GetScope(), IAlnGraphicDataSource::GetSeqId(), CAlignGlyph::m_AlnMgr, CSeqGlyph::m_Context, CAlignGlyph::m_Location, CAlignGlyph::m_OrigSeqAlign, CSeq_loc::SetId(), and CAlignGlyph::x_IsSRA().
Referenced by CAlignGlyph::GetHTMLActiveAreas().
◆ GetSortedFeatList() vector<const objects::CFeatListItem *> GetSortedFeatList ( objects::CSeq_entry_Handle seh, size_t max =numeric_limits< size_t >::max()
)
Referenced by CMacroEditorContext::CMacroEditorContext(), CAECRFrame::CreateControls(), CCorrectIntervalOrder::Init(), CRemoveFeaturesDlg::Init(), CRemoveGeneXrefs::Init(), CSuppressGenes::Init(), CFeatureTypePanel::ListPresentFeaturesFirst(), CAdjustFeaturesForGaps::PopulateFeatureList(), CMacroFeatsOnSeqPanel::x_GetFeatureChoices(), CAddFeatureBetweenDlg::x_ListFeatures(), CBulkOtherAddPanel::x_ListFeatures(), and CAlignOtherAddPanel::x_ListFeatures().
◆ GetStrandType() ◆ GetSubcategory() ◆ GetSubkey() ◆ GetSwitchPoints() ◆ GetTitle()Definition at line 1189 of file alignment_glyph.cpp.
References CLabel::eContent, CLabel::eDescription, CLabel::eDescriptionBrief, CLabel::eType, CLabel::eUserTypeAndContent, CLabel::GetLabel(), IScoringAlignment::GetNumRows(), CAlignGlyph::GetOrigAlignment(), CRenderingContext::GetScope(), CAlignGlyph::m_AlnMgr, CSeqGlyph::m_Context, CAlignGlyph::m_OrigAnchor, CAlignGlyph::m_OrigSeqAlign, row, NStr::UIntToString(), and CAlignGlyph::x_IsPWAlign().
Referenced by CAlignGlyph::x_DrawPWAlign(), and CAlignGlyph::x_UpdateBoundingBox().
◆ GetTooltip()Get the tooltip if available.
The x and y are in 'world' coord system which is the coord. system for the uppermost layout object.
Reimplemented from CSeqGlyph.
Definition at line 118 of file alignment_glyph.cpp.
References ITooltipFormatter::AddRow(), CAlignGlyph::GetAlignment(), CRef< C, Locker >::GetPointer(), CRenderingContext::GetScale(), CRenderingContext::GetScope(), CSeqGlyph::GetVisible(), CRenderingContext::IsFlippedStrand(), CAlignGlyph::IsLastRow(), CAlignGlyph::m_AlnMgr, CSeqGlyph::m_Context, CAlignGlyph::m_OrigAnchor, NULL, CGuiObjectInfoSeq_align::SetAnchorRow(), CGuiObjectInfoSeq_align::SetDataSource(), CGuiObjectInfoSeq_align::SetFlippedStrands(), CGuiObjectInfoSeq_align::SetScale(), and CGlPoint< T >::X().
◆ GetTopSeqEntryFromScopedObject()Definition at line 2596 of file utils.cpp.
References CScope::eMissing_Null, GetBioseqForSeqFeat(), GetDefaultTopLevelSeqEntry(), CConstRef< C, Locker >::GetPointer(), GetSeqEntryForPubdesc(), GetSeqEntryForSeqdesc(), CBioseq_Handle::GetTopLevelEntry(), CBioseq_set_Handle::GetTopLevelEntry(), SConstScopedObject::object, and SConstScopedObject::scope.
Referenced by CEditingBtnsPanel::EditSequence(), CSequenceEditingEventHandler::EditSequence(), CSelectFeatures::GetMainObject(), CSUCDataGenerator::GetSUCResults(), CBulkCmdDlg::GetTopLevelSeqEntryAndProcessor(), CValidatePanel::GetTopSeqAndSeqSubmit(), CEditObjViewDlgModal::InitWidget(), IsEditable(), CAddFeatureBetweenDlg::OnApplyButton(), CEditingBtnsPanel::OnDataChange(), CUnculTaxTool::OnRefreshBtn(), CSelectTargetDlg::OnSelTargetAcceptClick(), CDiscrepancyPanel::OpenEditor(), CRemoveSet::remove_sets_from_set(), s_Create5ColFeatTable(), CGuiCoreHelper::Sync(), CTableViewWithTextViewNav::x_EditObject(), CSuspectProductRulesEditor::x_SetUpTSEandUnDoManager(), and CSequenceEditingEventHandler::x_SetUpTSEandUnDoManager().
◆ GetTrackInfo() [1/2] ◆ GetTrackInfo() [2/2]Get data track information from a seq-annot.
◆ GetTrackMetaData() ◆ GetType() [1/2] CLayoutFeatLabel::EType CLayoutFeatLabel::GetType ( void ) constDefinition at line 79 of file feat_label.cpp.
◆ GetType() [2/2] CLayoutPWAlign::EType CLayoutPWAlign::GetType ( void ) constDefinition at line 48 of file pw_alignment.cpp.
◆ GetUnnamedAnnot()Get the commonly used symbol representing a unnnamed annotation.
Definition at line 534 of file utils.hpp.
Referenced by CTrackConfigManager::AdjustTrackOrder(), CGraphGlyph::CGraphGlyph(), CGeneModelFactory::CreateTracks(), CSGFeatureJob::GetAnnotNames(), CSGSegmentSmearJob::GetAnnotNames(), CSGAlignmentJob::GetAnnotNames(), CSGSeqGraphJob::GetAnnotNames(), CEpigenomicsDS::GetAnnotNames(), CSGFeatureJob::GetAnnotNames_var(), CHistParamsManager::GetHistParams(), CSGSeqGraphJob::GetSeqtableAnnots(), CHistParamsManager::HasSettings(), CHistParamsManager::IsTempSettings(), CSeqUtils::IsUnnamed(), CTempTrackProxy::SaveToRegistry(), CSGAnnotJob::x_AddGraphObject(), CHistParamsManager::x_AddSettings(), CBatchFeatJob::x_LoadFeatProducts(), CSGSeqGraphJob::x_LoadSeqTable(), and CAlignTabExportPage2::x_StartAlignNamesJob().
◆ GetXmlChildNodeValue() ◆ HasNonAsnData() [1/2] ◆ HasNonAsnData() [2/2] virtual bool INonAsnDataSource::HasNonAsnData ( const string & annot_name ) const pure virtual ◆ HasObject() [1/2] ◆ HasObject() [2/2] ◆ IsAlignDb() ◆ IsClickable() bool CAlignGlyph::IsClickable ( ) const virtualQuery if this glyph is clickable.
Mainly for chaging mouse cursor for clickable glyph. By default, it returns false. If a glyph is clickable, but there is no need to change mouse cursor due to any other reason, such as there is already other visual hint, then don't need to override this function.
Reimplemented from CSeqGlyph.
Definition at line 182 of file alignment_glyph.cpp.
◆ IsCoverageAnnotName() ◆ IsCrossOrigin() [1/2] ◆ IsCrossOrigin() [2/2] ◆ IsException() bool CSeqUtils::IsException ( const objects::CSeq_feat & feat ) static ◆ IsExtendedNAA()check if a given annotation is an extended NAA (named accession[.version][number], as used in e.g.
SNP2) when isSctrict == false, regular NAs are now included into this as well i.e. the result of calling this is now the same as IsNAA
Definition at line 851 of file utils.cpp.
References s_IsExtendedNAA().
Referenced by CSnpTrackFactory::CreateTracks(), CSeqUtils::GetAnnotSelector(), NSnpAnnot::GetGraph_CI(), CSnpTrackFactory::GetMatchedAnnots(), CTempTrackProxy::IsExtendedNA(), CSeqUtils::IsNAA(), s_ConvertMetaData(), CSeqUtils::SetAnnot(), and CSnpJob::x_FetchGraphs().
◆ IsExtendedNAA_Name() ◆ IsGeneModelFeature() bool CDataTrackUtils::IsGeneModelFeature ( int type, int subtype ) staticDoes feature belong to gene model track Gene, RNA, cdregion, exon, C_region, and VDJ segments.
Definition at line 190 of file na_utils.cpp.
References CSeqFeatData_Base::e_Cdregion, CSeqFeatData_Base::e_Gene, CSeqFeatData_Base::e_Rna, CSeqFeatData::eSubtype_C_region, CSeqFeatData::eSubtype_D_segment, CSeqFeatData::eSubtype_exon, CSeqFeatData::eSubtype_J_segment, CSeqFeatData::eSubtype_misc_RNA, and CSeqFeatData::eSubtype_V_segment.
Referenced by CDataTrackUtils::FeatSubtypes2TrackSubtypes(), CTrackConfigManager::ValidFeatureTrack(), CAlignmentTrack::x_AddAlignFeatLayout(), and CSGAlignmentJob::x_LoadAlignmentFeats().
◆ IsLastRow() bool CAlignGlyph::IsLastRow ( ) const inline ◆ IsNAA()check if a given annotation is a named annotation accession[.version][number] when isSctrict == false, includes extended NAs since it is considered no harm to relax the rules for all NAs
Definition at line 797 of file utils.cpp.
References CSeqUtils::IsExtendedNAA(), and s_IsNAA().
Referenced by CObjFingerprint::GetAlignSignature(), CSGSegmentSmearJob::GetAnnotNames(), CSeqUtils::GetAnnotSelector(), CObjFingerprint::GetFeatSignature(), CObjFingerprint::GetGraphSignature(), CObjFingerprint::GetHistogramSignature(), ILayoutTrackFactory::GetMatchedAnnots(), CAllOtherFeaturesTrackFactory::GetSettings(), CVarTrack::InitHTMLActiveArea(), CTempTrackProxy::IsNA(), CTrackConfigManager::OnShownList(), CObjFingerprint::ParseSignature(), CTrackInitializationJob::Run(), CSnpJob::s_AdjustAnnotName(), CSeqUtils::SetAnnot(), CHapmapJob::x_Load(), and CGenBankLoadOptionPanel::x_ProccessText().
◆ IsNAA_Name() ◆ IsNegative() bool CAlignGlyph::IsNegative ( ) const inline ◆ IsPartialFeature() bool CSeqUtils::IsPartialFeature ( const objects::CSeq_feat & feat ) static ◆ IsPartialStart() bool CSeqUtils::IsPartialStart ( const objects::CSeq_loc & loc ) static ◆ IsPartialStop() bool CSeqUtils::IsPartialStop ( const objects::CSeq_loc & loc ) static ◆ IsPseudoFeature() bool CSeqUtils::IsPseudoFeature ( const objects::CSeq_feat & feat ) static ◆ isQuasiLocal() bool CSeqUtils::isQuasiLocal ( const objects::CBioseq_Handle & handle ) static ◆ isRmtAnnotName() ◆ isRmtPipelineFileType() ◆ IsSameStrands() bool CSeqUtils::IsSameStrands ( const objects::CSeq_loc & loc ) static ◆ IsSimplified() bool CAlignGlyph::IsSimplified ( ) const inline ◆ isTopLevel()Definition at line 1476 of file utils.cpp.
References CSeq_id::AsFastaString(), CSeq_id::eAcc_refseq_chromosome, map_checker< Container >::end(), Error(), map_checker< Container >::find(), CScope::GetBioseqHandle(), GetGiForId(), CSeq_id::IdentifyAccession(), info, CGencollSvc::isGenCollSequence(), LOG_POST, m_TopLevels, m_TopLevelsLock, CSeqUtils::Match(), s_GetAssemblySeqIds(), and ZERO_GI.
◆ IsUnnamed() ◆ IsVDBAccession() ◆ LessBySeqPos() ◆ LinkFeatures()Link features into a hierarchical list.
This function will transform a linear, feature-order-sorted list of CLinkedFeature into a hierarchically arranged list in which genes are linked to mRNAs, mRNAs to CDSs, etc.
Definition at line 453 of file utils.cpp.
References ISeqTaskProgressCallback::AddTaskCompleted(), NON_CONST_ITERATE, ISeqTaskProgressCallback::SetTaskCompleted(), ISeqTaskProgressCallback::SetTaskName(), ISeqTaskProgressCallback::SetTaskTotal(), and ISeqTaskProgressCallback::StopRequested().
Referenced by CGeneModelFeatJob::GetFilters(), CGeneModelFeatJob::x_CreateFeaturesWithFilter(), CGeneModelFeatJob::x_Execute(), CSGFeatureJob::x_LinkFeatures(), and CSGAlignmentJob::x_LoadAlignmentFeats().
◆ MakeRmtAnnotName()create an annotation name for a remote file pipeline, appending sSuffix
Definition at line 808 of file utils.cpp.
◆ Map() [1/2] objects::CSeq_id_Handle CGencollIdMapperAdapter::Map ( const objects::CSeq_id_Handle & idh ) overridevirtual ◆ Map() [2/2] CRef< objects::CSeq_loc > CGencollIdMapperAdapter::Map ( const objects::CSeq_loc & loc ) overridevirtual ◆ MapObject() ◆ MapStringId() CRef< objects::CSeq_id > CSeqUtils::MapStringId ( const string & str, objects::IIdMapper * mapper ) static ◆ MaskGaps() void CAlignmentSmear::MaskGaps ( ) ◆ Match() [1/2] static bool CSeqUtils::Match ( const objects::CSeq_id & id1, const objects::CSeq_id & id2, objects::CScope * scope =NULL
) static
check to see if two seq-ids are identical.
If provided with a scope, this function will use the synonyms available through a scope to check for identicality. Note that this may require network access, and may be slow.
Referenced by CVisibleRange::Clamp(), CQueryFuncPromoteEq::Evaluate(), CQueryFuncPromoteIn::Evaluate(), CProjectView::GetReflectionInfo(), CSeqUtils::isTopLevel(), CVisibleRange::Match(), CAlnMultiWidget::SetSelectedIds(), CTaxTreeBrowser::SetSelectedUids(), and CComponentSearchJob::x_DoSearch().
◆ Match() [2/2] static bool CSeqUtils::Match ( const objects::CSeq_id_Handle & id1, const objects::CSeq_id_Handle & id2, objects::CScope * scope =NULL
) static ◆ MixLocToLoc() CRef< CSeq_loc > CSeqUtils::MixLocToLoc ( const objects::CSeq_loc & mix_loc, const objects::CBioseq_Handle & handle ) static
Create a new seq-loc with a unique seq-id from a "mixed" loc.
"Mixed" means mixed seq-ids, e.g. a seq-loc with multi seq-ids.
Definition at line 662 of file utils.cpp.
References CPacked_seqint::AddInterval(), COpenRange< Position >::Empty(), CPacked_seqint_Base::Get(), CRange_Base::GetFrom(), CBioseq_Handle::GetSeqId(), CRange_Base::GetTo(), CBioseq_Handle::IsSynonym(), CPacked_seqint_Base::Set(), CSeq_loc::SetInt(), and CSeq_loc::SetPacked_int().
Referenced by CSeqUtils::GetFeatLocation(), CSGFeatureJob::x_CreateCrossOriginGlyphs(), CSGFeatureJob::x_CreateFeature1(), and CGuiObjectInfoSeq_feat::x_GetFeatLocation().
◆ NameTypeStrToValue()Definition at line 141 of file utils.cpp.
References CSeqUtils::eAnnot_Other.
Referenced by CTrackConfigManager::AdjustTrackOrder(), CAlignmentTrackFactory::CreateTracks(), NSearchFeatPanel::GatherFeatures(), CSeqUtils::GetAnnotSelector(), NSnpAnnot::GetFeat_CI(), CSnpJob::s_AdjustAnnotName(), CFeatureTrack::SetAnnot(), CGeneModelTrack::SetAnnot(), CGraphTrack::SetAnnot(), CSeqUtils::SetAnnot(), NSearchFeatPanel::CTrackFeatSubtype::Track(), CSnpJob::x_FetchFtable(), and CSnpJob::x_FetchGraphs().
◆ NameTypeValueToStr() ◆ NeedTooltip()Check if need to show tooltip.
If the tooltip retrieval is trivial, the derived glyph may decide to fill out the tooltip (info object) in this call.
Reimplemented from CSeqGlyph.
Definition at line 112 of file alignment_glyph.cpp.
◆ operator<() [1/2] ◆ operator<() [2/2] ◆ operator=() ◆ ParseRanges() ◆ Read()Read attributes stream into the table.
Definition at line 62 of file biotree_attr_reader.cpp.
References CNcbiTable< TValue, TRow, TColumn >::AddColumn(), CNcbiTable< TValue, TRow, TColumn >::AddRow(), CStreamLineReader::AtEOF(), CBioTreeAttrReader::CheckLineReader(), CNcbiTable< TValue, TRow, TColumn >::Cols(), ERR_POST, NStr::fSplit_Tokenize, CNcbiTable< TValue, TRow, TColumn >::GetCell(), CStreamLineReader::GetLineNumber(), i, ITERATE, l(), LOG_POST, NCBI_THROW2, row, NStr::Split(), CBioTreeAttrReader::TableValueDecode(), and Warning().
Referenced by CPhyloTreeWidget::OnLoadAttributes().
◆ RemapChildToParent() CRef< CSeq_loc > CSeqUtils::RemapChildToParent ( const objects::CSeq_loc & parent, const objects::CSeq_loc & child, objects::CScope * scope =NULL
) static ◆ RemoveNonAsnData() ◆ s_LoadBlob() ◆ SeparateStrands() bool CAlignmentSmear::SeparateStrands ( const objects::CSeq_annot & seq_annot ) static ◆ SeqLocToBioseq() CBioseq * CSeqUtils::SeqLocToBioseq ( objects::CScope & scope, const objects::CSeq_loc & loc ) static
Construct a bioseq to fit a given location.
If the location is of type 'whole', then a duplicate of the original will be returned; otherwise, a new bioseq will be constructed to cover just the region indicated in the seq-loc
Definition at line 601 of file utils.cpp.
References CSerialObject::Assign(), CBioseq_Handle::eCoding_Iupac, CSeq_inst_Base::eMol_aa, CSeq_inst_Base::eMol_na, CSeq_inst_Base::eRepr_raw, CScope::GetBioseqHandle(), CBioseq_Handle::GetCompleteBioseq(), CSeq_loc::GetLabel(), CSeqVector::GetSeqData(), CBioseq_Handle::GetSeqId(), CSeqVector::IsProtein(), CSeq_loc_Base::IsWhole(), CSeqportUtil::Pack(), CRef< C, Locker >::Release(), CBioseq_Base::SetDescr(), CBioseq_Base::SetId(), CBioseq_Base::SetInst(), CSeqdesc_Base::SetTitle(), and CSeqVector::size().
◆ SetAnnot() void CSeqUtils::SetAnnot ( objects::SAnnotSelector & sel, const string & annot ) statichelp function for setting up an annotation.
Definition at line 321 of file utils.cpp.
References CSeqUtils::eAnnot_All, CSeqUtils::eAnnot_Named, CSeqUtils::eAnnot_Other, CSeqUtils::eAnnot_Unnamed, CSeqUtils::IsExtendedNAA(), CSeqUtils::IsNAA(), and CSeqUtils::NameTypeStrToValue().
Referenced by CSGAlignmentDS::CalcAlnStat(), CSGAlignmentDS::GetAlignmentCost(), CSGFeatureDS::GetFilters(), CSGAlignmentDS::GetGraphCost(), CSGAlignmentDS::LoadAlignments(), CSGAlignmentDS::LoadCoverageGraph(), CEpigenomicsDS::LoadData(), and CAlignTabExportJob::Run().
◆ SetAnnotShown() void CSeqUtils::SetAnnotShown ( objects::CSeq_annot & annot, bool isShown ) static ◆ SetColumn() void CLayoutFeatLabel::SetColumn ( int col ) inline ◆ SetConfig() ◆ SetLabel() void CAlignmentSmear::SetLabel ( const string & label ) ◆ SetMaxNAs() void CNAUtils::SetMaxNAs ( int size ) ◆ SetNonAsnDataRegistry() ◆ SetRange() ◆ SetResolveDepth() void CSeqUtils::SetResolveDepth ( objects::SAnnotSelector & sel, bool adaptive, int depth =-1
) static
help function for setting selector resolve depth.
Definition at line 406 of file utils.cpp.
References depth, CSeqUtils::GetMaxSearchSegments(), CSeqUtils::GetMaxSearchSegmentsAction(), CSeqUtils::GetMaxSearchTime(), and CSeqUtils::GetSelectorRegistry().
Referenced by CSGAlignmentDS::CalcAlnStat(), CFeatureTrack::GenerateAsn1(), CGeneModelTrack::GenerateAsn1(), CSGAlignmentDS::GetAlignmentCost(), CEpigenomicsDS::GetAnnotNames(), CSGFeatureDS::GetAnnotNames(), CSGSegmentMapDS::GetAnnotNames(), CSGAlignmentDS::GetAnnotNames(), CSGGraphDS::GetAnnotNames(), CSGSnpDS::GetAnnotNames(), CSGFeatureDS::GetAnnotNames_var(), CSeqUtils::GetAnnotSelector(), NSnpAnnot::GetFeat_CI(), NSnpAnnot::GetGraph_CI(), CSGAlignmentDS::GetGraphCost(), CSGGraphDS::GetSeqtableAnnots(), CBinsDS::GetTrackNames(), CSGHapmapDS::GetTrackNames(), CLDBlockDS::GetTrackNames(), CSGAlignmentDS::LoadAlignments(), CSGAlignmentDS::LoadCoverageGraph(), CEpigenomicsDS::LoadData(), CSGFeatureDS::LoadGeneModelFeatures(), CSGGraphDS::LoadSeqGraphs(), CAlignTabExportJob::Run(), CSnpJob::x_FetchFtable(), CBinsJob::x_FetchGraphs(), CSnpJob::x_FetchGraphs(), CHapmapJob::x_Load(), CLDBlockJob::x_Load(), and CAlignTabExportPage2::x_StartAlignNamesJob().
◆ SetScore() ◆ SetShowScore() void CAlignGlyph::SetShowScore ( ) inline ◆ SetTaskCompleted() virtual void ISeqTaskProgressCallback::SetTaskCompleted ( int completed ) pure virtual ◆ SetTaskName() virtual void ISeqTaskProgressCallback::SetTaskName ( const string & name ) pure virtual ◆ SetTaskTotal() virtual void ISeqTaskProgressCallback::SetTaskTotal ( int total ) pure virtual ◆ SmearGapBegin() ◆ SmearSegBegin() ◆ StopRequested() virtual bool ISeqTaskProgressCallback::StopRequested ( ) const pure virtual ◆ StringToRange() bool CSeqUtils::StringToRange ( const string & range_str, long & from, long & to ) static ◆ TableValueDecode() void CBioTreeAttrReader::TableValueDecode ( string & s ) protected ◆ x_CalcIntervals() [1/2] void CAlignGlyph::x_CalcIntervals ( TIntervals & intervals, int target_row =-1
) const private
Definition at line 2386 of file alignment_glyph.cpp.
References IScoringAlignment::CreateSegmentIterator(), IAlnExplorer::eLeft, COpenRange< Position >::Empty(), IAlnExplorer::eRight, Error(), IAlnSegmentIterator::eSkipGaps, IAlnGraphicDataSource::GetAlnPosFromSeqPos(), IAlnSegment::GetAlnRange(), IScoringAlignment::GetAnchor(), IScoringAlignment::GetBaseWidth(), CRange_Base::GetFrom(), IAlnSegment::GetRange(), IScoringAlignment::GetSeqPosFromAlnPos(), IAlnGraphicDataSource::GetSeqStart(), IAlnGraphicDataSource::GetSeqStop(), CRange_Base::GetTo(), CRenderingContext::IntersectVisible(), IAlnSegment::IsAligned(), IAlnSegment::IsIndel(), CAlignGlyph::IsSimplified(), kMinSegDistance, LOG_POST, CAlignGlyph::m_AlnMgr, CSeqGlyph::m_Context, max(), r(), row, CRenderingContext::SeqToScreen(), and swap().
Referenced by CAlignGlyph::x_DrawMultiAlign(), and CAlignGlyph::x_UpdateBoundingBox().
◆ x_CalcIntervals() [2/2] void CLayoutPWAlign::x_CalcIntervals ( void ) const protectedvirtual ◆ x_ConvertAlnTaillRngToSeqRng() ◆ x_Draw() [1/2] void CAlignGlyph::x_Draw ( ) const protectedvirtualThe default renderer for this layout object.
Implements CSeqGlyph.
Definition at line 1249 of file alignment_glyph.cpp.
References CAlignGlyph::ApplyFading(), CSeqGlyph::GetBottom(), CRenderingContext::GetGlPane(), CSeqGlyph::GetTop(), CSeqGlyph::GetVisible(), CGlPane::GetVisibleRect(), CSeqGlyph::m_Context, CAlignGlyph::m_FadeFactor, CAlignGlyph::x_DrawMultiAlign(), CAlignGlyph::x_DrawPWAlign(), and CAlignGlyph::x_IsPWAlign().
◆ x_Draw() [2/2] void CSwitchPointGlyph::x_Draw ( ) const protectedvirtual ◆ x_DrawAlignRowSequence()Definition at line 1673 of file alignment_glyph.cpp.
References IRender::Color3f(), IRender::ColorC(), CSeqManip::Complement(), IScoringAlignment::CreateSegmentIterator(), CRenderingContext::DrawDisk2(), CRenderingContext::DrawLineStrip(), CSeqUtil::e_Iupacaa, CSeqUtil::e_Iupacna, CBioseq_Handle::eCoding_Iupac, IAlnExplorer::eLeft, eMaxRowLimit, COpenRange< Position >::Empty(), CAlignGlyph::eOne2One, CAlignGlyph::eOne2Three, IAlnExplorer::eRight, IAlnSegmentIterator::eSkipGaps, CAlignGlyph::eThree2One, IScoringMethod::fForeground, CSeqTranslator::fIs5PrimePartial, IAlnGraphicDataSource::GetAlnPosFromSeqPos(), IAlnSegment::GetAlnRange(), IScoringAlignment::GetAlnSeqString(), IScoringAlignment::GetAnchor(), CAlignGlyph::GetBarHeight(), IScoringAlignment::GetBaseWidth(), IAlnGraphicDataSource::GetBioseqHandle(), CBioseq_Handle::GetBioseqLength(), CRange_Base::GetFrom(), IAlnGraphicDataSource::GetGenCode(), GetGl(), CSeqGlyph::GetLeft(), IAlnSegment::GetRange(), CSeqGlyph::GetRight(), CSeqVector::GetSeqData(), IScoringAlignment::GetSeqPosFromAlnPos(), IAlnGraphicDataSource::GetSeqStart(), IAlnGraphicDataSource::GetSeqStop(), CBioseq_Handle::GetSeqVector(), CSeqGlyph::GetTearline(), CRange_Base::GetTo(), CSeqGlyph::GetWidth(), CRenderingContext::IntersectVisible(), CBioseq_Handle::IsAa(), CRenderingContext::IsFlippedStrand(), CAlignGlyph::IsLastRow(), IAlnGraphicDataSource::IsNegativeStrand(), kPWAlignPackLevel, CRgbaColor::Lighten(), CAlignGlyph::m_AlnMgr, CAlignGlyph::m_Config, CSeqGlyph::m_Context, CAlignGlyph::m_FadeFactor, CAlignmentConfig::m_LabelFont, CAlignGlyph::m_Score, CAlignmentConfig::m_SeqFont, CAlignmentConfig::m_ShowIdenticalBases, match(), min(), msg(), NULL, r(), CSeqManip::Reverse(), CSeqManip::ReverseComplement(), row, CRenderingContext::ScreenToSeq(), CRenderingContext::SeqToScreen(), COpenRange< Position >::Set(), CRgbaColor::SetAlpha(), CRange_Base::SetFrom(), CGenetic_code::SetId(), swap(), IRender::TextHeight(), CRenderingContext::TextOut(), IRender::TextWidth(), and CSeqTranslator::Translate().
Referenced by CAlignGlyph::DrawPWAlignElem(), and CAlignGlyph::x_DrawMultiAlign().
◆ x_DrawGaps()Definition at line 248 of file alignment_glyph.cpp.
References IRender::ColorC(), IScoringAlignment::CreateSegmentIterator(), ctx, IRender::Disable(), CRenderingContext::DrawLine(), IAlnSegmentIterator::eAllSegments, IAlnGraphicDataSource::eCigar_N, COpenRange< Position >::Empty(), IAlnSegment::fIndel, IAlnSegment::GetAlnRange(), IScoringAlignment::GetAnchor(), IAlnGraphicDataSource::GetCigarAtAlnPos(), CRange_Base::GetFrom(), GetGl(), IScoringAlignment::GetNumRows(), IAlnSegment::GetRange(), IScoringAlignment::GetSeqPosFromAlnPos(), CRange_Base::GetTo(), IAlnSegment::GetType(), IRender::LineWidth(), CAlignGlyph::m_AlnMgr, CAlignGlyph::m_Config, CSeqGlyph::m_Context, CAlignGlyph::m_FadeFactor, CAlignmentConfig::m_Gap, CAlignmentConfig::m_Intron, row, CRenderingContext::SeqToScreen(), and swap().
Referenced by CAlignGlyph::DrawPWAlignElem().
◆ x_DrawInserts()Definition at line 322 of file alignment_glyph.cpp.
References IRender::ColorC(), CompressLength(), IScoringAlignment::CreateSegmentIterator(), ctx, IRender::Disable(), CRenderingContext::DrawLine(), CRenderingContext::DrawTriangle(), IAlnSegmentIterator::eAllSegments, IAlnExplorer::eBackwards, IAlnExplorer::eForward, COpenRange< Position >::Empty(), CAlignmentConfig::eNormal, IAlnExplorer::eRight, IAlnSegment::fAligned, IAlnSegment::fIndel, IAlnSegment::GetAlnRange(), IScoringAlignment::GetAnchor(), CRange_Base::GetFrom(), GetGl(), COpenRange< Position >::GetLength(), IScoringAlignment::GetNumRows(), IAlnSegment::GetRange(), CRenderingContext::GetScale(), IScoringAlignment::GetSeqPosFromAlnPos(), CRange_Base::GetTo(), IAlnSegment::GetType(), int, CRgbaColor::Interpolate(), IAlnGraphicDataSource::IsNegativeStrand(), len, CRgbaColor::Lighten(), CAlignGlyph::m_AlnMgr, CAlignmentConfig::m_CompactMode, CAlignGlyph::m_Config, CSeqGlyph::m_Context, CAlignGlyph::m_DisableTooltipsCaching, CAlignGlyph::m_FadeFactor, CAlignmentConfig::m_Insertion, max(), min(), row, CRenderingContext::ScreenToSeq(), and CRenderingContext::SeqToScreen().
Referenced by CAlignGlyph::DrawPWAlignElem().
◆ x_DrawInternalUnalignedRegions()Definition at line 505 of file alignment_glyph.cpp.
References IRender::ColorC(), IScoringAlignment::CreateSegmentIterator(), ctx, CRenderingContext::DrawStippledLine(), IAlnSegmentIterator::eAllSegments, IAlnExplorer::eLeft, COpenRange< Position >::Empty(), IAlnExplorer::eRight, IAlnSegment::fUnaligned, NStr::fWithCommas, IAlnSegment::GetAlnRange(), IScoringAlignment::GetAnchor(), CRange_Base::GetFrom(), GetGl(), CRenderingContext::GetGlPane(), COpenRange< Position >::GetLength(), IScoringAlignment::GetNumRows(), IAlnSegment::GetRange(), IScoringAlignment::GetSeqPosFromAlnPos(), CRange_Base::GetTo(), COpenRange< Position >::GetToOpen(), IAlnSegment::GetType(), CGlPane::GetViewport(), CRenderingContext::GetViewWidth(), i, CRenderingContext::IntersectVisible(), NStr::IntToString(), CAlignGlyph::m_AlnMgr, CAlignGlyph::m_Config, CSeqGlyph::m_Context, CAlignGlyph::m_DisableTooltipsCaching, CAlignGlyph::m_FadeFactor, CAlignmentConfig::m_Label, CAlignmentConfig::m_LabelFont, round(), row, CRenderingContext::ScreenToSeq(), CRange_Base::SetFrom(), swap(), IRender::TextHeight(), CRenderingContext::TextOut(), IRender::TextWidth(), and CGlRect< T >::Width().
Referenced by CAlignGlyph::x_DrawIntronsAndInternalUnalignedRegions().
◆ x_DrawIntronsAndInternalUnalignedRegions() ◆ x_DrawMultiAlign() void CAlignGlyph::x_DrawMultiAlign ( ) const privateDefinition at line 1436 of file alignment_glyph.cpp.
References IRender::Color4f(), IRender::ColorC(), CompressLength(), IScoringAlignment::CreateSegmentIterator(), IRender::Disable(), CRenderingContext::Draw3DQuad(), CRenderingContext::DrawLine(), CRenderingContext::DrawLine_NoAA(), CRenderingContext::DrawSelection(), IAlnSegmentIterator::eAllSegments, IAlnExplorer::eLeft, COpenRange< Position >::Empty(), CAlignmentConfig::ePos_Above, CAlignmentConfig::ePos_Side, IAlnExplorer::eRight, Error(), IAlnSegment::fIndel, IAlnGraphicDataSource::GetAlnPosFromSeqPos(), IAlnSegment::GetAlnRange(), IScoringAlignment::GetAnchor(), CAlignGlyph::GetBarHeight(), IScoringAlignment::GetBaseWidth(), CRange_Base::GetFrom(), GetGl(), COpenRange< Position >::GetLength(), CSeqGlyph::GetModelRect(), CException::GetMsg(), IScoringAlignment::GetNumRows(), IAlnSegment::GetRange(), IAlnGraphicDataSource::GetSeqAlnRange(), IScoringAlignment::GetSeqPosFromAlnPos(), IAlnGraphicDataSource::GetSeqStart(), IAlnGraphicDataSource::GetSeqStop(), CRange_Base::GetTo(), IAlnSegment::GetType(), COpenRange< Position >::IntersectionWith(), CRenderingContext::IntersectVisible(), CRenderingContext::IsFlippedStrand(), CRenderingContext::IsHorizontal(), IAlnGraphicDataSource::IsNegativeStrand(), CSeqGlyph::IsSelected(), ITERATE, kAlignRowSpace, kLabelSpace_v, len, IRender::LineWidth(), LOG_POST, CAlignGlyph::m_AlnMgr, CAlignGlyph::m_Config, CSeqGlyph::m_Context, CAlignGlyph::m_FadeFactor, CAlignmentConfig::m_FG, CAlignmentConfig::m_Insertion, CAlignmentConfig::m_LabelFont, CAlignmentConfig::m_LabelPos, CAlignGlyph::m_Score, CAlignmentConfig::m_SeqFont, CAlignmentConfig::m_SeqMismatch, CAlignmentConfig::m_Sequence, max(), row, CRenderingContext::ScreenToSeq(), COpenRange< Position >::Set(), swap(), IRender::TextHeight(), CRenderingContext::TextOut(), CGlRect< T >::Top(), Warning(), CRenderingContext::WillLabelFit(), CRenderingContext::WillSeqLetterFit(), CAlignGlyph::x_CalcIntervals(), CAlignGlyph::x_DrawAlignRowSequence(), CAlignGlyph::x_DrawMultiAlignLabel(), CAlignGlyph::x_GetOverrideColor(), CAlignGlyph::x_RenderAveragableScores(), CAlignGlyph::x_RenderNonAveragableScores(), CAlignGlyph::x_ShowLabel(), and CAlignGlyph::x_ShowScore().
Referenced by CAlignGlyph::x_Draw().
◆ x_DrawMultiAlignLabel() void CAlignGlyph::x_DrawMultiAlignLabel ( int row, TModelUnit y ) const privateDefinition at line 1632 of file alignment_glyph.cpp.
References IRender::ColorC(), CRenderingContext::DrawBackground(), CLabel::eContent, CAlignmentConfig::ePos_Above, IScoringAlignment::GetAnchor(), CRange_Base::GetFrom(), GetGl(), CLabel::GetLabel(), CSeqGlyph::GetLeft(), COpenRange< Position >::GetLength(), CRenderingContext::GetScope(), CRenderingContext::GetSelLabelColor(), IAlnGraphicDataSource::GetSeqId(), CRange_Base::GetTo(), CRenderingContext::IntersectVisible(), IAlnGraphicDataSource::IsNegativeStrand(), CSeqGlyph::IsSelected(), label, CAlignGlyph::m_AlnMgr, CAlignmentConfig::m_BG, CAlignGlyph::m_Config, CSeqGlyph::m_Context, CAlignGlyph::m_FadeFactor, CAlignmentConfig::m_Label, CAlignmentConfig::m_LabelFont, CAlignmentConfig::m_LabelPos, row, CRenderingContext::ScreenToSeq(), CRenderingContext::SeqToScreen(), IRender::TextHeight(), CRenderingContext::TextOut(), IRender::TextWidth(), and CGlTextureFont::Truncate().
Referenced by CAlignGlyph::x_DrawMultiAlign().
◆ x_DrawNonConsensusSpliceSites()Definition at line 850 of file alignment_glyph.cpp.
References IRender::ColorC(), ctx, CRenderingContext::DrawLine(), CSeq_align_Base::C_Segs::e_Spliced, eNa_strand_minus, CSpliced_exon_Base::GetAcceptor_before_exon(), CSplice_site_Base::GetBases(), CSpliced_exon_Base::GetDonor_after_exon(), CSpliced_seg_Base::GetExons(), CSpliced_exon_Base::GetGenomic_end(), CSpliced_exon_Base::GetGenomic_start(), GetGl(), CSpliced_seg::GetSeqStrand(), IsConsensusSplice(), CSpliced_exon_Base::IsSetAcceptor_before_exon(), CSpliced_exon_Base::IsSetDonor_after_exon(), ITERATE, kEmptyStr, IRender::LineWidth(), CAlignGlyph::m_Config, CSeqGlyph::m_Context, CAlignGlyph::m_FadeFactor, CAlignmentConfig::m_NonConsensus, CAlignGlyph::m_OrigAnchor, and CAlignGlyph::m_SeqAlign.
Referenced by CAlignGlyph::DrawPWAlignElem().
◆ x_DrawNoScoreAlign() ◆ x_DrawPWAlign() void CAlignGlyph::x_DrawPWAlign ( ) const privateDefinition at line 1372 of file alignment_glyph.cpp.
References IRender::ColorC(), CRenderingContext::DrawBackground(), CAlignGlyph::DrawPWAlignElem(), CLabel::eDefault, CAlignmentConfig::ePos_Above, CSeqGlyph::GetBottom(), CRange_Base::GetFrom(), GetGl(), CSeqGlyph::GetLeft(), COpenRange< Position >::GetLength(), CSeqGlyph::GetModelRect(), CSeqGlyph::GetRight(), CRenderingContext::GetSelLabelColor(), CAlignGlyph::GetTitle(), CRange_Base::GetTo(), CRenderingContext::IntersectVisible(), IAlnGraphicDataSource::IsNegativeStrand(), CSeqGlyph::IsSelected(), label, CAlignGlyph::m_AlnMgr, CAlignmentConfig::m_BG, CAlignGlyph::m_Config, CSeqGlyph::m_Context, CAlignGlyph::m_FadeFactor, CAlignmentConfig::m_FG, CAlignmentConfig::m_Label, CAlignmentConfig::m_LabelFont, CAlignmentConfig::m_LabelPos, CAlignmentConfig::m_SeqMismatch, CAlignmentConfig::m_Sequence, CRenderingContext::ScreenToSeq(), CRenderingContext::SeqToScreen(), IRender::TextHeight(), CRenderingContext::TextOut(), IRender::TextWidth(), CGlRect< T >::Top(), CGlTextureFont::Truncate(), and CAlignGlyph::x_ShowLabel().
Referenced by CAlignGlyph::x_Draw().
◆ x_DrawSimplified()Definition at line 932 of file alignment_glyph.cpp.
References color, IRender::ColorC(), ctx, CRenderingContext::Draw3DQuad(), CRenderingContext::DrawQuad(), CSeq_align::eScore_IdentityCount, CSeq_align::eScore_PercentIdentity, GetGl(), int, CRgbaColor::Interpolate(), IAlnGraphicDataSource::IsRegular(), CAlignGlyph::m_AlnMgr, CSeqGlyph::m_Context, CAlignGlyph::m_FadeFactor, CAlignGlyph::m_SeqAlign, CAlignGlyph::m_ShowScore, and CAlignGlyph::x_DrawStrandIndicators().
Referenced by CAlignGlyph::DrawPWAlignElem().
◆ x_DrawStrandIndicators()Definition at line 913 of file alignment_glyph.cpp.
References IRender::Color4f(), ctx, CRenderingContext::DrawGreaterLessSign(), CAlignmentConfig::eExtremeCompact, GetGl(), CAlignmentConfig::m_CompactMode, CAlignGlyph::m_Config, CSeqGlyph::m_Context, CAlignGlyph::m_FadeFactor, CRenderingContext::SeqToScreen(), and CRenderingContext::WillSeqLetterFit().
Referenced by CAlignGlyph::DrawPWAlignElem(), and CAlignGlyph::x_DrawSimplified().
◆ x_DrawTailGlyphs()Definition at line 615 of file alignment_glyph.cpp.
References IRender::ColorC(), ctx, CRenderingContext::DrawUnalignedTail(), CAlignGlyph::e3_Prime, CAlignGlyph::e5_Prime, CAlignmentConfig::eTails_ShowSequence, NStr::fWithCommas, IScoringAlignment::GetAnchor(), IAlnGraphicDataSource::GetBioseqHandle(), CRange_Base::GetFrom(), GetGl(), CRange_Base::GetTo(), COpenRange< Position >::GetToOpen(), IAlnGraphicDataSource::GetUnalignedTails(), NStr::IntToString(), CGuiObjectInfoSeq_align::IsPolyA(), kCompactLabelSpace_h, kCompactTailGlyphLen, kLabelSpace_h, kTailGlyphLen, CAlignGlyph::m_AlnMgr, CAlignGlyph::m_Config, CSeqGlyph::m_Context, CAlignGlyph::m_FadeFactor, CAlignmentConfig::m_Label, CAlignmentConfig::m_LabelFont, CAlignmentConfig::m_TailColor, CAlignmentConfig::m_UnalignedTailsMode, CRenderingContext::ScreenToSeq(), ncbi::grid::netcache::search::fields::size, IRender::TextHeight(), CRenderingContext::TextOut(), IRender::TextWidth(), CAlignGlyph::x_ConvertAlnTaillRngToSeqRng(), and CAlignGlyph::x_GetAlnTailRange().
Referenced by CAlignGlyph::DrawPWAlignElem(), and CAlignGlyph::x_DrawTailSequences().
◆ x_DrawTailSequences() ◆ x_DrawUnalignedBar()Definition at line 710 of file alignment_glyph.cpp.
References IRender::Color4d(), ctx, COpenRange< Position >::Empty(), CRgbaColor::GetBlue(), CRange_Base::GetFrom(), GetGl(), CRgbaColor::GetGreen(), CRgbaColor::GetRed(), CRenderingContext::GetScale(), CRange_Base::GetTo(), COpenRange< Position >::GetToOpen(), CRenderingContext::IntersectVisible(), CSeqGlyph::m_Context, CAlignGlyph::m_FadeFactor, IRender::PolygonMode(), IRender::PopMatrix(), IRender::PushMatrix(), IRender::Rectd(), IRender::Scalef(), CRenderingContext::SeqToScreenX(), and CAlignGlyph::x_GetAlnTailRange().
Referenced by CAlignGlyph::x_DrawTailSequences().
◆ x_DrawUnalignedRowSequence()Definition at line 733 of file alignment_glyph.cpp.
References IRender::ColorC(), CSeqManip::Complement(), ctx, CSeqUtil::e_Iupacaa, CSeqUtil::e_Iupacna, CBioseq_Handle::eCoding_Iupac, COpenRange< Position >::Empty(), CAlignGlyph::eOne2One, CAlignGlyph::eOne2Three, CAlignGlyph::eThree2One, CSeqTranslator::fDefault, IScoringAlignment::GetAnchor(), IAlnGraphicDataSource::GetBioseqHandle(), CRange_Base::GetFrom(), IAlnGraphicDataSource::GetGenCode(), GetGl(), CSeqVector::GetSeqData(), CBioseq_Handle::GetSeqVector(), CRange_Base::GetTo(), CRenderingContext::IntersectVisible(), CBioseq_Handle::IsAa(), CRenderingContext::IsFlippedStrand(), kPWAlignPackLevel, CAlignGlyph::m_AlnMgr, CAlignGlyph::m_Config, CSeqGlyph::m_Context, CAlignmentConfig::m_SeqFont, CSeqManip::Reverse(), CSeqManip::ReverseComplement(), CRenderingContext::ScreenToSeq(), CRange_Base::SetFrom(), CGenetic_code::SetId(), CRange_Base::SetTo(), swap(), IRender::TextHeight(), CRenderingContext::TextOut(), IRender::TextWidth(), CSeqTranslator::Translate(), CAlignGlyph::x_ConvertAlnTaillRngToSeqRng(), and CAlignGlyph::x_GetAlnTailRange().
Referenced by CAlignGlyph::DrawPWAlignElem().
◆ x_FilterNAIds() ◆ x_GetAllGIs() [1/2]get all GIs for a given uid this needs a given database where to search for GIs
Definition at line 1096 of file na_utils.cpp.
References xml::node::begin(), set< Key, Compare >::clear(), CNAUtils::EEDB_Undef, CSeqUtils::ELinkQuery(), ctll::empty(), map_checker< Container >::end(), xml::node::end(), Error(), CNAUtils::EUidsSource_Cache, CNAUtils::EUidsSource_Eutils, CNAUtils::EUidsSource_Mixed, map_checker< Container >::find(), xml::node::get_content(), xml::node::get_name(), xml::document::get_root_node(), CException::GetMsg(), set< Key, Compare >::insert(), xml::node::is_text(), ITERATE, LOG_POST, NCBI_ASSERT, s_EEDBToString(), s_MakeUidtoGiCacheKey(), CNAUtils::sm_UidtoGiCache, and ct::sort().
Referenced by CNAUtils::GetAllGIs(), CNAUtils::x_GetAllGIs(), and CNAUtils::x_NAIdMatchesGI().
◆ x_GetAllGIs() [2/2] ◆ x_GetAllNAIds() void CNAUtils::x_GetAllNAIds ( TEntrezIds & uids ) const privateget all available NA uids for a given gi.
Definition at line 804 of file na_utils.cpp.
References CStopWatch::AsSmartString(), CSeqUtils::ELinkQuery(), Error(), CTimeSpan::eSSP_Millisecond, first(), CException::GetMsg(), i, info, LOG_POST, CNAUtils::m_SeqDB, CNAUtils::m_SeqIdHandle, s_EEDBToString(), CStopWatch::Start(), CStopWatch::Stop(), and sw.
Referenced by CNAUtils::x_GetNAIds().
◆ x_GetAllNAIdsWithContext()get all available NA ids applied to a viewer context for a given gi.
Definition at line 831 of file na_utils.cpp.
References xml::node_set::begin(), context, count, CSeqUtils::ELinkQuery(), xml::node_set::empty(), Error(), CSeqUtils::ESearchQuery(), xml::node::get_content(), xml::document::get_root_node(), CException::GetMsg(), LOG_POST, CNAUtils::m_SeqDB, CNAUtils::m_SeqIdHandle, xml::node::run_xpath_query(), and s_EEDBToString().
Referenced by CNAUtils::x_GetNAIds().
◆ x_GetAlnTailRange() ◆ x_GetAnnotName() string CAlignmentSmear::x_GetAnnotName ( const objects::CSeq_annot & seq_annot ) staticprivateDefinition at line 462 of file alignment_smear.cpp.
References CUser_field_Base::CanGetData(), CUser_field_Base::CanGetLabel(), CUser_object_Base::CanGetType(), CUser_field_Base::C_Data::e_Bool, CUser_field_Base::C_Data::e_Int, CAnnotdesc_Base::e_Name, CObject_id_Base::e_Str, CAnnotdesc_Base::e_User, CUser_field_Base::C_Data::GetBool(), CUser_field_Base::GetData(), CUser_object_Base::GetData(), CUser_field_Base::GetLabel(), CAnnotdesc_Base::GetName(), CObject_id_Base::GetStr(), CUser_object_Base::GetType(), CAnnotdesc_Base::GetUser(), ITERATE, label, s_BlastFieldKey(), s_HistFieldKey(), CObject_id_Base::Which(), CUser_field_Base::C_Data::Which(), and CAnnotdesc_Base::Which().
Referenced by CAlignmentSmear::SeparateStrands().
◆ x_GetAssmIds_GI()get all assembly ids associated with a gi.
◆ x_GetNAAs() ◆ x_GetNAEntrezLinks()Retrieve Entrez links for a given NA.
Definition at line 1467 of file na_utils.cpp.
References xml::node_set::begin(), CSeqUtils::CreateIdStr(), data, CSeqUtils::ELinkQuery(), CAnnotMetaData::ELinksStatus_Absent, CAnnotMetaData::ELinksStatus_Present, xml::node_set::end(), Error(), xml::node::find(), xml::node::get_content(), xml::document::get_root_node(), CException::GetMsg(), LOG_POST, NON_CONST_ITERATE, and xml::node::run_xpath_query().
Referenced by CNAUtils::x_GetNAMetaData().
◆ x_GetNAId()get an id for a given NAA string returns false if no id is found
Definition at line 1262 of file na_utils.cpp.
References map_checker< Container >::end(), Error(), CNAUtils::EUidsSource_Cache, CNAUtils::EUidsSource_Eutils, CNAUtils::EUidsSource_Mixed, map_checker< Container >::find(), CException::GetMsg(), kRetMax, LOG_POST, NCBI_ASSERT, CEutilsClient::Search(), CEutilsClient::SetMaxReturn(), and CNAUtils::sm_NAAtoUidCache.
Referenced by CNAUtils::GetAllGIs(), and CNAUtils::x_SearchNAIds().
◆ x_GetNAIds() ◆ x_GetNAMetaData()Retrieve NA meta data for a list of NA uids.
Definition at line 883 of file na_utils.cpp.
References CStopWatch::AsSmartString(), data, CAnnotMetaData::ELinksStatus_Undef, CNAUtils::EMetaDataSource_Cache, CNAUtils::EMetaDataSource_EmptyRequest, CNAUtils::EMetaDataSource_Eutils, CNAUtils::EMetaDataSource_Mixed, map_checker< Container >::end(), NStr::Equal(), CTimeSpan::eSSP_Millisecond, map_checker< Container >::find(), first(), xml::node::get_content(), i, info, ITERATE, CNAUtils::m_MaxNAMeta, NON_CONST_ITERATE, NStr::NumericToString(), CNAUtils::sm_UidtoMetaDataCache, CStopWatch::Start(), CStopWatch::Stop(), sw, CNAUtils::x_GetNAEntrezLinks(), and CNAUtils::x_ParseNAMetaData().
Referenced by CNAUtils::GetAllNAMetaData(), and CNAUtils::GetNAMetaData().
◆ x_GetOverrideColor() void CAlignGlyph::x_GetOverrideColor ( bool & override_color, CRgbaColor & read_status_color ) const private ◆ x_GetTailLabelWidth() ◆ x_GetTailWidth()Definition at line 2564 of file alignment_glyph.cpp.
References CAlignmentConfig::eTails_ShowGlyph, CAlignmentConfig::eTails_ShowSequence, CAlignGlyph::GetBarHeight(), kCompactLabelSpace_h, kCompactTailGlyphLen, kLabelSpace_h, kTailGlyphLen, CAlignGlyph::m_Config, CSeqGlyph::m_Context, CAlignmentConfig::m_UnalignedTailsMode, CRenderingContext::ScreenToSeq(), and CAlignGlyph::x_GetTailLabelWidth().
Referenced by CAlignGlyph::x_UpdateBoundingBox().
◆ x_Init() void CNAUtils::x_Init ( void ) privateInitialize some internal states.
Definition at line 769 of file na_utils.cpp.
References CNAUtils::EEDB_Nucleotide, CNAUtils::EEDB_Protein, eGetId_ForceGi, CSeq_id_Handle::GetGi(), GetId(), kRetMax, CNAUtils::m_BioseqHandle, CNAUtils::m_Gi, CNAUtils::m_MaxNAMeta, CNAUtils::m_Scope, CNAUtils::m_SeqDB, CNAUtils::m_SeqIdHandle, CNAUtils::m_TargetSeq, and ZERO_GI.
Referenced by CNAUtils::CNAUtils().
◆ x_IsPWAlign() bool CAlignGlyph::x_IsPWAlign ( ) const inlineprivate ◆ x_IsSRA() bool CAlignGlyph::x_IsSRA ( ) const privateDefinition at line 2604 of file alignment_glyph.cpp.
References CSeq_id::AsFastaString(), eGetId_Canonical, IScoringAlignment::GetAnchor(), GetId(), CRenderingContext::GetScope(), IAlnGraphicDataSource::GetSeqId(), CSeq_id_Handle::GetSeqId(), CSeqUtils::IsVDBAccession(), CAlignGlyph::m_AlnMgr, CSeqGlyph::m_Context, and CAlignGlyph::m_OrigSeqAlign.
Referenced by CAlignGlyph::GetSignature().
◆ x_NAIdMatchesGI() ◆ x_ParseNAMetaData()Parse the meta-data xml DocSum.
Definition at line 1317 of file na_utils.cpp.
References data, CSeq_annot_Base::C_Data::e_Align, CSeq_annot_Base::C_Data::e_Ftable, CSeq_annot_Base::C_Data::e_Graph, CSeq_annot_Base::C_Data::e_Seq_table, set< Key, Compare >::end(), NStr::Equal(), set< Key, Compare >::find(), ftable, xml::document::get_root_node(), i, set< Key, Compare >::insert(), ITERATE, kEmptyStr, label, NULL, NStr::Replace(), and CSeq_annot_Base::C_Data::SelectionName().
Referenced by CNAUtils::x_GetNAMetaData().
◆ x_RenderAveragableScores()Definition at line 2214 of file alignment_glyph.cpp.
References abs, IRender::Begin(), color, IRender::Color4d(), IScoringAlignment::CreateSegmentIterator(), IAlnSegmentIterator::eAllSegments, IAlnExplorer::eBackwards, IAlnExplorer::eForward, COpenRange< Position >::Empty(), IRender::End(), IScoringMethod::fBackground, IAlnSegment::GetAlnRange(), IScoringAlignment::GetAnchor(), IAlnScoreIterator::GetAttr(), IScoringAlignment::GetBaseWidth(), IAlnScoreIterator::GetFrom(), CRange_Base::GetFrom(), GetGl(), CRenderingContext::GetGlPane(), CRenderingContext::GetScale(), CGlPane::GetScaleY(), IScoringAlignment::GetSeqPosFromAlnPos(), IAlnScoreIterator::GetTo(), CRange_Base::GetTo(), COpenRange< Position >::GetToOpen(), i, CRgbaColor::Interpolate(), IAlnSegment::IsAligned(), IAlnSegment::IsGap(), IAlnSegment::IsIndel(), len, IRender::LineWidth(), CAlignGlyph::m_AlnMgr, CAlignGlyph::m_Config, CSeqGlyph::m_Context, CAlignGlyph::m_FadeFactor, SScPix2::m_GapLen, SScPix2::m_GapScore, SScPix2::m_Init, CAlignmentConfig::m_Insertion, SScPix2::m_IntLen, SScPix2::m_IntScore, SScPix2::m_MinScore, CAlignGlyph::m_Score, max(), min(), IRender::PolygonMode(), IRender::PopMatrix(), IRender::PushMatrix(), r(), IRender::Rectd(), row, IRender::Scalef(), CRenderingContext::SeqToScreen(), CRenderingContext::SeqToScreenXInModelUnit(), CRange_Base::SetFrom(), CRange_Base::SetTo(), swap(), and IRender::Vertex2d().
Referenced by CAlignGlyph::DrawPWAlignElem(), and CAlignGlyph::x_DrawMultiAlign().
◆ x_RenderNonAveragableScores()Definition at line 2046 of file alignment_glyph.cpp.
References IRender::Begin(), color, IRender::ColorC(), IScoringAlignment::CreateSegmentIterator(), IRender::End(), IAlnSegmentIterator::eSkipGaps, IScoringMethod::fBackground, FSetPixMaxCoverage(), IAlnSegment::GetAlnRange(), IScoringAlignment::GetAnchor(), IAlnScoreIterator::GetAttr(), IScoringAlignment::GetBaseWidth(), IAlnScoreIterator::GetFrom(), CRange_Base::GetFrom(), GetGl(), CRenderingContext::GetScale(), IScoringAlignment::GetSeqPosFromAlnPos(), IAlnScoreIterator::GetTo(), COpenRange< Position >::GetToOpen(), i, IAlnSegment::IsGap(), CAlignGlyph::m_AlnMgr, CSeqGlyph::m_Context, CAlignGlyph::m_FadeFactor, SScPix::m_Gap, SScPix::m_MaxCoverage, CAlignGlyph::m_Score, SScPix::m_Score, IRender::PopMatrix(), IRender::PushMatrix(), r(), IRender::Rectd(), row, IRender::Scalef(), CRenderingContext::SeqToScreenX(), swap(), and IRender::Vertex2d().
Referenced by CAlignGlyph::DrawPWAlignElem(), and CAlignGlyph::x_DrawMultiAlign().
◆ x_SearchNAIds() ◆ x_ShowLabel() bool CAlignGlyph::x_ShowLabel ( ) const privateDefinition at line 2461 of file alignment_glyph.cpp.
References CAlignmentConfig::ePos_Above, CAlignmentConfig::ePos_NoLabel, CAlignGlyph::GetRange(), CRenderingContext::IntersectVisible(), CAlignGlyph::m_Config, CSeqGlyph::m_Context, CAlignmentConfig::m_LabelPos, CAlignmentConfig::m_ShowLabel, r(), and CRenderingContext::WillLabelFit().
Referenced by CAlignGlyph::x_DrawMultiAlign(), CAlignGlyph::x_DrawPWAlign(), and CAlignGlyph::x_UpdateBoundingBox().
◆ x_ShowScore() bool CAlignGlyph::x_ShowScore ( ) const private ◆ x_ShowUnalignedTails()Definition at line 2485 of file alignment_glyph.cpp.
References IAlnGraphicDataSource::ePolyA_No, CAlignmentConfig::eTails_Hide, IAlnGraphicDataSource::HasPolyATail(), CRenderingContext::IsOverviewMode(), kTailGlyphLen, CAlignGlyph::m_AlnMgr, CAlignGlyph::m_Config, CSeqGlyph::m_Context, CAlignGlyph::m_SeqAlign, CAlignmentConfig::m_ShowUnalignedTailsForTrans2GenomicAln, CAlignmentConfig::m_UnalignedTailsMode, and CAlignGlyph::x_IsPWAlign().
Referenced by CAlignGlyph::DrawPWAlignElem(), and CAlignGlyph::x_UpdateBoundingBox().
◆ x_UpdateBoundingBox() [1/2] void CAlignGlyph::x_UpdateBoundingBox ( ) protectedvirtualUpdate the bounding box assuming children's sizes are fixed if any.
Implements CSeqGlyph.
Definition at line 1270 of file alignment_glyph.cpp.
References CLabel::eContent, CLabel::eDefault, CAlignmentConfig::eNormal, CAlignmentConfig::ePos_Above, IScoringAlignment::GetAnchor(), CAlignGlyph::GetBarHeight(), IScoringAlignment::GetBaseWidth(), CRange_Base::GetFrom(), GetGl(), CSeqGlyph::GetHeight(), CLabel::GetLabel(), CSeqGlyph::GetLeft(), GetLength(), COpenRange< Position >::GetLength(), IScoringAlignment::GetNumRows(), CAlignGlyph::GetRange(), CRenderingContext::GetScope(), IAlnGraphicDataSource::GetSeqId(), CAlignGlyph::GetTitle(), IAlnGraphicDataSource::GetUnalignedTails(), CSeqGlyph::GetWidth(), IAlnGraphicDataSource::IsNegativeStrand(), CAlignGlyph::IsSimplified(), kAlignRowSpace, kLabelSpace_h, kLabelSpace_v, label, CAlignGlyph::m_AlnMgr, CAlignmentConfig::m_CompactMode, CAlignGlyph::m_Config, CSeqGlyph::m_Context, CAlignGlyph::m_Intervals, CAlignmentConfig::m_LabelFont, CAlignmentConfig::m_LabelPos, max(), row, CRenderingContext::ScreenToSeq(), CRenderingContext::SeqToScreen(), CSeqGlyph::SetHeight(), CSeqGlyph::SetLeft(), CSeqGlyph::SetWidth(), IRender::TextHeight(), IRender::TextWidth(), CAlignGlyph::x_CalcIntervals(), CAlignGlyph::x_GetTailWidth(), CAlignGlyph::x_IsPWAlign(), CAlignGlyph::x_ShowLabel(), and CAlignGlyph::x_ShowUnalignedTails().
◆ x_UpdateBoundingBox() [2/2] void CSwitchPointGlyph::x_UpdateBoundingBox ( ) protectedvirtual ◆ ~INonAsnDataRegistry() virtual INonAsnDataRegistry::~INonAsnDataRegistry ( ) inlinevirtualDefinition at line 99 of file nonasn_track_data.hpp.
◆ ~INonAsnDataSource() ◆ ~INonAsnTrackData() ◆ ~INonAsnTrackDataFactory() virtual INonAsnTrackDataFactory::~INonAsnTrackDataFactory ( ) inlinevirtualDefinition at line 83 of file nonasn_track_data.hpp.
◆ ~ISeqTaskProgressCallback() virtual ISeqTaskProgressCallback::~ISeqTaskProgressCallback ( ) inlinevirtualDefinition at line 116 of file utils.hpp.
◆ aln_range ◆ bar_h ◆ base_width_anchor ◆ base_width_curr ◆ center_y ◆ column int CLayoutFeatLabel::column private ◆ f ◆ half ◆ kCoverageStr ◆ m_AccumGap TGapMap CAlignmentSmear::m_AccumGap private ◆ m_AccumSeg TSegMap CAlignmentSmear::m_AccumSeg private ◆ m_AlnMgrpointer to the actual alignment information.
Definition at line 217 of file alignment_glyph.hpp.
Referenced by CAlignGlyph::CAlignGlyph(), CAlignGlyph::DrawPWAlignElem(), CAlignGlyph::GetAlignMgr(), CAlignGlyph::GetAlnAnchorPair(), CAlignGlyph::GetHTMLActiveAreas(), CAlignGlyph::GetSignature(), CAlignGlyph::GetTitle(), CAlignGlyph::GetTooltip(), CAlignGlyph::IsNegative(), CAlignGlyph::IsSimplified(), CAlignGlyph::LessBySeqPos(), CAlignGlyph::x_CalcIntervals(), CAlignGlyph::x_ConvertAlnTaillRngToSeqRng(), CAlignGlyph::x_DrawAlignRowSequence(), CAlignGlyph::x_DrawGaps(), CAlignGlyph::x_DrawInserts(), CAlignGlyph::x_DrawInternalUnalignedRegions(), CAlignGlyph::x_DrawMultiAlign(), CAlignGlyph::x_DrawMultiAlignLabel(), CAlignGlyph::x_DrawPWAlign(), CAlignGlyph::x_DrawSimplified(), CAlignGlyph::x_DrawTailGlyphs(), CAlignGlyph::x_DrawTailSequences(), CAlignGlyph::x_DrawUnalignedRowSequence(), CAlignGlyph::x_IsPWAlign(), CAlignGlyph::x_IsSRA(), CAlignGlyph::x_RenderAveragableScores(), CAlignGlyph::x_RenderNonAveragableScores(), CAlignGlyph::x_ShowUnalignedTails(), and CAlignGlyph::x_UpdateBoundingBox().
◆ m_AnnotChain ◆ m_AnnotType [1/2] string CTrackInfo::m_AnnotTypeannot type, such as ftable, seq-table, align
Definition at line 70 of file annot_info.hpp.
◆ m_AnnotType [2/2] string CAnnotMetaData::m_AnnotType ◆ m_AssmAcc string CAnnotMetaData::m_AssmAcc ◆ m_BioseqHandle [1/2] const objects::CBioseq_Handle& CAlignmentSmear::m_BioseqHandle private ◆ m_BioseqHandle [2/2] objects::CBioseq_Handle CNAUtils::m_BioseqHandle private ◆ m_Children ◆ m_CntAligns ◆ m_CntMixes ◆ m_ConfigDefinition at line 228 of file alignment_glyph.hpp.
Referenced by CAlignGlyph::DrawPWAlignElem(), CAlignGlyph::GetBarHeight(), CAlignGlyph::SetConfig(), CAlignGlyph::x_DrawAlignRowSequence(), CAlignGlyph::x_DrawGaps(), CAlignGlyph::x_DrawInserts(), CAlignGlyph::x_DrawInternalUnalignedRegions(), CAlignGlyph::x_DrawMultiAlign(), CAlignGlyph::x_DrawMultiAlignLabel(), CAlignGlyph::x_DrawNonConsensusSpliceSites(), CAlignGlyph::x_DrawPWAlign(), CAlignGlyph::x_DrawStrandIndicators(), CAlignGlyph::x_DrawTailGlyphs(), CAlignGlyph::x_DrawTailSequences(), CAlignGlyph::x_DrawUnalignedRowSequence(), CAlignGlyph::x_GetTailLabelWidth(), CAlignGlyph::x_GetTailWidth(), CAlignGlyph::x_RenderAveragableScores(), CAlignGlyph::x_ShowLabel(), CAlignGlyph::x_ShowUnalignedTails(), and CAlignGlyph::x_UpdateBoundingBox().
◆ m_DataIddata indentifier.
Different data source may have different data id format. For example, for SADB, it will be NA accession. For ID or other user local data, it will be just annotation name. And for cSRA, it will be just cSRA file path.
Definition at line 66 of file annot_info.hpp.
◆ m_Dbnamedata source such as ID, SADB, cSRA and SRA
Definition at line 67 of file annot_info.hpp.
◆ m_Descr [1/2] ◆ m_Descr [2/2] string CAnnotMetaData::m_Descr ◆ m_DisableTooltipsCaching bool CAlignGlyph::m_DisableTooltipsCaching mutableprotected ◆ m_FadeFactor float CAlignGlyph::m_FadeFactor mutableprotectedDefinition at line 241 of file alignment_glyph.hpp.
Referenced by CAlignGlyph::ApplyFading(), CAlignGlyph::DrawPWAlignElem(), CAlignGlyph::x_Draw(), CAlignGlyph::x_DrawAlignRowSequence(), CAlignGlyph::x_DrawGaps(), CAlignGlyph::x_DrawInserts(), CAlignGlyph::x_DrawInternalUnalignedRegions(), CAlignGlyph::x_DrawMultiAlign(), CAlignGlyph::x_DrawMultiAlignLabel(), CAlignGlyph::x_DrawNonConsensusSpliceSites(), CAlignGlyph::x_DrawNoScoreAlign(), CAlignGlyph::x_DrawPWAlign(), CAlignGlyph::x_DrawSimplified(), CAlignGlyph::x_DrawStrandIndicators(), CAlignGlyph::x_DrawTailGlyphs(), CAlignGlyph::x_DrawTailSequences(), CAlignGlyph::x_DrawUnalignedBar(), CAlignGlyph::x_GetOverrideColor(), CAlignGlyph::x_RenderAveragableScores(), and CAlignGlyph::x_RenderNonAveragableScores().
◆ m_Feat objects::CMappedFeat CLinkedFeature::m_Feat privateDefinition at line 100 of file utils.hpp.
◆ m_Filter ◆ m_Gi ◆ m_Group ◆ m_Idannotation id. It may only apply to NAs from SADB
Definition at line 101 of file annot_info.hpp.
◆ m_Intervals [1/2] ◆ m_Intervals [2/2] vector<TSeqRange> CSwitchPointGlyph::m_Intervals protected ◆ m_Label string CAlignmentSmear::m_Label private ◆ m_Links ◆ m_LinksStatus ◆ m_Location [1/3] CRef<objects::CSeq_loc> CLayoutFeatLabel::m_Location private ◆ m_Location [2/3] CRef<objects::CSeq_loc> CAlignGlyph::m_Location protected ◆ m_Location [3/3] CRef<objects::CSeq_loc> CSwitchPointGlyph::m_Location protected ◆ m_Mapper ◆ m_MapPoint CRef<objects::CSeqMapSwitchPoint> CSwitchPointGlyph::m_MapPoint protected ◆ m_MaxNAMeta int CNAUtils::m_MaxNAMeta private ◆ m_Name ◆ m_Order ◆ m_OrigAnchor int CAlignGlyph::m_OrigAnchor protected ◆ m_OrigSeqAlign objects::CSeq_align_Handle CAlignGlyph::m_OrigSeqAlign protected ◆ m_OtherName ◆ m_Scope [1/2] string CAnnotMetaData::m_Scope ◆ m_Scope [2/2] CRef<objects::CScope> CNAUtils::m_Scope private ◆ m_Score ◆ m_SeqAlign CConstRef<objects::CSeq_align> CAlignGlyph::m_SeqAlign protected ◆ m_SeqDB ◆ m_SeqIdHandle objects::CSeq_id_Handle CNAUtils::m_SeqIdHandle private ◆ m_SettingGroup ◆ m_Show ◆ m_Shown bool CAnnotMetaData::m_Shown ◆ m_ShowScore bool CAlignGlyph::m_ShowScore protected ◆ m_Spec ◆ m_StrandType ◆ m_SubCategory string CAnnotMetaData::m_SubCategory ◆ m_Subgroup ◆ m_Subtype ◆ m_Subtypes ◆ m_TargetSeq CConstRef<objects::CSeq_id> CNAUtils::m_TargetSeq privateThe target sequence associating with the NAAs.
This is optional. If it is set, we only look at the NAAs associated with the target sequence. If it is not set, all requested/found NAAs will be returned. However, the target sequence may be ignored for some cases, such as searching meta-data for a speicfic NA.
Definition at line 305 of file na_utils.hpp.
Referenced by CNAUtils::GetNATrackInfo(), CNAUtils::x_Init(), and CNAUtils::x_NAIdMatchesGI().
◆ m_Title [1/2] ◆ m_Title [2/2] string CAnnotMetaData::m_Title ◆ m_TrackId ◆ m_xClass string CAnnotMetaData::m_xClass ◆ override_color ◆ read_status_color ◆ reverse_strand ◆ seq_range ◆ sm_NAAtoUidCache ◆ sm_UidtoGiCache ◆ sm_UidtoMetaDataCache ◆ t ◆ tail_3 ◆ tail_5 ◆ whole_range ◆ yyRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4