NCBI C++ ToolKit
Classes | Macros | Typedefs | Functions | Variables
feature_item.cpp File Reference
#include <ncbi_pch.hpp>
#include <corelib/ncbistd.hpp>
#include <serial/iterator.hpp>
#include <serial/enumvalues.hpp>
#include <algorithm>
#include <sstream>
#include <objects/seq/Bioseq.hpp>
#include <objects/seq/Heterogen.hpp>
#include <objects/seq/MolInfo.hpp>
#include <objects/seq/seq_id_handle.hpp>
#include <objects/seq/Annot_descr.hpp>
#include <objects/seq/Annotdesc.hpp>
#include <objects/seq/Seq_literal.hpp>
#include <objects/seq/seqport_util.hpp>
#include <objects/seqfeat/Org_ref.hpp>
#include <objects/seqfeat/OrgName.hpp>
#include <objects/seqfeat/OrgMod.hpp>
#include <objects/seqfeat/PCRPrimerSet.hpp>
#include <objects/seqfeat/PCRPrimer.hpp>
#include <objects/seqfeat/PCRReaction.hpp>
#include <objects/seqfeat/PCRReactionSet.hpp>
#include <objects/seqfeat/Code_break.hpp>
#include <objects/seqfeat/Delta_item.hpp>
#include <objects/seqfeat/Gb_qual.hpp>
#include <objects/seqfeat/Gene_nomenclature.hpp>
#include <objects/seqfeat/Genetic_code.hpp>
#include <objects/seqfeat/Genetic_code_table.hpp>
#include <objects/seqfeat/Imp_feat.hpp>
#include <objects/seqfeat/RNA_ref.hpp>
#include <objects/seqfeat/RNA_gen.hpp>
#include <objects/seqfeat/RNA_qual_set.hpp>
#include <objects/seqfeat/RNA_qual.hpp>
#include <objects/seqfeat/Trna_ext.hpp>
#include <objects/seqfeat/Feat_id.hpp>
#include <objects/seqfeat/SeqFeatXref.hpp>
#include <objects/seqfeat/Variation_ref.hpp>
#include <objects/seqfeat/Variation_inst.hpp>
#include <objects/seqloc/Seq_loc.hpp>
#include <objects/seqloc/Seq_point.hpp>
#include <objects/seqloc/Seq_interval.hpp>
#include <objects/seqloc/Packed_seqpnt.hpp>
#include <objects/seqloc/Textseq_id.hpp>
#include <objects/general/Object_id.hpp>
#include <objects/misc/sequence_macros.hpp>
#include <objmgr/scope.hpp>
#include <objmgr/object_manager.hpp>
#include <objmgr/seqdesc_ci.hpp>
#include <objmgr/seq_vector.hpp>
#include <objmgr/util/sequence.hpp>
#include <objmgr/util/feature.hpp>
#include <objmgr/util/weight.hpp>
#include <objmgr/util/seq_loc_util.hpp>
#include <util/static_set.hpp>
#include <util/static_map.hpp>
#include <util/sequtil/sequtil.hpp>
#include <util/sequtil/sequtil_convert.hpp>
#include <objtools/data_loaders/genbank/gbloader.hpp>
#include <objtools/format/formatter.hpp>
#include <objtools/format/items/feature_item.hpp>
#include <objtools/format/items/gene_finder.hpp>
#include <objtools/format/context.hpp>
#include <objtools/format/items/qualifiers.hpp>
#include <objmgr/util/objutil.hpp>
#include "inst_info_map.hpp"
+ Include dependency graph for feature_item.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

class  CGoQualLessThan
 
class  BadECNumberChar
 
struct  SLegalImport
 
class  CInStringPred
 

Macros

#define DO_IMPORT(x)   { #x, eFQ_##x }
 
#define DO_QUAL(x)   x_FormatQual(eFQ_##x, #x, qvec)
 
#define DO_NOTE(x)   x_FormatNoteQual(eFQ_##x, GetStringOfFeatQual(eFQ_##x), qvec)
 
#define DO_NOTE_PREPEND_NEWLINE(x)   x_FormatNoteQual(eFQ_##x, GetStringOfFeatQual(eFQ_##x), qvec, IFlatQVal::fPrependNewline )
 
