NCBI C++ ToolKit
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Static Private Member Functions | Private Attributes | List of all members
CTable2AsnContext Class Reference

Search Toolkit Book for CTable2AsnContext

#include "table2asn_context.hpp"
(Private to src/app/table2asn.)

+ Collaboration diagram for CTable2AsnContext:

Classes

struct  SPrtAlnOptions
 

Public Member Functions

 CTable2AsnContext ()
 
 ~CTable2AsnContext ()
 
void SetOrganismData (objects::CSeq_descr &SD, int genome_code, const string &taxname, int taxid, const string &strain) const
 
std::ostream & GetOstream (eFiles suffix)
 
void SetOutputFilename (eFiles kind, const string &filename)
 
void SetOutputFile (eFiles kind, ostream &ostr)
 
void OpenDiagnosticOutputs ()
 
void OpenDataOutputs ()
 
void DeleteOutputs ()
 
void CloseDiagnosticOutputs ()
 
void CloseDataOutputs ()
 
string GenerateOutputFilename (eFiles kind, string_view basename=kEmptyStr) const
 
bool ApplyCreateUpdateDates (objects::CSeq_entry &entry) const
 
void ApplyUpdateDate (objects::CSeq_entry &entry) const
 
void ApplyAccession (objects::CSeq_entry &entry) const
 
void ApplyFileTracks (objects::CSeq_entry &entry) const
 
void ApplyComments (objects::CSeq_entry &entry) const
 
CRef< CSerialObjectCreateSubmitFromTemplate (CRef< objects::CSeq_entry > &object, CRef< objects::CSeq_submit > &submit) const
 
CRef< CSerialObjectCreateSeqEntryFromTemplate (CRef< objects::CSeq_entry > object) const
 
void UpdateSubmitObject (CRef< objects::CSeq_submit > &submit) const
 
void MergeWithTemplate (objects::CSeq_entry &entry) const
 
void SetSeqId (objects::CSeq_entry &entry) const
 
void CopyFeatureIdsToComments (objects::CSeq_entry &entry) const
 
void RemoveUnnecessaryXRef (objects::CSeq_entry &entry) const
 
void SmartFeatureAnnotation (objects::CSeq_entry &entry) const
 
void CorrectCollectionDates (objects::CSeq_entry &entry) const
 
void MakeGenomeCenterId (objects::CSeq_entry &entry) const
 
void RenameProteinIdsQuals (objects::CSeq_feat &feature) const
 
void RemoveProteinIdsQuals (objects::CSeq_feat &feature) const
 

Static Public Member Functions

static void AddUserTrack (objects::CSeq_descr &SD, const string &type, const string &label, const string &data)
 
static objects::CUser_object & SetUserObject (objects::CSeq_descr &descr, const CTempString &type)
 
static bool IsDBLink (const objects::CSeqdesc &desc)
 
static bool GetOrgName (string &name, const objects::CSeq_entry &entry)
 
static CRef< objects::COrg_ref > GetOrgRef (objects::CSeq_descr &descr)
 
static void UpdateTaxonFromTable (objects::CBioseq &bioseq)
 
static void MergeSeqDescr (objects::CSeq_entry &dest, const objects::CSeq_descr &src, bool only_set)
 

Public Attributes

string m_current_file
 
string m_ResultsDirectory
 
CNcbiOstreamm_output { nullptr }
 
string m_output_filename
 
string m_base_name
 
CRef< objects::CSeq_id > m_accession
 
string m_OrganismName
 
string m_single_source_qual_file
 
string m_Comment
 
string m_single_annot_file
 
string m_ft_url
 
string m_ft_url_mod
 
CTime m_HoldUntilPublish
 
string F
 
string A
 
string m_genome_center_id
 
string m_validate
 
bool m_delay_genprodset { false }
 
string G
 
bool R { false }
 
bool S { false }
 
string Q
 
bool L { false }
 
bool W { false }
 
bool m_t { false }
 
bool m_save_bioseq_set { false }
 
string c
 
string zOufFile
 
string X
 
string m_master_genome_flag
 
string m
 
string m_cleanup
 
string m_single_structure_cmt
 
string m_ProjectVersionNumber
 
string m_disc_lineage
 
