NCBI C++ ToolKit
|
#include <objects/general/Date_std.hpp>
#include <objects/seqblock/GB_block.hpp>
#include <objmgr/scope.hpp>
#include <objmgr/object_manager.hpp>
#include "ftablock.h"
#include "entry.h"
Go to the source code of this file.
Go to the SVN repository for this file.
Namespaces | |
objects | |
Macros | |
#define | Unknown 0 |
#define | ParFlat_UNKW 999 |
#define Unknown 0 |
void check_est_sts_gss_tpa_kwds | ( | ValNodePtr | kwds, |
size_t | len, | ||
IndexblkPtr | entry, | ||
bool | tpa_check, | ||
bool & | specialist_db, | ||
bool & | inferential, | ||
bool & | experimental, | ||
bool & | assembly | ||
) |
Definition at line 1371 of file utilfun.cpp.
References ValNode::data, NStr::EqualNocase(), Indexblk::EST, fta_keywords_check(), Indexblk::GSS, Indexblk::HTC, Indexblk::is_tpa, len, MemFree(), ValNode::next, StringCat(), StringChr, StringNew(), and Indexblk::STS.
Referenced by GenBankIndex(), and XMLKeywordsCheck().
bool CheckLineType | ( | char * | ptr, |
Int4 | line, | ||
const vector< string > & | keywordList, | ||
bool | after_origin | ||
) |
Definition at line 910 of file utilfun.cpp.
References ERR_ENTRY_InvalidLineType, ErrPostEx, i, msg(), SEV_ERROR, StringChr, StringEquN(), and StringNCpy().
Referenced by EmblIndex(), and GenBankIndex().
void CleanTailNoneAlphaChar | ( | char * | str | ) |
Definition at line 697 of file utilfun.cpp.
References last(), SeekLastAlphaChar(), and str().
Referenced by GetOneGeneRef(), and GetTheCurrentToken().
void CleanTailNoneAlphaCharInString | ( | std::string & | str | ) |
void CpSeqId | ( | InfoBioseq * | ibp, |
const objects::CSeq_id & | id | ||
) |
bool fta_check_mga_keywords | ( | objects::CMolInfo & | mol_info, |
const TKeywordList & | kwds | ||
) |
Definition at line 1187 of file utilfun.cpp.
References MatchArrayIString(), ParFlat_TLS_kw_array, and str().
Definition at line 1170 of file utilfun.cpp.
References MatchArrayIString(), ParFlat_TPA_kw_array, and str().
Referenced by fta_fix_tpa_keywords().
Definition at line 1179 of file utilfun.cpp.
References MatchArrayIString(), ParFlat_TSA_kw_array, and str().
void fta_keywords_check | ( | const char * | str, |
bool * | estk, | ||
bool * | stsk, | ||
bool * | gssk, | ||
bool * | htck, | ||
bool * | flik, | ||
bool * | wgsk, | ||
bool * | tpak, | ||
bool * | envk, | ||
bool * | mgak, | ||
bool * | tsak, | ||
bool * | tlsk | ||
) |
Definition at line 1195 of file utilfun.cpp.
References MatchArrayString(), ParFlat_ENV_kw_array, ParFlat_EST_kw_array, ParFlat_FLI_kw_array, ParFlat_GSS_kw_array, ParFlat_HTC_kw_array, ParFlat_MGA_kw_array, ParFlat_STS_kw_array, ParFlat_TLS_kw_array, ParFlat_TPA_kw_array, ParFlat_TSA_kw_array, ParFlat_WGS_kw_array, and str().
Referenced by check_est_sts_gss_tpa_kwds(), GetDescrEmblBlock(), GetGBBlock(), xCheckEstStsGssTpaKeywords(), XMLGetEMBLBlock(), and XMLGetGBBlock().
void fta_remove_env_keywords | ( | TKeywordList & | kwds | ) |
Definition at line 1307 of file utilfun.cpp.
References ncbi::grid::netcache::search::fields::key, MatchArrayIString(), and ParFlat_ENV_kw_array.
Referenced by GetDescrEmblBlock(), GetGBBlock(), and XMLGetGBBlock().
void fta_remove_keywords | ( | int | tech, |
TKeywordList & | kwds | ||
) |
Definition at line 1232 of file utilfun.cpp.
References b, CMolInfo_Base::eTech_est, CMolInfo_Base::eTech_fli_cdna, CMolInfo_Base::eTech_htc, CMolInfo_Base::eTech_sts, CMolInfo_Base::eTech_survey, CMolInfo_Base::eTech_wgs, ncbi::grid::netcache::search::fields::key, MatchArrayString(), ParFlat_EST_kw_array, ParFlat_FLI_kw_array, ParFlat_GSS_kw_array, ParFlat_HTC_kw_array, ParFlat_STS_kw_array, and ParFlat_WGS_kw_array.
Referenced by GetDescrEmblBlock(), GetGBBlock(), XMLGetEMBLBlock(), and XMLGetGBBlock().
void fta_remove_mag_keywords | ( | TKeywordList & | kwds | ) |
Definition at line 1321 of file utilfun.cpp.
References ncbi::grid::netcache::search::fields::key, MatchArrayIString(), and ParFlat_MAG_kw_array.
Referenced by GetGBBlock().
void fta_remove_tls_keywords | ( | TKeywordList & | kwds, |
Parser::ESource | source | ||
) |
Definition at line 1292 of file utilfun.cpp.
References Parser::EMBL, NStr::EqualNocase(), ncbi::grid::netcache::search::fields::key, MatchArrayIString(), ParFlat_TLS_kw_array, and rapidjson::source.
Referenced by GetDescrEmblBlock(), GetGBBlock(), XMLGetEMBLBlock(), and XMLGetGBBlock().
void fta_remove_tpa_keywords | ( | TKeywordList & | kwds | ) |
Definition at line 1263 of file utilfun.cpp.
References ncbi::grid::netcache::search::fields::key, MatchArrayIString(), and ParFlat_TPA_kw_array_to_remove.
Referenced by GetDescrEmblBlock(), GetGBBlock(), XMLGetEMBLBlock(), and XMLGetGBBlock().
void fta_remove_tsa_keywords | ( | TKeywordList & | kwds, |
Parser::ESource | source | ||
) |
Definition at line 1277 of file utilfun.cpp.
References Parser::EMBL, NStr::EqualNocase(), ncbi::grid::netcache::search::fields::key, MatchArrayIString(), ParFlat_TSA_kw_array, and rapidjson::source.
Referenced by GetDescrEmblBlock(), GetGBBlock(), XMLGetEMBLBlock(), and XMLGetGBBlock().
void fta_StringCpy | ( | char * | dst, |
const char * | src | ||
) |
Definition at line 1496 of file utilfun.cpp.
Referenced by CheckDelGbblockSourceFromDescrs(), DefVsHTGKeywords(), DelParenthesis(), ExtractErratum(), FakeEmblBioSources(), fta_get_part_sup(), fta_parse_rrna_feat(), fta_parse_structured_comment(), fta_strip_aa(), GetDescrComment(), GetSPDescrComment(), GetSPDescrTitle(), ind_subdbp(), LoadEntry(), LoadEntryGenbank(), ShrinkSpaces(), SPPostProcVarSeq(), SPValidateEcnum(), stripStr(), XMLGetDescr(), and XMLGetDescrComment().
Definition at line 486 of file utilfun.cpp.
References NStr::EqualCase(), i, StringLen(), and text().
Referenced by CheckDIV(), CheckNA(), CheckNADDBJ(), CkSPComTopics(), EmblGetDivisionNewID(), GetDescrEmblBlock(), GetEmblBlockXref(), IsTPAAccPrefix(), IsTSAAccPrefix(), IsWGSAccPrefix(), ParseSpComment(), and XMLGetEMBLBlock().
bool fta_tls_keywords_check | ( | const TKeywordList & | kwds, |
Parser::ESource | source | ||
) |
Definition at line 1136 of file utilfun.cpp.
References Parser::EMBL, NStr::EqualNocase(), ERR_KEYWORD_MissingTLSKeywords, ErrPostStr, i, ncbi::grid::netcache::search::fields::key, MatchArrayIString(), ParFlat_TLS_kw_array, SEV_REJECT, and rapidjson::source.
Referenced by GetDescrEmblBlock(), GetGBBlock(), and XMLGetGBBlock().
bool fta_tpa_keywords_check | ( | const TKeywordList & | kwds | ) |
Definition at line 1020 of file utilfun.cpp.
References b, buf, NStr::EqualNocase(), ERR_KEYWORD_ConflictingTPATiers, ERR_KEYWORD_InvalidTPATier, ERR_KEYWORD_MissingTPAKeywords, ERR_KEYWORD_MissingTPATier, ERR_KEYWORD_UnexpectedTPA, ErrPostEx, ErrPostStr, i, ncbi::grid::netcache::search::fields::key, len, MatchArrayIString(), ParFlat_TPA_kw_array, SEV_ERROR, SEV_REJECT, and SEV_WARNING.
Referenced by GetDescrEmblBlock(), GetGBBlock(), and XMLGetGBBlock().
bool fta_tsa_keywords_check | ( | const TKeywordList & | kwds, |
Parser::ESource | source | ||
) |
Definition at line 1102 of file utilfun.cpp.
References Parser::EMBL, NStr::EqualNocase(), ERR_KEYWORD_MissingTSAKeywords, ErrPostStr, i, ncbi::grid::netcache::search::fields::key, MatchArrayIString(), ParFlat_TSA_kw_array, SEV_REJECT, and rapidjson::source.
Referenced by GetDescrEmblBlock(), GetGBBlock(), and XMLGetGBBlock().
CRef<objects::CDate_std> get_full_date | ( | const Char * | s, |
bool | is_ref, | ||
Parser::ESource | source | ||
) |
Definition at line 827 of file utilfun.cpp.
References ERR_DATE_IllegalDate, ERR_REFERENCE_IllegalDate, ErrPostEx, int, isdigit(), months, msg(), CRef< C, Locker >::Reset(), CDate_std_Base::SetDay(), CDate_std_Base::SetMonth(), CDate_std_Base::SetYear(), SEV_ERROR, SEV_WARNING, rapidjson::source, Parser::SPROT, StringNCpy(), and CTime::Year().
Referenced by get_pat(), get_sub(), get_sub_gsdb(), GetCitPatent(), GetUpdateDate(), and MakeDatePtr().
Definition at line 644 of file utilfun.cpp.
References indent(), last(), NStr::Split(), NStr::StartsWith(), and NStr::TruncateSpacesInPlace().
Referenced by GetDescrEmblBlock(), GetEmblDescr(), GetGBBlock(), GetGenBankDescr(), GetGenBankLineage(), GetSequenceOfKeywords(), GetSPDescrTitle(), SPFeatGeneRef(), SPFeatProtRef(), and SprotRefString().
objects::CScope& GetScope | ( | ) |
Definition at line 70 of file unit_test_seq_loc_cmp.cpp.
References CScope::AddDefaults(), CScope::AddTopLevelSeqEntry(), CObjectManager::GetInstance(), MSerial_AsnText, CGBDataLoader::RegisterInObjectManager(), CRef< C, Locker >::Reset(), s_Initialized, and sc_TestEntry.
Referenced by CGBDocument::AddItems(), CGBDocument::AttachDataLoader(), CGBDocument::AttachProjectItems(), BOOST_AUTO_TEST_CASE(), CFlatFileParser::CFlatFileParser(), check_end_internal(), CkEndStop(), CGBDocument::CreateProjectScope(), DealWithGenes(), CGBDocument::DetachDataLoader(), CEditingBtnsPanel::EditSequence(), CSequenceEditingEventHandler::EditSequence(), EmblAscii(), EndAdded(), FinalCleanup(), FindCitInFeats(), fta_add_hist(), fta_get_gi_for_seq_id(), fta_parse_buf(), GenBankAscii(), GenBankAsciiOrig(), GetProtRefDescr(), CMiscSeqTableColumn::GetRelatedApplyObjects(), GetTrnaAnticodon(), InitAlnStats(), CAlnTestApp::LoadInputAlns(), CAlnBuildApp::LoadInputAlns(), CDiscrepancyPanel::OnSegregate(), CDiscrepancyPanel::OnSequester(), OutputEmblAsn(), PackSeqPntCheckCpp(), CAlnBuildApp::PrintAnchoredAln(), ProcNucProt(), CGBDocument::ReplaceGiSeqIds(), CAlnTestApp::Run(), s_CloneBlastQueryVector(), SeqIntCheckCpp(), SeqPntCheckCpp(), sParseFlatfile(), SpPrepareEntry(), Translate(), CGBDocument::x_AttachProjectItems(), CGBDocument::x_DetachProjectItems(), CDBSourceItem::x_FormatDBSourceID(), CAlnSpanVertModel::x_Init(), CBuffer_DataLoader::x_LoadData(), CSeqGraphicWidget::x_SaveVectorImage(), CSeqGraphicWidget::x_UpdateMarkerInfo(), and XMLAscii().
char* GetTheCurrentToken | ( | char ** | ptr | ) |
Definition at line 727 of file utilfun.cpp.
References CleanTailNoneAlphaChar(), str(), and StringSave.
Referenced by ParseRLDataSP().
bool HasHtc | ( | const TKeywordList & | keywords | ) |
Definition at line 1603 of file utilfun.cpp.
References NStr::EqualNocase(), and ncbi::grid::netcache::search::fields::key.
Referenced by GetDescrEmblBlock(), GetGBBlock(), XMLGetEMBLBlock(), and XMLGetGBBlock().
bool HasHtg | ( | const TKeywordList & | keywords | ) |
Definition at line 1574 of file utilfun.cpp.
References ncbi::grid::netcache::search::fields::key.
Referenced by GetDescrEmblBlock(), GetGBBlock(), XMLGetEMBLBlock(), and XMLGetGBBlock().
bool IsCancelled | ( | const TKeywordList & | keywords | ) |
Definition at line 1563 of file utilfun.cpp.
References NStr::EqualNocase(), and ncbi::grid::netcache::search::fields::key.
Referenced by GetDescrEmblBlock(), GetGBBlock(), XMLGetEMBLBlock(), and XMLGetGBBlock().
Definition at line 549 of file utilfun.cpp.
References NStr::EqualNocase(), i, and text().
Referenced by DbxrefQualToDbtag(), fta_check_mga_keywords(), fta_is_tls_keyword(), fta_is_tpa_keyword(), fta_is_tsa_keyword(), fta_remove_env_keywords(), fta_remove_mag_keywords(), fta_remove_tls_keywords(), fta_remove_tpa_keywords(), fta_remove_tsa_keywords(), fta_tls_keywords_check(), fta_tpa_keywords_check(), fta_tsa_keywords_check(), and SPGetPEValue().
Definition at line 623 of file utilfun.cpp.
References NStr::FindNoCase(), i, NPOS, and text().
Definition at line 533 of file utilfun.cpp.
References NStr::Equal(), i, and text().
Referenced by fta_check_ncrna(), fta_check_pseudogene_qual(), fta_check_satellite(), fta_keywords_check(), fta_remove_keywords(), GetFeatNameAndLoc(), and GetRnaRef().
Definition at line 578 of file utilfun.cpp.
References NStr::Find(), i, NPOS, and text().
Referenced by CkDateFormat().
Definition at line 265 of file utilfun.cpp.
References NStr::EqualCase(), ERR_ACCESSION_2ndAccPrefixMismatch, ERR_ACCESSION_Invalid2ndAccRange, ErrPostEx, first(), last(), SEV_REJECT, sIsPrefixChar(), NStr::SplitInTwo(), and NStr::StringToInt().
Referenced by GetAccession().
bool ParseAccessionRange | ( | TokenStatBlk * | tsbp, |
unsigned | skip | ||
) |
char* PointToNextToken | ( | char * | ptr | ) |
Definition at line 707 of file utilfun.cpp.
Referenced by GetDescrEmblBlock(), GetDescrSPBlock(), GetEmblBlockXref(), GetEmblInst(), GetEmblMolInfo(), GetReleaseInfo(), ParseRLDataSP(), and SprotIndex().
void RemoveHtgPhase | ( | TKeywordList & | keywords | ) |
Definition at line 1588 of file utilfun.cpp.
References NStr::EqualNocase(), and ncbi::grid::netcache::search::fields::key.
Referenced by GetDescrEmblBlock(), GetGBBlock(), XMLGetEMBLBlock(), and XMLGetGBBlock().
int SrchKeyword | ( | const CTempString & | ptr, |
const vector< string > & | keywordList | ||
) |
Definition at line 897 of file utilfun.cpp.
References i, ParFlat_UNKW, and NStr::StartsWith().
Referenced by GenBankIndex(), GetEmblBlock(), GetGenBankBlock(), and xGetGenBankBlocks().
char* SrchTheChar | ( | char * | bptr, |
char * | eptr, | ||
Char | letter | ||
) |
Definition at line 759 of file utilfun.cpp.
Referenced by BuildFeatureBlock(), GetDescrComment(), GetEmblBlockXref(), GetEmblDate(), GetGBBlock(), GetReleaseInfo(), GetSubNodeType(), ParseSPFeat(), and TrimEmblFeatBlk().
char* SrchTheStr | ( | char * | bptr, |
char * | eptr, | ||
const char * | str | ||
) |
Definition at line 779 of file utilfun.cpp.
References i.
Referenced by check_cds(), GetDescrComment(), GetEmblRefType(), GetFlatBiomol(), and GetReleaseInfo().
Definition at line 591 of file utilfun.cpp.
Referenced by CheckForUnusualFullLengthOrgs(), fill_orgref(), fta_get_trna_from_product(), fta_if_special_org(), fta_parse_rrna_feat(), fta_remark_is_er(), fta_strip_pub_comment(), get_embl_pmid(), get_embl_str_pub_id(), get_muid(), get_plasmid(), GetCitBook(), GetCitBookOld(), GetFlatBiomol(), GetRnaRef(), GetSPDate(), GetSPDescrTitle(), GetTaxnameNameFromDescrs(), GetViralHostsFrom_OH(), QualsToSeqID(), SPFeatGeneRef(), and SPGetVerNum().
Definition at line 507 of file utilfun.cpp.
References NStr::EqualNocase(), i, StringLen(), and text().
Referenced by CheckDelGbblockSourceFromDescrs(), CkLocusLinePos(), get_plasmid(), GetGenomeInfo(), GetSPGenome(), UpdateRawBioSource(), XMLCheckSTRAND(), and XMLCheckTPG().
unique_ptr<TokenStatBlk> TokenString | ( | const char * | str, |
Char | delimiter | ||
) |
Definition at line 445 of file utilfun.cpp.
References delimiter, TokenStatBlk::list, TokenStatBlk::num, and str().
Referenced by EmblIndex(), GetAccession(), GetSegment(), InitialEntry(), SprotIndex(), and XMLGetSegment().
Definition at line 994 of file utilfun.cpp.
References EntryBlk::chain, DataBlk::mpData, DataBlk::mpNext, and DataBlk::mType.
Referenced by AddNIDSeqId(), check_cds(), DefVsHTGKeywords(), FakeEmblBioSources(), get_plasmid(), GetEmblDescr(), GetEmblInstContig(), GetEmblSubBlock(), GetFlatBiomol(), GetGenBankDescr(), GetGenBankInstContig(), GetGenBankSubBlock(), GetSprotDescr(), GetSprotSubBlock(), ImpFeatPub(), LoadFeat(), SeqFeatPub(), SrchNodeSubType(), SrchNodeType(), xGetNodeData(), and xSrchNodeType().
void UnwrapAccessionRange | ( | const objects::CGB_block::TExtra_accessions & | extra_accs, |
objects::CGB_block::TExtra_accessions & | hist | ||
) |
void xCheckEstStsGssTpaKeywords | ( | const std::list< std::string > | keywordList, |
bool | tpa_check, | ||
IndexblkPtr | entry | ||
) |
Definition at line 977 of file utilfun.cpp.
References string, tmp, and TrackNodeType().
Referenced by GetSequenceOfKeywords().
Definition at line 963 of file utilfun.cpp.
References len, DataBlk::len, DataBlk::mOffset, and TrackNodeType().
Referenced by fta_get_user_object(), GetDescrEmblBlock(), GetEmblBlockXref(), GetEmblDate(), GetEmblDescr(), GetFlatBiomol(), GetGBBlock(), GetGenBankDescr(), GetReleaseInfo(), and GetSeqData().
Definition at line 1008 of file utilfun.cpp.
References Entry::mSections, and Section::mType.