#define DO_QUAL(x)   x_FormatQual(eSQ_##x, GetStringOfSourceQual(eSQ_##x), qvec)
 
#define DO_QUAL(x)   x_FormatQual(eSQ_##x, GetStringOfSourceQual(eSQ_##x), qvec)
 
#define DO_NOTE(x)   x_FormatNoteQual(eSQ_##x, #x, qvec)
 

Typedefs

typedef CStaticArraySet< const char *, PNocaseTLegalPseudoGeneText
 
typedef CStaticArraySet< const char *, PNocase_CStrTLegalExceptText
 
typedef CStaticArraySet< const char *, PNocaseTLegalRefSeqExceptText
 
typedef SStaticPair< const char *, boolTMobileElemTypeKey
 
typedef CStaticPairArrayMap< const char *, bool, PCase_CStrTMobileElemTypeMap
 
typedef SStaticPair< EFeatureQualifier, CSeqFeatData::EQualifierTQualPair
 
typedef CStaticPairArrayMap< EFeatureQualifier, CSeqFeatData::EQualifierTQualMap
 

Functions

 USING_SCOPE (sequence)
 
static bool s_ValidId (const CSeq_id &id)
 
static bool s_StrEqualDisregardFinalPeriod (const string &s1, const string &s2, NStr::ECase use_case)
 
static bool s_CheckQuals_cdregion (const CMappedFeat &feat, const CSeq_loc &loc, CBioseqContext &ctx)
 
static bool s_HasPub (const CMappedFeat &feat, CBioseqContext &ctx)
 
static bool s_HasCompareOrCitation (const CMappedFeat &feat, CBioseqContext &ctx)
 
static bool s_CheckQuals_conflict (const CMappedFeat &feat, CBioseqContext &ctx)
 
static bool s_CheckQuals_old_seq (const CMappedFeat &feat, CBioseqContext &ctx)
 
static bool s_CheckQuals_gene (const CMappedFeat &feat)
 
static bool s_CheckQuals_bind (const CMappedFeat &feat)
 
static bool s_CheckQuals_mod_base (const CMappedFeat &feat)
 
static bool s_CheckQuals_gap (const CMappedFeat &feat)
 
static bool s_CheckQuals_assembly_gap (const CMappedFeat &feat)
 
static bool s_CheckQuals_ncRNA (const CMappedFeat &feat)
 
static bool s_CheckQuals_regulatory (const CMappedFeat &feat)
 
static bool s_CheckMandatoryQuals (const CMappedFeat &feat, const CSeq_loc &loc, CBioseqContext &ctx)
 
static bool s_SkipFeature (const CMappedFeat &feat, const CSeq_loc &loc, CBioseqContext &ctx)
 
static bool s_IsLegalECNumber (const string &ec_number)
 
static const strings_GetBondName (CSeqFeatData::TBond bond)
 
static void s_QualVectorToNote (const CFlatFeature::TQuals &qualVector, bool noRedundancy, string &note, string &punctuation, bool &addPeriod)
 
static void s_NoteFinalize (bool addPeriod, string &noteStr, CFlatFeature &flatFeature, ETildeStyle style=eTilde_newline)
 
static int s_GetOverlap (const CMappedFeat &feat)
 
static CMappedFeat s_GetBestProtFeature (const CBioseq_Handle &seq)
 The best protein feature is defined as the one that has the most overlap with the given DNA. More...
 
static bool s_CheckFuzz (const CInt_fuzz &fuzz)
 
static bool s_LocIsFuzz (const CMappedFeat &feat, const CSeq_loc &loc)
 
static void s_AddPcrPrimersQualsAppend (string &output, const string &name, const string &str)
 
static void s_SplitCommaSeparatedStringInParens (vector< string > &output_vec, const string &string_to_split)
 
 DEFINE_STATIC_ARRAY_MAP (TLegalPseudoGeneText, sc_ValidPseudoGeneText, sc_ValidPseudoGene)
 
static bool s_IsValidPseudoGene (objects::CFlatFileConfig::TMode mode, const string &text)
 
 DEFINE_STATIC_ARRAY_MAP (TLegalExceptText, sc_LegalExceptText, sc_ValidExceptionText)
 