bool m_RemoteTaxonomyLookup { false }
 
bool m_RemotePubLookup { false }
 
bool m_HandleAsSet { false }
 
objects::CBioseq_set::TClass m_ClassValue { objects::CBioseq_set::eClass_genbank }
 
bool m_SetIDFromFile { false }
 
TSeqPos m_gapNmin { 0 }
 
TSeqPos m_gap_Unknown_length { 0 }
 
TSeqPos m_minimal_sequence_length { 0 }
 
objects::CGapsEditor::TEvidenceSet m_DefaultEvidence
 
objects::CGapsEditor::TCountToEvidenceMap m_GapsizeToEvidence
 
int m_gap_type { -1 }
 
bool m_fcs_trim { false }
 
bool m_split_log_files { false }
 
bool m_postprocess_pubs { false }
 
string m_asn1_suffix
 
string m_locus_tag_prefix
 
bool m_locus_tags_needed
 
bool m_use_hypothetic_protein { false }
 
bool m_eukaryote { false }
 
bool m_di_fasta { false }
 
bool m_d_fasta { false }
 
bool m_allow_accession { false }
 
bool m_verbose { false }
 
SPrtAlnOptions prtAlnOptions
 
bool m_make_flatfile { false }
 
bool m_run_discrepancy { false }
 
bool m_split_discrepancy { false }
 
bool m_accumulate_mods { false }
 
bool m_binary_asn1_output { false }
 
bool m_can_use_huge_files { false }
 
bool m_huge_files_mode { false }
 
bool m_disable_huge_files { false }
 
optional< size_t > m_use_threads {}
 
NDiscrepancy::EGroup m_discrepancy_group { NDiscrepancy::eOncaller }
 
unique_ptr< objects::edit::CRemoteUpdater > m_remote_updater
 
unique_ptr< objects::CFixSuspectProductNamem_suspect_rules
 
CRef< objects::CSeq_submit > m_submit_template
 
CRef< objects::CSeq_entry > m_entry_template
 
objects::ILineErrorListener * m_logger { nullptr }
 
unique_ptr< CValidMessageHandlerpValMsgHandler
 
CRef< objects::CObjectManager > m_ObjMgr
 
string mCommandLineMods
 
std::mutex m_mutex
 

Static Private Member Functions

static void x_ApplyAccession (const CTable2AsnContext &context, objects::CBioseq &bioseq)
 

Private Attributes

CDiagnosticFileSet mDiagnosticWriters
 
CDataFileSet mDataWriters
 
CDiagnosticFileSet::fileset_type mCurrentDiagnosticOutputs
 
CDataFileSet::fileset_type mCurrentDataOutputs
 

Detailed Description

Definition at line 90 of file table2asn_context.hpp.

Constructor & Destructor Documentation

◆ CTable2AsnContext()

CTable2AsnContext::CTable2AsnContext ( )

◆ ~CTable2AsnContext()

CTable2AsnContext::~CTable2AsnContext ( )

Definition at line 186 of file table2asn_context.cpp.

Member Function Documentation

◆ AddUserTrack()

void CTable2AsnContext::AddUserTrack ( objects::CSeq_descr &  SD,
const string type,
const string label,
const string data 
)
static

◆ ApplyAccession()

void CTable2AsnContext::ApplyAccession ( objects::CSeq_entry &  entry) const

◆ ApplyComments()

void CTable2AsnContext::ApplyComments ( objects::CSeq_entry &  entry) const

◆ ApplyCreateUpdateDates()

bool CTable2AsnContext::ApplyCreateUpdateDates ( objects::CSeq_entry &  entry) const

◆ ApplyFileTracks()

void CTable2AsnContext::ApplyFileTracks ( objects::CSeq_entry &  entry) const

◆ ApplyUpdateDate()

void CTable2AsnContext::ApplyUpdateDate ( objects::CSeq_entry &  entry) const

◆ CloseDataOutputs()

void CTable2AsnContext::CloseDataOutputs ( )

◆ CloseDiagnosticOutputs()

void CTable2AsnContext::CloseDiagnosticOutputs ( )

◆ CopyFeatureIdsToComments()

void CTable2AsnContext::CopyFeatureIdsToComments ( objects::CSeq_entry &  entry) const

