NCBI C++ ToolKit
|
Search Toolkit Book for CCdregionValidator
#include <objtools/validator/single_feat_validator.hpp>
Public Member Functions | |
CCdregionValidator (const CSeq_feat &feat, CScope &scope, CValidError_imp &imp) | |
void | Validate () override |
Public Member Functions inherited from CSingleFeatValidator | |
CSingleFeatValidator (const CSeq_feat &feat, CScope &scope, CValidError_imp &imp) | |
virtual | ~CSingleFeatValidator () |
Protected Types | |
typedef pair< TSeqPos, TSeqPos > | TShortIntron |
Protected Types inherited from CSingleFeatValidator | |
enum | ELocationGap { eLocationGapNoProblems = 0 , eLocationGapFeatureMatchesGap = 1 , eLocationGapContainedInGap = 4 , eLocationGapContainedInGapOfNs = 8 , eLocationGapInternalIntervalEndpointInGap = 16 , eLocationGapCrossesUnknownGap = 32 , eLocationGapMostlyNs = 64 } |
Static Protected Member Functions | |
static bool | IsPlastid (int genome) |
static vector< TShortIntron > | x_GetShortIntrons (const CSeq_loc &loc, CScope *scope) |
static void | x_AddToIntronList (vector< TShortIntron > &shortlist, TSeqPos last_start, TSeqPos last_stop, TSeqPos this_start, TSeqPos this_stop) |
static string | x_FormatIntronInterval (const TShortIntron &interval) |
Static Protected Member Functions inherited from CSingleFeatValidator | |
static void | x_LocHasStrandBoth (const CSeq_loc &feat, bool &both, bool &both_rev) |
static size_t | x_CalculateLocationGaps (CBioseq_Handle bsh, const CSeq_loc &loc, vector< TSeqPos > &gap_starts) |
static bool | x_IsMostlyNs (const CSeq_loc &loc, CBioseq_Handle bsh) |
static TSeqPos | x_FindStartOfGap (CBioseq_Handle bsh, TSeqPos pos, CScope *scope) |
static bool | x_BioseqHasNmAccession (CBioseq_Handle bsh) |
Protected Attributes | |
CConstRef< CSeq_feat > | m_Gene |
bool | m_GeneIsPseudo |
Protected Attributes inherited from CSingleFeatValidator | |
const CSeq_feat & | m_Feat |
CScope & | m_Scope |
CValidError_imp & | m_Imp |
CBioseq_Handle | m_LocationBioseq |
CBioseq_Handle | m_ProductBioseq |
bool | m_ProductIsFar |
Additional Inherited Members | |
Static Public Member Functions inherited from CSingleFeatValidator | |
static bool | x_HasSeqLocBond (const CSeq_feat &feat) |
static bool | s_IsPseudo (const CSeq_feat &feat) |
static bool | s_IsPseudo (const CGene_ref &ref) |
static bool | s_BioseqHasRefSeqThatStartsWithPrefix (CBioseq_Handle bsh, string prefix) |
static bool | s_GeneRefsAreEquivalent (const CGene_ref &g1, const CGene_ref &g2, string &label) |
static void | s_RemoveDuplicateGoTerms (CUser_object::TData &field_list) |
static void | s_RemoveDuplicateGoTerms (CSeq_feat &feat) |
Definition at line 198 of file single_feat_validator.hpp.
|
protected |
Definition at line 224 of file single_feat_validator.hpp.
CCdregionValidator::CCdregionValidator | ( | const CSeq_feat & | feat, |
CScope & | scope, | ||
CValidError_imp & | imp | ||
) |
Definition at line 75 of file cdregion_validator.cpp.
References CValidError_imp::GetGeneCache(), CGeneCache::GetGeneFromCache(), m_Gene, m_GeneIsPseudo, CSingleFeatValidator::m_Imp, CSingleFeatValidator::m_Scope, and CSingleFeatValidator::s_IsPseudo().
Definition at line 877 of file cdregion_validator.cpp.
References CBioSource_Base::eGenome_apicoplast, CBioSource_Base::eGenome_chloroplast, CBioSource_Base::eGenome_chromatophore, CBioSource_Base::eGenome_chromoplast, CBioSource_Base::eGenome_cyanelle, CBioSource_Base::eGenome_leucoplast, CBioSource_Base::eGenome_plastid, and CBioSource_Base::eGenome_proplastid.
Referenced by x_ValidateGeneticCode().
Definition at line 548 of file cdregion_validator.cpp.
References GetId(), CSeq_feat_Base::GetProduct(), GetStrand(), GetValidatorLocationLabel(), CSingleFeatValidator::m_Feat, CSingleFeatValidator::m_Scope, ProductToSource(), result, CSeq_point_Base::SetId(), CSeq_point_Base::SetPoint(), CSeq_point_Base::SetStrand(), and tmp.
Referenced by x_ReportTranslationMismatches().
|
protected |
Definition at line 1632 of file cdregion_validator.cpp.
References eDiag_Warning, eErr_SEQ_FEAT_ShortIntron, CSeq_feat_Base::GetLocation(), CCDSTranslationProblems::GetNonsenseIntrons(), i, CSeq_feat_Base::IsSetExcept(), CSingleFeatValidator::m_Feat, CSingleFeatValidator::m_Scope, CSingleFeatValidator::PostErr(), x_FormatIntronInterval(), and x_GetShortIntrons().
Referenced by Validate().
|
overridevirtual |
Reimplemented from CSingleFeatValidator.
Definition at line 735 of file cdregion_validator.cpp.
References eDiag_Error, eDiag_Warning, eErr_SEQ_FEAT_CDSproductPackagingProblem, eErr_SEQ_FEAT_OrfCdsHasProduct, eErr_SEQ_FEAT_PseudoCdsHasProduct, eErr_SEQ_FEAT_PseudoCdsViaGeneHasProduct, CSeqFeatData_Base::GetCdregion(), CCdregion_Base::GetConflict(), CSeq_feat_Base::GetData(), CCdregion_Base::GetOrf(), CCdregion_Base::IsSetConflict(), CCdregion_Base::IsSetOrf(), CSeq_feat_Base::IsSetProduct(), CValidError_imp::IsSmallGenomeSet(), CSingleFeatValidator::m_Feat, m_Gene, m_GeneIsPseudo, CSingleFeatValidator::m_Imp, CSingleFeatValidator::PostErr(), ReportShortIntrons(), CSingleFeatValidator::s_IsPseudo(), CSingleFeatValidator::Validate(), CSingleFeatValidator::ValidateSplice(), x_IsProductMisplaced(), CSingleFeatValidator::x_ReportPseudogeneConflict(), x_ValidateBadMRNAOverlap(), x_ValidateCDSPartial(), x_ValidateCDSPeptides(), x_ValidateCommonProduct(), x_ValidateConflict(), x_ValidateFarProducts(), x_ValidateGeneticCode(), CSingleFeatValidator::x_ValidateLocusTagGeneralMatch(), x_ValidateParentPartialness(), x_ValidateProductId(), x_ValidateProductPartials(), x_ValidateQuals(), and x_ValidateTrans().
|
staticprotected |
Definition at line 1574 of file cdregion_validator.cpp.
References abs.
Referenced by x_GetShortIntrons().
|
protected |
Definition at line 1454 of file cdregion_validator.cpp.
References CSeq_feat_Base::CanGetExcept(), CSeq_feat_Base::CanGetExcept_text(), NStr::FindNoCase(), CSeq_feat_Base::GetExcept(), CSeq_feat_Base::GetExcept_text(), ITERATE, CSingleFeatValidator::m_Feat, and NPOS.
Referenced by x_ValidateCDSPartial().
|
protected |
Definition at line 1468 of file cdregion_validator.cpp.
References eNa_strand_minus, CBioseq_Handle::GetInst_Length(), CSeq_feat_Base::GetLocation(), last(), CSingleFeatValidator::m_Feat, and CSingleFeatValidator::m_LocationBioseq.
Referenced by x_ValidateCDSPartial().
|
protected |
Definition at line 1493 of file cdregion_validator.cpp.
References eNa_strand_minus, first(), CBioseq_Handle::GetInst_Length(), CSeq_feat_Base::GetLocation(), CSingleFeatValidator::m_Feat, and CSingleFeatValidator::m_LocationBioseq.
Referenced by x_ValidateCDSPartial().
|
protected |
Definition at line 1794 of file cdregion_validator.cpp.
References CSeqVector::IsInGap().
Referenced by x_ValidateParentPartialness().
|
staticprotected |
Definition at line 1625 of file cdregion_validator.cpp.
References NStr::NumericToString().
Referenced by ReportShortIntrons().
|
staticprotected |
Definition at line 1584 of file cdregion_validator.cpp.
References abs, CSeq_id::Assign(), CScope::GetBioseqHandle(), CBioseq_Handle::GetId(), and x_AddToIntronList().
Referenced by ReportShortIntrons().
|
protected |
Definition at line 1125 of file cdregion_validator.cpp.
References Compare(), eContained, eSame, CSeqFeatData::eSubtype_C_region, CSeqFeatData::eSubtype_D_segment, CSeqFeatData::eSubtype_J_segment, CSeqFeatData::eSubtype_V_segment, fCompareOverlapping, CGeneCache::GetFeatTreeFromCache(), CValidError_imp::GetGeneCache(), CSeq_feat_Base::GetLocation(), CMappedFeat::GetLocation(), CScope::GetSeq_featHandle(), CValidError_imp::IsHugeFileMode(), CSingleFeatValidator::m_Feat, CSingleFeatValidator::m_Imp, CSingleFeatValidator::m_Scope, and Ref().
Referenced by x_ValidateBadMRNAOverlap().
|
protected |
Definition at line 1515 of file cdregion_validator.cpp.
References CBioseq_set_Base::eClass_gen_prod_set, CBioseq_set_Base::eClass_nuc_prot, CTextseq_id_Base::GetAccession(), CScope::GetBioseqHandle(), CSeqFeatData_Base::GetCdregion(), CSeq_feat_Base::GetData(), CBioseq_Handle::GetExactComplexityLevel(), CSeq_loc::GetId(), CSeq_feat_Base::GetLocation(), CSeq_id_Base::GetOther(), CSeq_feat_Base::GetProduct(), CSeq_id_Base::IsOther(), CTextseq_id_Base::IsSetAccession(), CCdregion_Base::IsSetOrf(), CSeq_feat_Base::IsSetProduct(), CSingleFeatValidator::m_Feat, m_GeneIsPseudo, CSingleFeatValidator::m_Imp, CSingleFeatValidator::m_ProductBioseq, CSingleFeatValidator::m_ProductIsFar, CSingleFeatValidator::m_Scope, nuc, CValidError_imp::RequireLocalProduct(), CSingleFeatValidator::s_BioseqHasRefSeqThatStartsWithPrefix(), CSingleFeatValidator::s_IsPseudo(), and NStr::StartsWith().
Referenced by Validate().
|
overrideprotectedvirtual |
Reimplemented from CSingleFeatValidator.
Definition at line 843 of file cdregion_validator.cpp.
References CSingleFeatValidator::m_Feat, m_GeneIsPseudo, and CSingleFeatValidator::s_IsPseudo().
|
protected |
Definition at line 570 of file cdregion_validator.cpp.
References eDiag_Error, eDiag_Warning, eErr_SEQ_FEAT_MisMatchAA, CSeqFeatData_Base::GetCdregion(), CCdregion_Base::GetCode(), CSeq_feat_Base::GetData(), CGenetic_code::GetId(), i, NStr::IntToString(), CSeqFeatData_Base::IsCdregion(), CCdregion_Base::IsSetCode(), CSingleFeatValidator::m_Feat, CSingleFeatValidator::m_ProductIsFar, MapToNTCoords(), msg(), CSingleFeatValidator::PostErr(), and NStr::SizetToString().
Referenced by x_ReportTranslationProblems().
|
protected |
Definition at line 332 of file cdregion_validator.cpp.
References CCDSTranslationProblems::AltStart(), CCDSTranslationProblems::eCDSTranslationProblem_BadStart, CCDSTranslationProblems::eCDSTranslationProblem_ErroneousException, CCDSTranslationProblems::eCDSTranslationProblem_FrameNotConsensus, CCDSTranslationProblems::eCDSTranslationProblem_FrameNotPartial, CCDSTranslationProblems::eCDSTranslationProblem_NoProtein, CCDSTranslationProblems::eCDSTranslationProblem_NoStop, CCDSTranslationProblems::eCDSTranslationProblem_ShouldBePartialButIsnt, CCDSTranslationProblems::eCDSTranslationProblem_ShouldNotBePartialButIs, CCDSTranslationProblems::eCDSTranslationProblem_ShouldStartPartial, CCDSTranslationProblems::eCDSTranslationProblem_StopPartial, CCDSTranslationProblems::eCDSTranslationProblem_TooManyX, CCDSTranslationProblems::eCDSTranslationProblem_UnableToFetch, CCDSTranslationProblems::eCDSTranslationProblem_UnnecessaryException, CCDSTranslationProblems::eCDSTranslationProblem_UnqualifiedException, eDiag_Critical, eDiag_Error, eDiag_Info, eDiag_Warning, eErr_SEQ_FEAT_AltStartCodonException, eErr_SEQ_FEAT_CDShasTooManyXs, eErr_SEQ_FEAT_CdTransFail, eErr_SEQ_FEAT_ErroneousException, eErr_SEQ_FEAT_InternalStop, eErr_SEQ_FEAT_IntronIsStopCodon, eErr_SEQ_FEAT_NoProtein, eErr_SEQ_FEAT_NoStop, eErr_SEQ_FEAT_PartialProblem, eErr_SEQ_FEAT_PartialProblemHasStop, eErr_SEQ_FEAT_ProductFetchFailure, eErr_SEQ_FEAT_ProductLength, eErr_SEQ_FEAT_StartCodon, eErr_SEQ_FEAT_SuspiciousFrame, eErr_SEQ_FEAT_TerminalXDiscrepancy, eErr_SEQ_FEAT_TransLen, eErr_SEQ_FEAT_TranslExcept, eErr_SEQ_FEAT_UnnecessaryException, NStr::EqualNocase(), NStr::Find(), NStr::FindNoCase(), CDbtag_Base::GetDb(), CSeq_feat_Base::GetExcept_text(), CSeq_id_Base::GetGeneral(), GetId(), CCDSTranslationProblems::GetInternalStopCodons(), GetInternalStopErrorMessage(), CSeq_id::GetLabel(), CSeq_feat_Base::GetLocation(), CCDSTranslationProblems::GetNumNonsenseIntrons(), CCDSTranslationProblems::GetProdTerminalX(), CSeq_feat_Base::GetProduct(), CCDSTranslationProblems::GetProtLen(), CCDSTranslationProblems::GetRaggedLength(), GetStartCodonErrorMessage(), CCDSTranslationProblems::GetTranslationMismatches(), CCDSTranslationProblems::GetTranslationProblemFlags(), CCDSTranslationProblems::GetTransLen(), CCDSTranslationProblems::GetTranslExceptProblems(), CCDSTranslationProblems::GetTranslStartCharacter(), CCDSTranslationProblems::GetTranslTerminalX(), CValidError_imp::GetTSE(), CCDSTranslationProblems::HasException(), CCDSTranslationProblems::HasUnparsedTranslExcept(), i, NStr::IntToString(), CValidError_imp::IsDdbj(), IsDeltaOrFarSeg(), CValidError_imp::IsEmbl(), CValidError_imp::IsGED(), CSeq_id_Base::IsGeneral(), CValidError_imp::IsGI(), CValidError_imp::IsGpipe(), CValidError_imp::IsRefSeq(), CDbtag_Base::IsSetDb(), CSeq_feat_Base::IsSetExcept(), CSeq_feat_Base::IsSetExcept_text(), label, CSingleFeatValidator::m_Feat, CSingleFeatValidator::m_Imp, CSingleFeatValidator::m_LocationBioseq, CSingleFeatValidator::m_ProductIsFar, CSingleFeatValidator::m_Scope, msg(), NPOS, CSingleFeatValidator::PostErr(), s_LocIdType(), NStr::SizetToString(), CCDSTranslationProblems::UnableToTranslate(), CSingleFeatValidator::x_BioseqHasNmAccession(), x_ReportTranslationMismatches(), and x_ReportTranslExceptProblems().
Referenced by x_ValidateTrans().
|
protected |
Definition at line 644 of file cdregion_validator.cpp.
References eDiag_Warning, eErr_SEQ_FEAT_TranslExcept, eErr_SEQ_FEAT_TranslExceptPhase, eErr_SEQ_FEAT_UnnecessaryTranslExcept, CCDSTranslationProblems::eTranslExceptPhase, CCDSTranslationProblems::eTranslExceptSuspicious, CCDSTranslationProblems::eTranslExceptUnexpected, CCDSTranslationProblems::eTranslExceptUnnecessary, msg(), CSingleFeatValidator::PostErr(), and NStr::SizetToString().
Referenced by x_ReportTranslationProblems().
|
protected |
Definition at line 1049 of file cdregion_validator.cpp.
References CSeq_feat_Base::CanGetExcept_text(), eDiag_Info, eDiag_Warning, eErr_SEQ_FEAT_CDSmRNArange, eErr_SEQ_FEAT_PseudoCDSmRNArange, eOverlap_CheckIntRev, eOverlap_Interval, eOverlap_Simple, eOverlap_SubsetRev, CSeqFeatData::eSubtype_mRNA, NStr::FindNoCase(), GetBestOverlappingFeat(), CSeq_feat_Base::GetExcept_text(), CSeq_feat_Base::GetLocation(), CSingleFeatValidator::m_Feat, m_GeneIsPseudo, CSingleFeatValidator::m_Scope, NPOS, CSingleFeatValidator::PostErr(), CSingleFeatValidator::s_IsPseudo(), text(), and x_HasGoodParent().
Referenced by Validate().
|
protected |
Definition at line 1338 of file cdregion_validator.cpp.
References CMolInfo_Base::CanGetCompleteness(), CSeqdesc_Base::e_Molinfo, CMolInfo_Base::eCompleteness_complete, CMolInfo_Base::eCompleteness_has_left, CMolInfo_Base::eCompleteness_has_right, CMolInfo_Base::eCompleteness_no_ends, CMolInfo_Base::eCompleteness_no_left, CMolInfo_Base::eCompleteness_no_right, CMolInfo_Base::eCompleteness_other, CMolInfo_Base::eCompleteness_partial, CMolInfo_Base::eCompleteness_unknown, eDiag_Error, eDiag_Warning, eErr_SEQ_FEAT_PartialProblem, eExtreme_Biological, CMolInfo_Base::GetCompleteness(), CSeq_feat_Base::GetLocation(), CSeqdesc_Base::GetMolinfo(), CSeq_loc::IsPartialStart(), CSingleFeatValidator::m_Feat, CSingleFeatValidator::m_ProductBioseq, CSingleFeatValidator::PostErr(), x_BypassCDSPartialTest(), x_CDS3primePartialTest(), and x_CDS5primePartialTest().
Referenced by Validate().
|
protected |
Definition at line 1238 of file cdregion_validator.cpp.
References CSeq_feat_Base::CanGetData(), CSeq_feat_Base::CanGetProduct(), Compare(), CSeqFeatData_Base::e_Prot, eDiag_Warning, eDiagFilter_All, eDiagFilter_Post, eErr_SEQ_FEAT_GeneOnNucPositionOfPeptide, eOverlap_SubsetRev, CSeq_loc_Mapper_Base::eProductToLocation, eSame, CSeqFeatData::eSubtype_gene, CSeqFeatData::eSubtype_mat_peptide_aa, CSeqFeatData::eSubtype_preprotein, CSeqFeatData::eSubtype_propeptide_aa, CSeqFeatData::eSubtype_sig_peptide_aa, CSeqFeatData::eSubtype_transit_peptide_aa, fCompareOverlapping, GetBestOverlappingFeat(), CScope::GetBioseqHandle(), CSeq_feat_Base::GetData(), GetDiagFilter(), CSeq_feat_Handle::GetFeatSubtype(), CSeqFeatData_Base::GetGene(), CSeq_feat_Handle::GetGeneXref(), CSeq_feat_Base::GetLocation(), CSeq_feat_Handle::GetLocation(), CGene_ref_Base::GetLocus(), CGene_ref_Base::GetLocus_tag(), CSeq_feat_Base::GetProduct(), CSeqFeatData_Base::IsCdregion(), CSeqFeatData_Base::IsGene(), CGene_ref_Base::IsSetLocus(), CGene_ref_Base::IsSetLocus_tag(), CSingleFeatValidator::m_Feat, CSingleFeatValidator::m_Scope, CSeq_loc_Mapper_Base::Map(), nuc, CSingleFeatValidator::PostErr(), prev(), prot, and SetDiagFilter().
Referenced by Validate().
|
protected |
Definition at line 683 of file cdregion_validator.cpp.
References Compare(), eContained, eDiag_Critical, eDiag_Error, eErr_SEQ_FEAT_CDSrange, eErr_SEQ_FEAT_DuplicateTranslExcept, eErr_SEQ_FEAT_TranslExceptIsPartial, eExtreme_Biological, eSame, eSeqLocCheck_error, fCompareOverlapping, FOR_EACH_CODEBREAK_ON_CDREGION, fS2P_AllowTer, CSeqFeatData_Base::GetCdregion(), CSeq_feat_Base::GetData(), CCode_break_Base::GetLoc(), CSeq_feat_Base::GetLocation(), GetValidatorLocationLabel(), CSeq_loc_Base::IsNull(), CSeq_feat_Base::IsSetProduct(), CSingleFeatValidator::m_Feat, CSingleFeatValidator::m_Scope, msg(), CSingleFeatValidator::PostErr(), SeqLocCheck(), SourceToProduct(), and str().
Referenced by x_ValidateTrans().
|
protected |
Definition at line 1730 of file cdregion_validator.cpp.
References CCdregion_Base::CanGetOrf(), eDiag_Critical, eDiag_Warning, eErr_SEQ_FEAT_MissingCDSproduct, eErr_SEQ_FEAT_MultipleCDSproducts, CScope::GetBioseqHandle(), CSeqFeatData_Base::GetCdregion(), GetCDSForProduct(), CSeq_feat_Base::GetData(), GetId(), CSeq_feat_Base::GetLocation(), CSeq_feat_Base::GetProduct(), CValidError_imp::IsGPS(), CSeq_feat_Base::IsSetProduct(), CSingleFeatValidator::m_Feat, CSingleFeatValidator::m_Imp, CSingleFeatValidator::m_LocationBioseq, CSingleFeatValidator::m_ProductBioseq, CSingleFeatValidator::m_ProductIsFar, CSingleFeatValidator::m_Scope, CSingleFeatValidator::PostErr(), and CValidError_imp::RequireLocalProduct().
Referenced by Validate().
|
protected |
Definition at line 1699 of file cdregion_validator.cpp.
References CSeq_data_Base::e_Ncbieaa, CBioseq_Handle::eCoding_Iupac, eDiag_Error, eDiag_Warning, eErr_SEQ_FEAT_BadConflictFlag, eErr_SEQ_FEAT_ConflictFlagSet, NStr::Equal(), CSeqVector::GetSeqData(), CBioseq_Handle::GetSeqVector(), CSingleFeatValidator::m_Feat, CSingleFeatValidator::m_ProductBioseq, CSingleFeatValidator::m_Scope, CSingleFeatValidator::PostErr(), CSeqVector::SetCoding(), CSeqVector::size(), and CSeqTranslator::Translate().
Referenced by Validate().
Reimplemented from CSingleFeatValidator.
Definition at line 136 of file cdregion_validator.cpp.
References eDiag_Warning, eErr_SEQ_FEAT_TranslExceptAndRnaEditing, NStr::FindNoCase(), CSeqFeatData_Base::GetCdregion(), CSeq_feat_Base::GetData(), CCdregion_Base::IsSetCode_break(), CSingleFeatValidator::m_Feat, NPOS, CSingleFeatValidator::PostErr(), text(), and CSingleFeatValidator::x_ValidateExceptText().
|
protected |
Definition at line 1177 of file cdregion_validator.cpp.
References CBioseq_set_Base::eClass_nuc_prot, eDiag_Error, eErr_SEQ_FEAT_CDSmRNAmismatch, CSeqFeatData::eSubtype_mRNA, CScope::GetBioseqHandle(), CScope::GetBioseqHandleFromTSE(), CSeq_feat_Base::GetData(), CGeneCache::GetFeatTreeFromCache(), CValidError_imp::GetGeneCache(), CSeq_loc::GetId(), CSeq_feat_Base::GetProduct(), CMappedFeat::GetProduct(), CMappedFeat::GetSeq_feat(), CScope::GetSeq_featHandle(), CSeqFeatData_Base::IsCdregion(), CValidError_imp::IsFarSequence(), CValidError_imp::IsRefSeq(), CValidError_imp::IsRemoteFetch(), CSeq_feat_Base::IsSetProduct(), CSeq_feat_Handle::IsSetProduct(), CSingleFeatValidator::m_Feat, CSingleFeatValidator::m_Imp, CSingleFeatValidator::m_ProductIsFar, CSingleFeatValidator::m_Scope, CSingleFeatValidator::PostErr(), and CValidError_imp::PostErr().
Referenced by Validate().
|
overrideprotectedvirtual |
Reimplemented from CSingleFeatValidator.
Definition at line 86 of file cdregion_validator.cpp.
References DoesCodingRegionHaveTerminalCodeBreak(), CBioseq_Handle::eCoding_Iupac, eDiag_Error, eDiag_Info, eErr_SEQ_FEAT_BadCDScomment, eErr_SEQ_FEAT_EcNumberInCDSComment, CSeqFeatData::eSubtype_prot, NStr::Find(), CSeqFeatData_Base::GetCdregion(), CSeq_feat_Base::GetComment(), CSeq_feat_Base::GetData(), CSeq_feat_Handle::GetData(), GetLastCodonLoc(), GetLength(), CSeqFeatData_Base::GetProt(), CSeqVector::GetSeqData(), HasECnumberPattern(), CSeq_feat_Base::IsSetComment(), CProt_ref_Base::IsSetEc(), len, CSingleFeatValidator::m_Feat, CSingleFeatValidator::m_Imp, CSingleFeatValidator::m_ProductBioseq, CSingleFeatValidator::m_Scope, NPOS, CSingleFeatValidator::PostErr(), CValidError_imp::PostErr(), and CSingleFeatValidator::x_ValidateFeatComment().
|
protected |
Definition at line 959 of file cdregion_validator.cpp.
References CCdregion_Base::CanGetCode(), CBioSource_Base::CanGetGenome(), CSeqdesc_Base::e_Source, eDiag_Error, eDiag_Warning, eErr_SEQ_FEAT_GenCodeInvalid, eErr_SEQ_FEAT_GenCodeMismatch, NStr::Find(), CSeqFeatData_Base::GetCdregion(), CCdregion_Base::GetCode(), CSeq_feat_Base::GetData(), CSeq_feat_Base::GetExcept_text(), CBioSource_Base::GetGenome(), CGenetic_code::GetId(), CSeqdesc_Base::GetSource(), NStr::IntToString(), IsGeneticCodeValid(), IsPlastid(), CSeq_feat_Base::IsSetExcept(), CSeq_feat_Base::IsSetExcept_text(), CSingleFeatValidator::m_Feat, CSingleFeatValidator::m_LocationBioseq, CSingleFeatValidator::PostErr(), s_GetStrictGenCode(), and s_PlastidTxt.
Referenced by Validate().
|
protected |
Definition at line 1871 of file cdregion_validator.cpp.
References CSeqFeatData_Base::e_Rna, eOverlap_Contains, CSeqFeatData::eSubtype_mRNA, CSeq_feat_Base::GetLocation(), GetmRNAforCDS(), GetOverlappingFeatures(), CSingleFeatValidator::m_Feat, m_Gene, and CSingleFeatValidator::m_Scope.
Referenced by Validate().
|
protected |
Definition at line 1804 of file cdregion_validator.cpp.
References CBioseq_Handle::eCoding_Iupac, eDiag_Info, eDiag_Warning, eErr_SEQ_FEAT_PartialProblemMismatch3Prime, eErr_SEQ_FEAT_PartialProblemMismatch5Prime, eExtreme_Biological, eNa_strand_minus, NStr::EqualNocase(), CSeq_inst_Base::eRepr_delta, CBioseq_Handle::GetBioseqLength(), CSeq_feat_Base::GetData(), CSeqFeatData_Base::GetGene(), CBioseq_Handle::GetInst(), CSeq_feat_Base::GetLocation(), CGene_ref_Base::GetLocus(), CSeq_inst_Base::GetRepr(), CSeq_loc::GetStart(), CSeq_loc::GetStop(), CSeq_loc::GetStrand(), CSeq_loc::IsPartialStart(), CSeq_loc::IsPartialStop(), CBioseq_Handle::IsSetInst(), CGene_ref_Base::IsSetLocus(), CSeq_inst_Base::IsSetRepr(), CSeq_loc::IsSetStrand(), CSingleFeatValidator::m_Feat, m_Gene, CSingleFeatValidator::m_LocationBioseq, CSingleFeatValidator::PostErr(), and x_CheckPosNOrGap().
|
protected |
Definition at line 1669 of file cdregion_validator.cpp.
References eDiag_Error, eErr_SEQ_FEAT_MissingCDSproduct, eExtreme_Biological, NStr::Find(), CSeq_feat_Base::GetExcept_text(), GetLength(), CSeq_feat_Base::GetLocation(), NStr::IsBlank(), CSeq_feat_Base::IsSetExcept(), CSeq_feat_Base::IsSetExcept_text(), CSeq_feat_Base::IsSetLocation(), CSeq_feat_Base::IsSetProduct(), CSingleFeatValidator::m_Feat, CSingleFeatValidator::m_Scope, NPOS, and CSingleFeatValidator::PostErr().
Referenced by Validate().
|
protected |
Definition at line 1774 of file cdregion_validator.cpp.
References eDiag_Warning, eErr_SEQ_FEAT_PartialsInconsistentCDSProtein, CSeqFeatData::eSubtype_prot, CSeq_feat_Base::GetLocation(), CBioseq_Handle::GetTopLevelEntry(), CSingleFeatValidator::m_Feat, CSingleFeatValidator::m_LocationBioseq, CSingleFeatValidator::m_ProductBioseq, PartialsSame(), CSingleFeatValidator::PostErr(), and prot.
Referenced by Validate().
|
protected |
Definition at line 804 of file cdregion_validator.cpp.
References CGb_qual_Base::CanGetQual(), eDiag_Error, eDiag_Warning, eErr_SEQ_FEAT_CodonQualifierUsed, eErr_SEQ_FEAT_InvalidCodonStart, eErr_SEQ_FEAT_MissingExceptionFlag, eErr_SEQ_FEAT_WrongQualOnCDS, eErr_SEQ_FEAT_WrongQualOnFeature, CCdregion_Base::eFrame_not_set, NStr::EqualNocase(), FOR_EACH_GBQUAL_ON_FEATURE, CSeqFeatData_Base::GetCdregion(), CSeq_feat_Base::GetData(), CCdregion_Base::GetFrame(), CGb_qual_Base::GetQual(), CSeq_feat_Base::IsSetExcept(), CCdregion_Base::IsSetFrame(), ncbi::grid::netcache::search::fields::key, CSingleFeatValidator::m_Feat, and CSingleFeatValidator::PostErr().
Referenced by Validate().
|
overrideprotectedvirtual |
Reimplemented from CSingleFeatValidator.
Definition at line 1010 of file cdregion_validator.cpp.
References eDiag_Warning, eErr_SEQ_FEAT_ShortExon, CSeq_feat_Base::GetLocation(), CSingleFeatValidator::m_Feat, NStr::NumericToString(), CSingleFeatValidator::PostErr(), and CSingleFeatValidator::x_ValidateSeqFeatLoc().
|
protected |
Definition at line 196 of file cdregion_validator.cpp.
References CCDSTranslationProblems::CalculateTranslationProblems(), CCDSTranslationProblems::eCDSTranslationProblem_UnableToFetch, CSeq_feat_Base::GetProduct(), CCDSTranslationProblems::GetTranslationProblemFlags(), CValidError_imp::GetTSE(), CCDSTranslationProblems::HasException(), CValidError_imp::IgnoreExceptions(), CValidError_imp::IsFarFetchCDSproducts(), CValidError_imp::IsGED(), CValidError_imp::IsGenomic(), CValidError_imp::IsGpipe(), CValidError_imp::IsRefSeq(), CSeq_entry_Base::IsSeq(), CValidError_imp::IsStandaloneAnnot(), CValidError_imp::IsTPE(), CSingleFeatValidator::m_Feat, CSingleFeatValidator::m_Imp, CSingleFeatValidator::m_LocationBioseq, CSingleFeatValidator::m_ProductBioseq, CSingleFeatValidator::m_Scope, s_LocIdType(), CValidError_imp::SetFarFetchFailure(), CCDSTranslationProblems::UnableToTranslate(), CValidError_imp::x_IsFarFetchFailure(), x_ReportTranslationProblems(), and x_ValidateCodebreak().
Referenced by Validate().
Definition at line 246 of file single_feat_validator.hpp.
Referenced by CCdregionValidator(), Validate(), and x_ValidateParentPartialness().
|
protected |
Definition at line 247 of file single_feat_validator.hpp.
Referenced by CCdregionValidator(), Validate(), x_IsProductMisplaced(), x_ReportOrigProteinId(), and x_ValidateBadMRNAOverlap().