static bool s_IsValidExceptionText (const string &text)
 
 DEFINE_STATIC_ARRAY_MAP (TLegalRefSeqExceptText, sc_LegalRefSeqExceptText, sc_ValidRefSeqExceptionText)
 
static bool s_IsValidRefSeqExceptionText (const string &text)
 
static bool s_TransSplicingFeatureAllowed (const CSeqFeatData &data)
 
static const strings_AaName (int aa)
 
static int s_ToIupacaa (int aa)
 
static int s_ScoreSeqIdHandle (const CSeq_id_Handle &idh)
 
CSeq_id_Handle s_FindBestIdChoice (const CBioseq_Handle::TId &ids)
 
static const strings_GetSiteName (CSeqFeatData::TSite site)
 
static void s_ParseParentQual (const CGb_qual &gbqual, list< string > &vals)
 
static bool s_IsValidDirection (const string &direction)
 
static bool s_IsValidnConsSplice (const string &cons_splice)
 
static void s_HTMLizeExperimentQual (string &out_new_val, const string &val)
 
static bool s_IsValidRegulatoryClass (const string &type)
 
static bool s_IsValidRecombinationClass (const string &type)
 
 DEFINE_STATIC_ARRAY_MAP (TMobileElemTypeMap, sm_MobileElemTypeKeys, mobile_element_key_to_suffix_required)
 
bool s_ValidateMobileElementType (const string &mobile_element_type_value)
 
 DEFINE_STATIC_ARRAY_MAP (TQualMap, sc_QualMap, sc_GbToFeatQualMap)
 
static CSeqFeatData::EQualifier s_GbToSeqFeatQual (EFeatureQualifier qual)
 
static const string s_GetSubtypeString (const COrgMod::TSubtype &subtype)
 
static const string s_GetSubsourceString (const CSubSource::TSubtype &subtype)
 
static ESourceQualifier s_OrgModToSlot (const COrgMod &om)
 
static string s_GetSpecimenVoucherText (CBioseqContext &ctx, const string &strRawName)
 
static ESourceQualifier s_SubSourceToSlot (const CSubSource &ss)
 

Variables

static const char *const sc_ValidPseudoGene []
 
static const char *const sc_ValidExceptionText []
 
static const char *const sc_ValidRefSeqExceptionText []
 
static const string s_TrnaList []
 
static const TMobileElemTypeKey mobile_element_key_to_suffix_required []
 
static const TQualPair sc_GbToFeatQualMap []
 

Macro Definition Documentation

◆ DO_IMPORT

#define DO_IMPORT (   x)    { #x, eFQ_##x }

◆ DO_NOTE [1/2]

#define DO_NOTE (   x)    x_FormatNoteQual(eFQ_##x, GetStringOfFeatQual(eFQ_##x), qvec)

◆ DO_NOTE [2/2]

#define DO_NOTE (   x)    x_FormatNoteQual(eSQ_##x, #x, qvec)

◆ DO_NOTE_PREPEND_NEWLINE

#define DO_NOTE_PREPEND_NEWLINE (   x)    x_FormatNoteQual(eFQ_##x, GetStringOfFeatQual(eFQ_##x), qvec, IFlatQVal::fPrependNewline )

◆ DO_QUAL [1/3]

#define DO_QUAL (   x)    x_FormatQual(eFQ_##x, #x, qvec)

◆ DO_QUAL [2/3]

#define DO_QUAL (   x)    x_FormatQual(eSQ_##x, GetStringOfSourceQual(eSQ_##x), qvec)

◆ DO_QUAL [3/3]

#define DO_QUAL (   x)    x_FormatQual(eSQ_##x, GetStringOfSourceQual(eSQ_##x), qvec)

Typedef Documentation

◆ TLegalExceptText

Definition at line 939 of file feature_item.cpp.

◆ TLegalPseudoGeneText

Definition at line 918 of file feature_item.cpp.

◆ TLegalRefSeqExceptText

Definition at line 965 of file feature_item.cpp.

◆ TMobileElemTypeKey

Definition at line 4968 of file feature_item.cpp.

◆ TMobileElemTypeMap

Definition at line 4981 of file feature_item.cpp.

◆ TQualMap

Definition at line 5370 of file feature_item.cpp.

◆ TQualPair

Definition at line 5253 of file feature_item.cpp.

Function Documentation