◆ CorrectCollectionDates()

void CTable2AsnContext::CorrectCollectionDates ( objects::CSeq_entry &  entry) const

Definition at line 844 of file table2asn_context.cpp.

References m_cleanup, and objects::VisitAllSetandSeq().

Referenced by CTbl2AsnApp::ProcessSingleEntry().

◆ CreateSeqEntryFromTemplate()

CRef< CSerialObject > CTable2AsnContext::CreateSeqEntryFromTemplate ( CRef< objects::CSeq_entry >  object) const

◆ CreateSubmitFromTemplate()

CRef< CSerialObject > CTable2AsnContext::CreateSubmitFromTemplate ( CRef< objects::CSeq_entry > &  object,
CRef< objects::CSeq_submit > &  submit 
) const

◆ DeleteOutputs()

void CTable2AsnContext::DeleteOutputs ( )

◆ GenerateOutputFilename()

string CTable2AsnContext::GenerateOutputFilename ( eFiles  kind,
string_view  basename = kEmptyStr 
) const

◆ GetOrgName()

bool CTable2AsnContext::GetOrgName ( string name,
const objects::CSeq_entry &  entry 
)
static

◆ GetOrgRef()

CRef< COrg_ref > CTable2AsnContext::GetOrgRef ( objects::CSeq_descr &  descr)
static

Definition at line 760 of file table2asn_context.cpp.

References Ref(), CSeq_descr_Base::Set(), and rapidjson::source.

Referenced by UpdateTaxonFromTable().

◆ GetOstream()

std::ostream & CTable2AsnContext::GetOstream ( eFiles  suffix)

◆ IsDBLink()

bool CTable2AsnContext::IsDBLink ( const objects::CSeqdesc &  desc)
static

◆ MakeGenomeCenterId()

void CTable2AsnContext::MakeGenomeCenterId ( objects::CSeq_entry &  entry) const

◆ MergeSeqDescr()

void CTable2AsnContext::MergeSeqDescr ( objects::CSeq_entry &  dest,
const objects::CSeq_descr &  src,
bool  only_set 
)
static

◆ MergeWithTemplate()

void CTable2AsnContext::MergeWithTemplate ( objects::CSeq_entry &  entry) const

◆ OpenDataOutputs()

void CTable2AsnContext::OpenDataOutputs ( )

◆ OpenDiagnosticOutputs()

void CTable2AsnContext::OpenDiagnosticOutputs ( )

◆ RemoveProteinIdsQuals()

void CTable2AsnContext::RemoveProteinIdsQuals ( objects::CSeq_feat &  feature) const

◆ RemoveUnnecessaryXRef()

void CTable2AsnContext::RemoveUnnecessaryXRef ( objects::CSeq_entry &  entry) const

◆ RenameProteinIdsQuals()

void CTable2AsnContext::RenameProteinIdsQuals ( objects::CSeq_feat &  feature) const

◆ SetOrganismData()

void CTable2AsnContext::SetOrganismData ( objects::CSeq_descr &  SD,
int  genome_code,
const string taxname,
int  taxid,
const string strain 
) const

◆ SetOutputFile()

void CTable2AsnContext::SetOutputFile ( eFiles  kind,
ostream &  ostr 
)

◆ SetOutputFilename()

void CTable2AsnContext::SetOutputFilename ( eFiles  kind,
const string filename 
)

◆ SetSeqId()

void CTable2AsnContext::SetSeqId ( objects::CSeq_entry &  entry) const

◆ SetUserObject()

CUser_object & CTable2AsnContext::SetUserObject ( objects::CSeq_descr &  descr,
const CTempString type 
)
static

◆ SmartFeatureAnnotation()

void CTable2AsnContext::SmartFeatureAnnotation ( objects::CSeq_entry &  entry) const

◆ UpdateSubmitObject()

void CTable2AsnContext::UpdateSubmitObject ( CRef< objects::CSeq_submit > &  submit) const

◆ UpdateTaxonFromTable()

void CTable2AsnContext::UpdateTaxonFromTable ( objects::CBioseq &  bioseq)
static

◆ x_ApplyAccession()

static void CTable2AsnContext::x_ApplyAccession ( const CTable2AsnContext context,
objects::CBioseq &  bioseq 
)
staticprivate

