NCBI C++ ToolKit
|
#include <ncbi_pch.hpp>
#include <serial/enumvalues.hpp>
#include <gui/objutils/label.hpp>
#include <gui/objutils/user_type.hpp>
#include <gui/objutils/taxid_sel_set.hpp>
#include <gui/objutils/tooltip.hpp>
#include <gui/objutils/snp_gui.hpp>
#include <gui/utils/string_utils.hpp>
#include <map>
#include <corelib/ncbimtx.hpp>
#include <util/static_map.hpp>
#include <objects/seq/Bioseq.hpp>
#include <objects/seq/Seq_annot.hpp>
#include <objects/seq/Annot_descr.hpp>
#include <objects/seq/Annotdesc.hpp>
#include <objects/seq/Seq_descr.hpp>
#include <objects/seq/Seqdesc.hpp>
#include <objects/seqalign/Seq_align.hpp>
#include <objects/seqalign/Seq_align_set.hpp>
#include <objects/seqalign/Score.hpp>
#include <objects/seqalign/Dense_seg.hpp>
#include <objects/seqalign/Spliced_seg.hpp>
#include <objects/seqfeat/Gene_ref.hpp>
#include <objects/seqfeat/Gb_qual.hpp>
#include <objects/seqfeat/BioSource.hpp>
#include <objects/seqfeat/Org_ref.hpp>
#include <objects/seqfeat/Imp_feat.hpp>
#include <objects/seqfeat/Variation_ref.hpp>
#include <objects/seqfeat/Variation_inst.hpp>
#include <objects/seqfeat/Delta_item.hpp>
#include <objects/seqfeat/Clone_ref.hpp>
#include <objects/seqfeat/Clone_seq_set.hpp>
#include <objects/seqfeat/Clone_seq.hpp>
#include <objects/seqfeat/VariantProperties.hpp>
#include <objects/seqfeat/Phenotype.hpp>
#include <objects/seqfeat/SubSource.hpp>
#include <objects/seq/Seq_literal.hpp>
#include <objects/seqloc/Seq_id.hpp>
#include <objects/seqloc/Seq_loc.hpp>
#include <objects/seqloc/Seq_interval.hpp>
#include <objects/seqloc/Seq_point.hpp>
#include <objects/seqset/Seq_entry.hpp>
#include <objects/seqset/Bioseq_set.hpp>
#include <objects/general/User_object.hpp>
#include <objects/general/User_field.hpp>
#include <objects/general/Dbtag.hpp>
#include <objects/general/Object_id.hpp>
#include <objects/valerr/ValidError.hpp>
#include <objects/valerr/ValidErrItem.hpp>
#include <objects/biotree/BioTreeContainer.hpp>
#include <objects/biotree/DistanceMatrix.hpp>
#include <objects/genomecoll/GC_AssemblyDesc.hpp>
#include <objects/entrezgene/Entrezgene.hpp>
#include <objects/entrezgene/Entrezgene_Set.hpp>
#include <objects/variation/Variation.hpp>
#include <objects/gbproj/GBProject_ver2.hpp>
#include <objects/gbproj/ProjectDescr.hpp>
#include <objects/gbproj/ProjectFolder.hpp>
#include <objects/gbproj/ProjectItem.hpp>
#include <objmgr/util/sequence.hpp>
#include <objmgr/util/create_defline.hpp>
#include <objmgr/bioseq_set_handle.hpp>
#include <objmgr/align_ci.hpp>
#include <serial/iterator.hpp>
#include <algo/align/util/score_builder.hpp>
#include <objtools/snputil/snp_bitfield.hpp>
#include <objtools/snputil/snp_utils.hpp>
Go to the source code of this file.
Go to the SVN repository for this file.
Variables | |
static std::unique_ptr< CLabelDescriptionCacheImpl > | s_DescrCachePtr |
static CFastMutex | s_DFLock |
static sequence::CDeflineGenerator | s_DefGen |
This class seems to be non-thread safe even as a stack var. More... | |
static SForceRegister | sm_ForceRegistration |
DEFINE_STATIC_MUTEX | ( | sm_Mutex | ) |
|
static |
Definition at line 700 of file label.cpp.
References CSeq_id_Base::e_not_set, CSeq_loc_CI::eEmpty_Allow, CScope::eGetBioseq_All, GetId(), i, and IsSameBioseq().
Referenced by s_GetLabel().
|
static |
Definition at line 2428 of file label.cpp.
References CSeq_align_Base::C_Segs::e_Disc, CSeq_align_Base::C_Segs::e_Spliced, CSeq_align_set_Base::Get(), CSeq_align_Base::C_Segs::GetDisc(), CSpliced_seg_Base::GetExons(), CSeq_align_Base::GetSegs(), CSeq_align_Base::C_Segs::GetSpliced(), and CSeq_align_Base::C_Segs::Which().
Referenced by s_GetAlignmentTooltip().
|
static |
Definition at line 2332 of file label.cpp.
References CSpliced_seg_Base::CanGetGenomic_id(), CSpliced_seg_Base::CanGetProduct_id(), CSeq_align_Base::C_Segs::e_Dendiag, CSeq_align_Base::C_Segs::e_Denseg, CSeq_align_Base::C_Segs::e_Disc, CSeq_align_Base::C_Segs::e_not_set, CSeq_align_Base::C_Segs::e_Packed, CSeq_align_Base::C_Segs::e_Sparse, CSeq_align_Base::C_Segs::e_Spliced, CSeq_align_Base::C_Segs::e_Std, CLabel::eContent, NStr::fWithCommas, CSeq_align_Base::C_Segs::GetDenseg(), CSpliced_seg_Base::GetGenomic_id(), CSeq_id_Handle::GetHandle(), CDense_seg_Base::GetIds(), CSpliced_seg_Base::GetProduct_id(), CSeq_align_Base::GetSegs(), CSeq_id_Handle::GetSeqId(), CSeq_align_Base::C_Segs::GetSpliced(), set< Key, Compare >::insert(), ITERATE, label, s_GetSeqLabel(), set< Key, Compare >::size(), NStr::SizetToString(), str(), and CSeq_align_Base::C_Segs::Which().
Referenced by CSeq_alignHandler::GetLabel(), s_GetAlignmentTooltip(), and s_GetAnnotContent().
|
static |
Definition at line 2444 of file label.cpp.
References buf, CSeq_align::CheckNumRows(), count, NStr::DoubleToString(), CSeq_align_Base::C_Segs::e_Dendiag, CSeq_align_Base::C_Segs::e_Denseg, CSeq_align_Base::C_Segs::e_Disc, CSeq_align_Base::C_Segs::e_not_set, CSeq_align_Base::C_Segs::e_Packed, CSeq_align_Base::C_Segs::e_Std, CLabel::eContent, CSeq_id::eContent, eGetId_Best, eNa_strand_plus, CSeq_align::eScore_IdentityCount, CSeq_align::eScore_MismatchCount, CSeq_align::eScore_PercentCoverage, CSeq_align::eScore_PercentIdentity, NStr::fWithCommas, CSeq_align_set_Base::Get(), CScoreBuilderBase::GetAlignLength(), CDbtag_Base::GetDb(), CSeq_align_Base::C_Segs::GetDenseg(), CSeq_align_Base::C_Segs::GetDisc(), CScoreBuilderBase::GetGapCount(), CSeq_id_Base::GetGeneral(), CSeq_id_Handle::GetHandle(), GetId(), CObject_id_Base::GetId(), CScore_Base::GetId(), CDense_seg_Base::GetIds(), CScore_Base::C_Value::GetInt(), CSeq_id::GetLabel(), CScoreBuilderBase::GetMismatchCount(), CSeq_align::GetNamedScore(), CScoreBuilderBase::GetPercentCoverage(), CScore_Base::C_Value::GetReal(), CSeq_align_Base::GetScore(), CSeq_align_Base::GetSegs(), CSeq_align::GetSeq_id(), CSeq_id_Handle::GetSeqId(), CSeq_id_Handle::GetSeqIdOrNull(), CDense_seg::GetSeqRange(), CSeq_align::GetSeqRange(), CSeq_align::GetSeqStrand(), CObject_id_Base::GetStr(), CScore_Base::GetValue(), i, NStr::IntToString(), CSeq_id_Base::IsGeneral(), CObject_id_Base::IsId(), CScore_Base::C_Value::IsReal(), CScore_Base::IsSetId(), CSeq_align_Base::IsSetScore(), ITERATE, label, compile_time_bits::range(), s_CountSegments(), s_GetAlignmentContent(), s_GetSeqLabel(), NStr::SizetToString(), str(), and CSeq_align_Base::C_Segs::Which().
Referenced by CSeq_alignHandler::GetLabel().
|
static |
Definition at line 2306 of file label.cpp.
References CSeq_align_Base::C_Segs::e_Dendiag, CSeq_align_Base::C_Segs::e_Denseg, CSeq_align_Base::C_Segs::e_Disc, CSeq_align_Base::C_Segs::e_not_set, CSeq_align_Base::C_Segs::e_Packed, CSeq_align_Base::C_Segs::e_Std, CSeq_align_Base::GetSegs(), label, and CSeq_align_Base::C_Segs::Which().
Referenced by CSeq_alignHandler::GetLabel().
|
static |
Definition at line 2817 of file label.cpp.
References 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_Ids, CSeq_annot_Base::C_Data::e_Locs, CAnnotdesc_Base::e_Name, CAnnotdesc_Base::e_Title, eGetId_Best, eGetId_Canonical, CAnnot_descr_Base::Get(), CSeq_annot_Base::C_Data::GetAlign(), CSeq_annot_Base::GetData(), CSeq_annot_Base::GetDesc(), CSeq_annot_Base::C_Data::GetFtable(), CSeq_annot_Base::C_Data::GetGraph(), GetId(), CSeq_annot_Base::C_Data::GetIds(), CSeq_annot_Base::C_Data::GetLocs(), CSeq_id_Handle::GetSeqId(), CSeq_id::GetSeqIdString(), CSeq_annot_Base::IsSetDesc(), ITERATE, label, NULL, s_GetAlignmentContent(), NStr::SizetToString(), str(), and CSeq_annot_Base::C_Data::Which().
Referenced by CSeq_annotHandler::GetLabel().
|
static |
Definition at line 2787 of file label.cpp.
References 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_Ids, CSeq_annot_Base::C_Data::e_Locs, CSeq_annot_Base::GetData(), label, and CSeq_annot_Base::C_Data::Which().
Referenced by CSeq_annotHandler::GetLabel().
|
static |
Definition at line 1148 of file label.cpp.
References CBioseq_set_Base::eClass_eco_set, CBioseq_set_Base::eClass_gen_prod_set, CBioseq_set_Base::eClass_genbank, CBioseq_set_Base::eClass_mut_set, CBioseq_set_Base::eClass_nuc_prot, CBioseq_set_Base::eClass_phy_set, CBioseq_set_Base::eClass_pop_set, CBioseq_set_Base::eClass_segset, CLabel::eContent, CBioseq_set::eContent, CBioseq_set_Base::GetClass(), CLabel::GetLabel(), CBioseq_set::GetLabel(), CBioseq_set_Base::GetSeq_set(), label, s_GetGenProdContent(), s_GetIdLabel(), s_GetNucProtContent(), and s_GetSegsetContent().
Referenced by CBioseq_setHandler::GetLabel().
|
static |
Definition at line 1021 of file label.cpp.
References DEFINE_STATIC_ARRAY_MAP, CBioseq_set_Base::eClass_conset, CBioseq_set_Base::eClass_eco_set, CBioseq_set_Base::eClass_equiv, CBioseq_set_Base::eClass_gen_prod_set, CBioseq_set_Base::eClass_genbank, CBioseq_set_Base::eClass_gi, CBioseq_set_Base::eClass_gibb, CBioseq_set_Base::eClass_mut_set, CBioseq_set_Base::eClass_not_set, CBioseq_set_Base::eClass_nuc_prot, CBioseq_set_Base::eClass_other, CBioseq_set_Base::eClass_parts, CBioseq_set_Base::eClass_pdb_entry, CBioseq_set_Base::eClass_phy_set, CBioseq_set_Base::eClass_pir, CBioseq_set_Base::eClass_pop_set, CBioseq_set_Base::eClass_pub_set, CBioseq_set_Base::eClass_segset, CBioseq_set_Base::eClass_swissprot, CBioseq_set_Base::eClass_wgs_set, ENUM_METHOD_NAME, CBioseq_set_Base::GetClass(), i, and label.
Referenced by CBioseq_setHandler::GetLabel().
Definition at line 430 of file label.cpp.
References CSeq_id::eBoth, CSeq_id::fLabel_Default, label, s_DescrCachePtr, s_GetDefline(), s_GetGi(), and ZERO_GI.
Referenced by s_GetSeqLabel().
Definition at line 1384 of file label.cpp.
References NStr::StringToInt().
Referenced by CSeq_featHandler::GetLabel().
Definition at line 416 of file label.cpp.
References CScope::GetBioseqHandle(), label, s_DefGen, and s_DFLock.
Referenced by CLabelDescriptionCache::CacheSeqId(), and s_GetCachedDescription().
|
static |
Definition at line 1138 of file label.cpp.
References _ASSERT, CBioseq_set_Base::eClass_gen_prod_set, CLabel::eContent, CBioseq_set_Base::GetClass(), CBioseq_set::GetGenomicFromGenProdSet(), CLabel::GetLabel(), and label.
Referenced by s_GetBioseq_setContent().
Definition at line 387 of file label.cpp.
References eGetId_ForceGi, CSeq_id_Handle::GetGi(), GetId(), and ZERO_GI.
Referenced by CLabelDescriptionCache::CacheSeqId(), s_GetCachedDescription(), and s_GetSeqLabel().
|
static |
Definition at line 1057 of file label.cpp.
References CBioseq_set_Base::eClass_nuc_prot, CBioseq_set_Base::eClass_segset, CLabel::eContent, FindBestChoice(), CTextseq_id_Base::GetAccession(), CBioseq_set_Base::GetClass(), CBioseq_Base::GetId(), CLabel::GetLabel(), CSeq_id_Base::GetLocal(), CBioseq_set::GetMasterFromSegSet(), CBioseq_set::GetNucFromNucProtSet(), CBioseq_set_Base::GetSeq_set(), CSeq_id_Base::IsLocal(), CTextseq_id_Base::IsSetAccession(), CObject_id_Base::IsStr(), ITERATE, label, NULL, CSeq_id::Score(), and ct::sort().
Referenced by s_GetBioseq_setContent().
|
inlinestatic |
Definition at line 731 of file label.cpp.
References CSeq_loc_Base::e_Int, CSeq_loc_Base::e_Mix, CSeq_loc_Base::e_Null, CSeq_loc_Base::e_Packed_int, CSeq_loc_Base::e_Packed_pnt, CSeq_loc_Base::e_Pnt, CSeq_loc_Base::e_Whole, CLabel::eDescription, CLabel::eDescriptionBrief, CLabel::eType, CLabel::eUserSubtype, CLabel::eUserType, NStr::fWithCommas, CPacked_seqint_Base::Get(), CSeq_loc_mix_Base::Get(), CSeq_interval_Base::GetId(), CSeq_point_Base::GetId(), CSeq_loc_Base::GetInt(), CSeq_loc::GetLabel(), CSeq_loc_Base::GetMix(), CTypeInfo::GetName(), CSeq_loc_Base::GetPacked_int(), CSeq_loc_Base::GetPacked_pnt(), CSeq_loc_Base::GetPnt(), CSeq_point_Base::GetPoint(), CPacked_seqpnt_Base::GetPoints(), CSerialObject::GetThisTypeInfo(), CSeq_loc_Base::GetWhole(), i, NStr::IntToString(), IsOneBioseq(), ITERATE, label, CSeq_id::Match(), NULL, s_BreakSeq_loc(), s_GetSeq_intervalLabel(), s_GetSeq_TotalRangeLabel(), s_GetSeqLabel(), CGUIUserType::sm_Tp_Location, str(), and CSeq_loc_Base::Which().
Referenced by CSeq_locHandler::GetLabel().
|
static |
Definition at line 1117 of file label.cpp.
References _ASSERT, CBioseq_set_Base::eClass_nuc_prot, CLabel::eContent, CBioseq_set_Base::GetClass(), CLabel::GetLabel(), CBioseq_set::GetNucFromNucProtSet(), and label.
Referenced by s_GetBioseq_setContent().
|
static |
Definition at line 1128 of file label.cpp.
References _ASSERT, CBioseq_set_Base::eClass_segset, CLabel::eContent, CBioseq_set_Base::GetClass(), CLabel::GetLabel(), CBioseq_set::GetMasterFromSegSet(), and label.
Referenced by s_GetBioseq_setContent().
|
inlinestatic |
Definition at line 558 of file label.cpp.
References CLabel::eContent, eNa_strand_minus, eNa_strand_plus, CLabel::eType, CLabel::eUserSubtype, CLabel::eUserType, CLabel::eUserTypeAndContent, NStr::fWithCommas, CSeq_interval_Base::GetFrom(), CSeq_interval_Base::GetId(), CSeq_interval::GetLength(), CTypeInfo::GetName(), CSeq_interval_Base::GetStrand(), CSerialObject::GetThisTypeInfo(), CSeq_interval_Base::GetTo(), NStr::IntToString(), CSeq_interval_Base::IsSetStrand(), label, CSeq_id::Match(), and s_GetSeqLabel().
Referenced by s_GetLabel().
|
inlinestatic |
Definition at line 610 of file label.cpp.
References CSeq_loc_Base::e_Int, CSeq_loc_Base::e_Mix, CSeq_loc_Base::e_Packed_int, CSeq_loc_Base::e_Packed_pnt, CLabel::eContent, eNa_strand_minus, eNa_strand_plus, eNa_strand_unknown, CLabel::eType, CLabel::eUserSubtype, CLabel::eUserType, CLabel::eUserTypeAndContent, NStr::fWithCommas, CPacked_seqint_Base::Get(), CSeq_loc_mix_Base::Get(), GetId(), CSeq_loc_Base::GetMix(), CTypeInfo::GetName(), CSeq_loc_Base::GetPacked_int(), CSeq_loc_Base::GetPacked_pnt(), CPacked_seqpnt_Base::GetPoints(), GetStrand(), CSerialObject::GetThisTypeInfo(), CSeq_loc::GetTotalRange(), NStr::IntToString(), kEmptyStr, label, compile_time_bits::range(), s_GetSeqLabel(), NStr::SizetToString(), CGUIUserType::sm_Tp_Location, and CSeq_loc_Base::Which().
Referenced by CSeq_featHandler::GetLabel(), and s_GetLabel().
|
inlinestatic |
Definition at line 492 of file label.cpp.
References CSeq_id::eBoth, CLabel::eContent, CSeq_id::eContent, CLabel::eDescription, CLabel::eDescriptionBrief, eGetId_Best, CLabel::eGi, CLabel::eType, CLabel::eUserSubtype, CLabel::eUserType, CLabel::eUserTypeAndContent, CSeq_id::fAcc_nuc, CSeq_id::fAcc_prot, CSeq_id::fLabel_Default, GetId(), CSeq_id::GetLabel(), CTypeInfo::GetName(), CSeq_id_Handle::GetSeqId(), CSeq_id::GetSeqIdString(), CSerialObject::GetThisTypeInfo(), CSeq_id::IdentifyAccession(), info, CSeq_id_Base::IsGi(), label, NStr::NumericToString(), s_GetCachedDescription(), s_GetGi(), CGUIUserType::sm_SbTp_DNA, CGUIUserType::sm_SbTp_Protein, CGUIUserType::sm_Tp_Sequence_ID, and ZERO_GI.
Referenced by CSeq_idHandler::GetLabel(), CSeq_featHandler::GetLabel(), s_GetAlignmentContent(), s_GetAlignmentTooltip(), s_GetLabel(), s_GetSeq_intervalLabel(), and s_GetSeq_TotalRangeLabel().
|
static |
Definition at line 1185 of file label.cpp.
References CScope::GetBioseq_setHandle(), CAnnotTypes_CI::GetSize(), CBioseq_set_Handle::GetTopLevelEntry(), SAnnotSelector::SetLimitTSE(), and SAnnotSelector::SetMaxSize().
Referenced by CBioseq_setHandler::GetLabel().
|
static |
Definition at line 1411 of file label.cpp.
References CVariation_ref_Base::eMethod_E_maph, CVariation_ref_Base::eMethod_E_mcd_analysis, CVariation_ref_Base::eMethod_E_optical_mapping, CVariation_ref_Base::eMethod_E_sequencing, CVariation_ref_Base::eMethod_E_unknown, and ITERATE.
Referenced by CSeq_featHandler::GetLabel().
|
static |
Definition at line 1398 of file label.cpp.
References CVariation_ref_Base::CanGetConsequence(), CVariation_ref_Base::GetConsequence(), and ITERATE.
Referenced by CSeq_featHandler::GetLabel().
USING_SCOPE | ( | objects | ) |
|
static |
This class seems to be non-thread safe even as a stack var.
Definition at line 413 of file label.cpp.
Referenced by s_GetDefline().
|
static |
Definition at line 370 of file label.cpp.
Referenced by CLabelDescriptionCache::AddCaches(), CLabelDescriptionCache::CacheSeqId(), CLabelDescriptionCache::InitCache(), s_GetCachedDescription(), and CLabelDescriptionCache::StopCache().
|
static |
Definition at line 412 of file label.cpp.
Referenced by s_GetDefline().
|
static |