◆ DEFINE_STATIC_ARRAY_MAP() [1/5]

DEFINE_STATIC_ARRAY_MAP ( TLegalExceptText  ,
sc_LegalExceptText  ,
sc_ValidExceptionText   
)

◆ DEFINE_STATIC_ARRAY_MAP() [2/5]

DEFINE_STATIC_ARRAY_MAP ( TLegalPseudoGeneText  ,
sc_ValidPseudoGeneText  ,
sc_ValidPseudoGene   
)

◆ DEFINE_STATIC_ARRAY_MAP() [3/5]

DEFINE_STATIC_ARRAY_MAP ( TLegalRefSeqExceptText  ,
sc_LegalRefSeqExceptText  ,
sc_ValidRefSeqExceptionText   
)

◆ DEFINE_STATIC_ARRAY_MAP() [4/5]

DEFINE_STATIC_ARRAY_MAP ( TMobileElemTypeMap  ,
sm_MobileElemTypeKeys  ,
mobile_element_key_to_suffix_required   
)

◆ DEFINE_STATIC_ARRAY_MAP() [5/5]

DEFINE_STATIC_ARRAY_MAP ( TQualMap  ,
sc_QualMap  ,
sc_GbToFeatQualMap   
)

◆ s_AaName()

static const string& s_AaName ( int  aa)
static

Definition at line 2126 of file feature_item.cpp.

References ArraySize(), kEmptyStr, and s_TrnaList.

Referenced by CFeatureItem::x_AddQualsRna().

◆ s_AddPcrPrimersQualsAppend()

static void s_AddPcrPrimersQualsAppend ( string output,
const string name,
const string str 
)
static

Definition at line 874 of file feature_item.cpp.

References output, and str().

Referenced by CSourceFeatureItem::x_AddPcrPrimersQuals().

◆ s_CheckFuzz()

static bool s_CheckFuzz ( const CInt_fuzz fuzz)
static

◆ s_CheckMandatoryQuals()

static bool s_CheckMandatoryQuals ( const CMappedFeat feat,
const CSeq_loc loc,
CBioseqContext ctx 
)
static

◆ s_CheckQuals_assembly_gap()

static bool s_CheckQuals_assembly_gap ( const CMappedFeat feat)
static

Definition at line 396 of file feature_item.cpp.

References CSeq_feat_Handle::GetNamedQual().

Referenced by s_CheckMandatoryQuals().

◆ s_CheckQuals_bind()

static bool s_CheckQuals_bind ( const CMappedFeat feat)
static

Definition at line 376 of file feature_item.cpp.

References CSeq_feat_Handle::GetNamedQual(), and NStr::IsBlank().

Referenced by s_CheckMandatoryQuals().

◆ s_CheckQuals_cdregion()

static bool s_CheckQuals_cdregion ( const CMappedFeat feat,
const CSeq_loc loc,
CBioseqContext ctx 
)
static

◆ s_CheckQuals_conflict()

static bool s_CheckQuals_conflict ( const CMappedFeat feat,
CBioseqContext ctx 
)
static

◆ s_CheckQuals_gap()

static bool s_CheckQuals_gap ( const CMappedFeat feat)
static

Definition at line 390 of file feature_item.cpp.

References CSeq_feat_Handle::GetNamedQual().

Referenced by s_CheckMandatoryQuals().

◆ s_CheckQuals_gene()

static bool s_CheckQuals_gene ( const CMappedFeat feat)
static

◆ s_CheckQuals_mod_base()

static bool s_CheckQuals_mod_base ( const CMappedFeat feat)
static

Definition at line 383 of file feature_item.cpp.

References CSeq_feat_Handle::GetNamedQual(), and NStr::IsBlank().

Referenced by s_CheckMandatoryQuals().

◆ s_CheckQuals_ncRNA()

static bool s_CheckQuals_ncRNA ( const CMappedFeat feat)
static

◆ s_CheckQuals_old_seq()

static bool s_CheckQuals_old_seq ( const CMappedFeat feat,
CBioseqContext ctx 
)
static

Definition at line 355 of file feature_item.cpp.

References ctx, and s_HasCompareOrCitation().

Referenced by s_CheckMandatoryQuals().

◆ s_CheckQuals_regulatory()