Member Data Documentation

◆ A

string CTable2AsnContext::A

Definition at line 107 of file table2asn_context.hpp.

◆ c

string CTable2AsnContext::c

Definition at line 119 of file table2asn_context.hpp.

◆ F

string CTable2AsnContext::F

Definition at line 106 of file table2asn_context.hpp.

◆ G

string CTable2AsnContext::G

Definition at line 111 of file table2asn_context.hpp.

◆ L

bool CTable2AsnContext::L { false }

Definition at line 115 of file table2asn_context.hpp.

◆ m

string CTable2AsnContext::m

Definition at line 123 of file table2asn_context.hpp.

◆ m_accession

CRef<objects::CSeq_id> CTable2AsnContext::m_accession

Definition at line 98 of file table2asn_context.hpp.

Referenced by ApplyAccession().

◆ m_accumulate_mods

bool CTable2AsnContext::m_accumulate_mods { false }

Definition at line 164 of file table2asn_context.hpp.

Referenced by CTbl2AsnApp::ProcessSecretFiles1Phase().

◆ m_allow_accession

bool CTable2AsnContext::m_allow_accession { false }

Definition at line 151 of file table2asn_context.hpp.

Referenced by CHugeFastaReader::Open(), and CMultiReader::xReadFasta().

◆ m_asn1_suffix

string CTable2AsnContext::m_asn1_suffix

Definition at line 144 of file table2asn_context.hpp.

Referenced by GenerateOutputFilename().

◆ m_base_name

string CTable2AsnContext::m_base_name

Definition at line 97 of file table2asn_context.hpp.

Referenced by CTbl2AsnApp::ProcessHugeFile().

◆ m_binary_asn1_output

bool CTable2AsnContext::m_binary_asn1_output { false }

◆ m_can_use_huge_files

bool CTable2AsnContext::m_can_use_huge_files { false }

Definition at line 166 of file table2asn_context.hpp.

◆ m_ClassValue

objects::CBioseq_set::TClass CTable2AsnContext::m_ClassValue { objects::CBioseq_set::eClass_genbank }

◆ m_cleanup

string CTable2AsnContext::m_cleanup

◆ m_Comment

string CTable2AsnContext::m_Comment

Definition at line 101 of file table2asn_context.hpp.

Referenced by ApplyComments().

◆ m_current_file

string CTable2AsnContext::m_current_file

◆ m_d_fasta

bool CTable2AsnContext::m_d_fasta { false }

◆ m_DefaultEvidence

objects::CGapsEditor::TEvidenceSet CTable2AsnContext::m_DefaultEvidence

◆ m_delay_genprodset

bool CTable2AsnContext::m_delay_genprodset { false }

Definition at line 110 of file table2asn_context.hpp.

Referenced by CTbl2AsnApp::ProcessSingleEntry().

◆ m_di_fasta

bool CTable2AsnContext::m_di_fasta { false }

◆ m_disable_huge_files

bool CTable2AsnContext::m_disable_huge_files { false }

Definition at line 168 of file table2asn_context.hpp.

◆ m_disc_lineage

string CTable2AsnContext::m_disc_lineage

Definition at line 127 of file table2asn_context.hpp.

Referenced by CTable2AsnValidator::x_PopulateDiscrepancy().

◆ m_discrepancy_group

NDiscrepancy::EGroup CTable2AsnContext::m_discrepancy_group { NDiscrepancy::eOncaller }

Definition at line 172 of file table2asn_context.hpp.

Referenced by CTable2AsnValidator::x_PopulateDiscrepancy().

◆ m_entry_template

CRef<objects::CSeq_entry> CTable2AsnContext::m_entry_template

◆ m_eukaryote

bool CTable2AsnContext::m_eukaryote { false }

Definition at line 148 of file table2asn_context.hpp.

Referenced by CMultiReader::x_PostProcessAnnots().

◆ m_fcs_trim

bool CTable2AsnContext::m_fcs_trim { false }

◆ m_ft_url

string CTable2AsnContext::m_ft_url

Definition at line 103 of file table2asn_context.hpp.

Referenced by ApplyFileTracks().

◆ m_ft_url_mod

string CTable2AsnContext::m_ft_url_mod