static bool s_CheckQuals_regulatory ( const CMappedFeat feat)
static

Definition at line 424 of file feature_item.cpp.

References CSeq_feat_Handle::GetNamedQual().

Referenced by s_CheckMandatoryQuals().

◆ s_FindBestIdChoice()

CSeq_id_Handle s_FindBestIdChoice ( const CBioseq_Handle::TId ids)

◆ s_GbToSeqFeatQual()

static CSeqFeatData::EQualifier s_GbToSeqFeatQual ( EFeatureQualifier  qual)
static

Definition at line 5373 of file feature_item.cpp.

References CSeqFeatData::eQual_bad.

Referenced by CFeatureItem::x_DropIllegalQuals().

◆ s_GetBestProtFeature()

static CMappedFeat s_GetBestProtFeature ( const CBioseq_Handle seq)
static

The best protein feature is defined as the one that has the most overlap with the given DNA.

If there is a tie between two protein features in overlap then the one with the lesser processing status is declared the winner.

Definition at line 744 of file feature_item.cpp.

References CSeqFeatData_Base::e_Prot, CProt_ref_Base::eProcessed_transit_peptide, CSeq_feat_Handle::GetData(), CProt_ref_Base::GetProcessed(), CSeqFeatData_Base::GetProt(), CBioseq_Handle::GetTSE_Handle(), s_GetOverlap(), and SAnnotSelector::SetLimitTSE().

Referenced by CFeatureItem::x_AddFTableCdregionQuals(), CFeatureItem::x_AddQualSeqfeatNote(), and CFeatureItem::x_GetAssociatedProtInfo().

◆ s_GetBondName()

static const string& s_GetBondName ( CSeqFeatData::TBond  bond)
static

◆ s_GetOverlap()

static int s_GetOverlap ( const CMappedFeat feat)
static

Definition at line 725 of file feature_item.cpp.

References CMappedFeat::GetLocation(), and ITERATE.

Referenced by s_GetBestProtFeature().

◆ s_GetSiteName()

static const string& s_GetSiteName ( CSeqFeatData::TSite  site)
static

◆ s_GetSpecimenVoucherText()

static string s_GetSpecimenVoucherText ( CBioseqContext ctx,
const string strRawName 
)
static

◆ s_GetSubsourceString()

static const string s_GetSubsourceString ( const CSubSource::TSubtype subtype)
static

◆ s_GetSubtypeString()

static const string s_GetSubtypeString ( const COrgMod::TSubtype subtype)
static

◆ s_HasCompareOrCitation()

static bool s_HasCompareOrCitation ( const CMappedFeat feat,
CBioseqContext ctx 
)
static

◆ s_HasPub()

static bool s_HasPub ( const CMappedFeat feat,
CBioseqContext ctx 
)
static

Definition at line 314 of file feature_item.cpp.

References ctx, CSeq_feat_Handle::GetCit(), and ITERATE.

Referenced by s_HasCompareOrCitation().

◆ s_HTMLizeExperimentQual()

static void s_HTMLizeExperimentQual ( string out_new_val,
const string val 
)
static

Definition at line 4072 of file feature_item.cpp.

References copy(), isdigit(), NPOS, strLinkBasePubmed, and val.

Referenced by CFeatureItem::x_ImportQuals().

◆ s_IsLegalECNumber()

static bool s_IsLegalECNumber ( const string ec_number)
static

◆ s_IsValidDirection()

static bool s_IsValidDirection ( const string direction)
static

◆ s_IsValidExceptionText()

static bool s_IsValidExceptionText ( const string text)
static

Definition at line 942 of file feature_item.cpp.

References text().

Referenced by CFeatureItem::x_AddQualExceptions().

◆ s_IsValidnConsSplice()

static bool s_IsValidnConsSplice ( const string cons_splice)
static

Definition at line 4058 of file feature_item.cpp.

References NStr::EqualNocase().

Referenced by CFeatureItem::x_ImportQuals().

◆ s_IsValidPseudoGene()

static bool s_IsValidPseudoGene ( objects::CFlatFileConfig::TMode  mode,
const string text 
)
static

Definition at line 921 of file feature_item.cpp.

References text().

Referenced by CFeatureItem::x_CleanQuals().

◆ s_IsValidRecombinationClass()