Definition at line 104 of file table2asn_context.hpp.

Referenced by ApplyFileTracks().

◆ m_gap_type

int CTable2AsnContext::m_gap_type { -1 }

◆ m_gap_Unknown_length

TSeqPos CTable2AsnContext::m_gap_Unknown_length { 0 }

◆ m_gapNmin

TSeqPos CTable2AsnContext::m_gapNmin { 0 }

◆ m_GapsizeToEvidence

objects::CGapsEditor::TCountToEvidenceMap CTable2AsnContext::m_GapsizeToEvidence

◆ m_genome_center_id

string CTable2AsnContext::m_genome_center_id

◆ m_HandleAsSet

bool CTable2AsnContext::m_HandleAsSet { false }

◆ m_HoldUntilPublish

CTime CTable2AsnContext::m_HoldUntilPublish

Definition at line 105 of file table2asn_context.hpp.

Referenced by UpdateSubmitObject().

◆ m_huge_files_mode

bool CTable2AsnContext::m_huge_files_mode { false }

◆ m_locus_tag_prefix

string CTable2AsnContext::m_locus_tag_prefix

Definition at line 145 of file table2asn_context.hpp.

Referenced by CMultiReader::x_PostProcessAnnots().

◆ m_locus_tags_needed

bool CTable2AsnContext::m_locus_tags_needed

Definition at line 146 of file table2asn_context.hpp.

Referenced by CMultiReader::x_PostProcessAnnots().

◆ m_logger

objects::ILineErrorListener* CTable2AsnContext::m_logger { nullptr }

◆ m_make_flatfile

bool CTable2AsnContext::m_make_flatfile { false }

Definition at line 161 of file table2asn_context.hpp.

Referenced by CTbl2AsnApp::ProcessHugeFile().

◆ m_master_genome_flag

string CTable2AsnContext::m_master_genome_flag

◆ m_minimal_sequence_length

TSeqPos CTable2AsnContext::m_minimal_sequence_length { 0 }

◆ m_mutex

std::mutex CTable2AsnContext::m_mutex
mutable

Definition at line 241 of file table2asn_context.hpp.

◆ m_ObjMgr

CRef<objects::CObjectManager> CTable2AsnContext::m_ObjMgr

Definition at line 233 of file table2asn_context.hpp.

Referenced by CTbl2AsnApp::ProcessSingleEntry().

◆ m_OrganismName

string CTable2AsnContext::m_OrganismName

Definition at line 99 of file table2asn_context.hpp.

◆ m_output

CNcbiOstream* CTable2AsnContext::m_output { nullptr }

Definition at line 95 of file table2asn_context.hpp.

◆ m_output_filename

string CTable2AsnContext::m_output_filename

Definition at line 96 of file table2asn_context.hpp.

Referenced by GenerateOutputFilename().

◆ m_postprocess_pubs

bool CTable2AsnContext::m_postprocess_pubs { false }

Definition at line 143 of file table2asn_context.hpp.

Referenced by CTbl2AsnApp::ProcessSingleEntry().

◆ m_ProjectVersionNumber

string CTable2AsnContext::m_ProjectVersionNumber

Definition at line 126 of file table2asn_context.hpp.

◆ m_remote_updater

unique_ptr<objects::edit::CRemoteUpdater> CTable2AsnContext::m_remote_updater

◆ m_RemotePubLookup

bool CTable2AsnContext::m_RemotePubLookup { false }

Definition at line 129 of file table2asn_context.hpp.

Referenced by CTbl2AsnApp::ProcessSingleEntry().

◆ m_RemoteTaxonomyLookup

bool CTable2AsnContext::m_RemoteTaxonomyLookup { false }

Definition at line 128 of file table2asn_context.hpp.

Referenced by CTbl2AsnApp::ProcessSingleEntry().

◆ m_ResultsDirectory

string CTable2AsnContext::m_ResultsDirectory

Definition at line 94 of file table2asn_context.hpp.

Referenced by GenerateOutputFilename().

◆ m_run_discrepancy

bool CTable2AsnContext::m_run_discrepancy { false }

Definition at line 162 of file table2asn_context.hpp.

Referenced by CTable2AsnValidator::CollectDiscrepancies().

◆ m_save_bioseq_set

bool CTable2AsnContext::m_save_bioseq_set { false }

Definition at line 118 of file table2asn_context.hpp.

Referenced by CTbl2AsnApp::ProcessHugeFile().

◆ m_SetIDFromFile

bool CTable2AsnContext::m_SetIDFromFile { false }

Definition at line 132 of file table2asn_context.hpp.

Referenced by CTbl2AsnApp::ProcessSingleEntry().

◆ m_single_annot_file

string CTable2AsnContext::m_single_annot_file

Definition at line 102 of file table2asn_context.hpp.

◆ m_single_source_qual_file

string CTable2AsnContext::m_single_source_qual_file

Definition at line 100 of file table2asn_context.hpp.

◆ m_single_structure_cmt

string CTable2AsnContext::m_single_structure_cmt

Definition at line 125 of file table2asn_context.hpp.

◆ m_split_discrepancy

bool CTable2AsnContext::m_split_discrepancy { false }

Definition at line 163 of file table2asn_context.hpp.

Referenced by CTable2AsnValidator::CollectDiscrepancies().

◆ m_split_log_files

bool CTable2AsnContext::m_split_log_files { false }

Definition at line 142 of file table2asn_context.hpp.

◆ m_submit_template

CRef<objects::CSeq_submit> CTable2AsnContext::m_submit_template

◆ m_suspect_rules

unique_ptr<objects::CFixSuspectProductName> CTable2AsnContext::m_suspect_rules

Definition at line 176 of file table2asn_context.hpp.

Referenced by CTable2AsnValidator::Cleanup().

◆ m_t

bool CTable2AsnContext::m_t { false }

◆ m_use_hypothetic_protein

bool CTable2AsnContext::m_use_hypothetic_protein { false }

◆ m_use_threads

optional<size_t> CTable2AsnContext::m_use_threads {}

Definition at line 169 of file table2asn_context.hpp.

Referenced by CTbl2AsnApp::ProcessHugeFile().

◆ m_validate

string CTable2AsnContext::m_validate

◆ m_verbose

bool CTable2AsnContext::m_verbose { false }

Definition at line 152 of file table2asn_context.hpp.

Referenced by CTbl2AsnApp::ProcessSecretFiles1Phase().

◆ mCommandLineMods

string CTable2AsnContext::mCommandLineMods

Definition at line 234 of file table2asn_context.hpp.

Referenced by CTbl2AsnApp::ProcessSecretFiles1Phase().

◆ mCurrentDataOutputs

CDataFileSet::fileset_type CTable2AsnContext::mCurrentDataOutputs
private

Definition at line 249 of file table2asn_context.hpp.

Referenced by CloseDataOutputs(), GetOstream(), and OpenDataOutputs().

◆ mCurrentDiagnosticOutputs

CDiagnosticFileSet::fileset_type CTable2AsnContext::mCurrentDiagnosticOutputs
private

◆ mDataWriters

CDataFileSet CTable2AsnContext::mDataWriters
private

◆ mDiagnosticWriters

CDiagnosticFileSet CTable2AsnContext::mDiagnosticWriters
private

◆ prtAlnOptions

SPrtAlnOptions CTable2AsnContext::prtAlnOptions

Definition at line 159 of file table2asn_context.hpp.

Referenced by CFeatureTableReader::xAddProteinToSeqEntry().

◆ pValMsgHandler

unique_ptr<CValidMessageHandler> CTable2AsnContext::pValMsgHandler

◆ Q

string CTable2AsnContext::Q

Definition at line 114 of file table2asn_context.hpp.

◆ R

bool CTable2AsnContext::R { false }

Definition at line 112 of file table2asn_context.hpp.

◆ S

bool CTable2AsnContext::S { false }

Definition at line 113 of file table2asn_context.hpp.

◆ W

bool CTable2AsnContext::W { false }

Definition at line 116 of file table2asn_context.hpp.

◆ X

string CTable2AsnContext::X

Definition at line 121 of file table2asn_context.hpp.

◆ zOufFile

string CTable2AsnContext::zOufFile

Definition at line 120 of file table2asn_context.hpp.


The documentation for this class was generated from the following files:
Modified on Fri Sep 20 14:57:35 2024 by modify_doxy.py rev. 669887