static bool s_IsValidRecombinationClass ( const string type)
static

◆ s_IsValidRefSeqExceptionText()

static bool s_IsValidRefSeqExceptionText ( const string text)
static

Definition at line 968 of file feature_item.cpp.

References text().

Referenced by CFeatureItem::x_AddQualExceptions().

◆ s_IsValidRegulatoryClass()

static bool s_IsValidRegulatoryClass ( const string type)
static

◆ s_LocIsFuzz()

static bool s_LocIsFuzz ( const CMappedFeat feat,
const CSeq_loc loc 
)
static

◆ s_NoteFinalize()

static void s_NoteFinalize ( bool  addPeriod,
string noteStr,
CFlatFeature flatFeature,
ETildeStyle  style = eTilde_newline 
)
static

◆ s_OrgModToSlot()

static ESourceQualifier s_OrgModToSlot ( const COrgMod om)
static

Definition at line 6163 of file feature_item.cpp.

References GetSourceQualOfOrgMod(), and om.

Referenced by CSourceFeatureItem::x_AddQuals().

◆ s_ParseParentQual()

static void s_ParseParentQual ( const CGb_qual gbqual,
list< string > &  vals 
)
static

◆ s_QualVectorToNote()

static void s_QualVectorToNote ( const CFlatFeature::TQuals qualVector,
bool  noRedundancy,
string note,
string punctuation,
bool addPeriod 
)
static

◆ s_ScoreSeqIdHandle()

static int s_ScoreSeqIdHandle ( const CSeq_id_Handle idh)
static

Definition at line 3104 of file feature_item.cpp.

References CSeq_id_Handle::GetSeqId(), and CSeq_id::Score().

Referenced by s_FindBestIdChoice().

◆ s_SkipFeature()

static bool s_SkipFeature ( const CMappedFeat feat,
const CSeq_loc loc,
CBioseqContext ctx 
)
static

Definition at line 484 of file feature_item.cpp.

References ctx, CSeqFeatData_Base::e_Bond, CSeqFeatData_Base::e_Cdregion, CSeqFeatData_Base::e_Comment, CSeqFeatData_Base::e_Gene, CSeqFeatData_Base::e_Imp, CSeqFeatData_Base::e_Region, CSeqFeatData_Base::e_Rna, CSeqFeatData_Base::e_Site, CMolInfo_Base::eBiomol_mRNA, CMolInfo_Base::eBiomol_transcribed_RNA, CSeqFeatData::eSubtype_allele, CSeqFeatData::eSubtype_bad, CSeqFeatData::eSubtype_biosrc, CSeqFeatData::eSubtype_exon, CSeqFeatData::eSubtype_gene, CSeqFeatData::eSubtype_het, CSeqFeatData::eSubtype_imp, CSeqFeatData::eSubtype_intron, CSeqFeatData::eSubtype_misc_feature, CSeqFeatData::eSubtype_mutation, CSeqFeatData::eSubtype_preprotein, CSeqFeatData::eSubtype_pub, CSeqFeatData::eSubtype_rsite, CSeqFeatData::eSubtype_seq, CSeqFeatData::eSubtype_site_ref, CSeqFeatData::eSubtype_variation, CSeqFeatData::eSubtype_virion, CFlatFileConfig::GeneRNACDSFeatures(), CSeq_feat_Handle::GetData(), CDbtag_Base::GetDb(), CSeq_feat_Handle::GetDbxref(), CSeqFeatData::GetSubtype(), CFlatFileConfig::HideExonFeatures(), CFlatFileConfig::HideImpFeatures(), CFlatFileConfig::HideIntronFeatures(), CFlatFileConfig::HideMiscFeatures(), CFlatFileConfig::HideRemoteImpFeatures(), CFlatFileConfig::IsFormatDDBJ(), CFlatFileConfig::IsPolicyGenomes(), CDbtag_Base::IsSetDb(), ITERATE, CFlatFileConfig::NeedRequiredQuals(), s_CheckMandatoryQuals(), CFlatFileConfig::ValidateFeatures(), and CSeqFeatData_Base::Which().

Referenced by CFeatureItem::x_GatherInfoWithParent().

◆ s_SplitCommaSeparatedStringInParens()

static void s_SplitCommaSeparatedStringInParens ( vector< string > &  output_vec,
const string string_to_split 
)
static

Definition at line 887 of file feature_item.cpp.

References NStr::Split().

Referenced by CFeatureItem::x_AddRptTypeQual().

◆ s_StrEqualDisregardFinalPeriod()

static bool s_StrEqualDisregardFinalPeriod ( const string s1,
const string s2,
NStr::ECase  use_case 
)
static

Definition at line 185 of file feature_item.cpp.

References ch1, ch2, NStr::eNocase, and toupper().

Referenced by CFeatureItem::x_AddQualsRegion(), and CFeatureItem::x_CleanQuals().

◆ s_SubSourceToSlot()

static ESourceQualifier s_SubSourceToSlot ( const CSubSource ss)
static

◆ s_ToIupacaa()

static int s_ToIupacaa ( int  aa)
static

◆ s_TransSplicingFeatureAllowed()

static bool s_TransSplicingFeatureAllowed ( const CSeqFeatData data)
static

◆ s_ValidateMobileElementType()

bool s_ValidateMobileElementType ( const string mobile_element_type_value)

Definition at line 4985 of file feature_item.cpp.

Referenced by CFeatureItem::x_CleanQuals().

◆ s_ValidId()

static bool s_ValidId ( const CSeq_id id)
static

Definition at line 176 of file feature_item.cpp.

Referenced by s_CheckQuals_cdregion().

◆ USING_SCOPE()

USING_SCOPE ( sequence  )

Variable Documentation

◆ mobile_element_key_to_suffix_required

const TMobileElemTypeKey mobile_element_key_to_suffix_required[]
static
Initial value:
= {
{ "LINE", false },
{ "MITE", false },
{ "SINE", false },
{ "insertion sequence", false },
{ "integron", false },
{ "non-LTR retrotransposon", false },
{ "other", true },
{ "retrotransposon", false },
{ "transposon", false }
}

Definition at line 4969 of file feature_item.cpp.

◆ s_TrnaList

const string s_TrnaList[]
static
Initial value:
= {
"tRNA-Gap",
"tRNA-Ala",
"tRNA-Asx",
"tRNA-Cys",
"tRNA-Asp",
"tRNA-Glu",
"tRNA-Phe",
"tRNA-Gly",
"tRNA-His",
"tRNA-Ile",
"tRNA-Xle",
"tRNA-Lys",
"tRNA-Leu",
"tRNA-Met",
"tRNA-Asn",
"tRNA-Pyl",
"tRNA-Pro",
"tRNA-Gln",
"tRNA-Arg",
"tRNA-Ser",
"tRNA-Thr",
"tRNA-Sec",
"tRNA-Val",
"tRNA-Trp",
"tRNA-OTHER",
"tRNA-Tyr",
"tRNA-Glx",
"tRNA-TERM"
}

Definition at line 2094 of file feature_item.cpp.

Referenced by s_AaName().

◆ sc_GbToFeatQualMap

const TQualPair sc_GbToFeatQualMap[]
static

Definition at line 5254 of file feature_item.cpp.

◆ sc_ValidExceptionText

const char* const sc_ValidExceptionText[]
static
Initial value:
= {
"annotated by transcript or proteomic data",
"rearrangement required for product",
"reasons given in citation",
"RNA editing"
}

Definition at line 933 of file feature_item.cpp.

◆ sc_ValidPseudoGene

const char* const sc_ValidPseudoGene[]
static
Initial value:
= {
"allelic",
"processed",
"unitary",
"unknown",
"unprocessed"
}

Definition at line 911 of file feature_item.cpp.

◆ sc_ValidRefSeqExceptionText

const char* const sc_ValidRefSeqExceptionText[]
static
Initial value:
= {
"adjusted for low-quality genome",
"alternative processing",
"alternative start codon",
"artificial frameshift",
"dicistronic gene",
"mismatches in transcription",
"mismatches in translation",
"modified codon recognition",
"nonconsensus splice site",
"transcribed product replaced",
"transcribed pseudogene",
"translated product replaced",
"unclassified transcription discrepancy",
"unclassified translation discrepancy",
"unextendable partial coding region"
}

Definition at line 948 of file feature_item.cpp.

Modified on Fri Sep 20 14:57:28 2024 by modify_doxy.py rev. 669887