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

Search Toolkit Book for CCleanupHugeAsnReader

#include "huge_file_cleanup.hpp"
(Private to src/app/asn_cleanup.)

+ Inheritance diagram for CCleanupHugeAsnReader:
+ Collaboration diagram for CCleanupHugeAsnReader:

Classes

struct  TFeatIdInfo
 

Public Types

enum  EOptions { eExtendedCleanup = 1 , eNoNcbiUserObjects = 1<<1 , eEnableSmallGenomeSets = 1<<2 }
 
using TOptions = int
 
using TParent = edit::CHugeAsnReader
 
using TFeatId = CFeat_id::TLocal::TId
 

Public Member Functions

 CCleanupHugeAsnReader (TOptions options)
 
virtual ~CCleanupHugeAsnReader ()=default
 
void FlattenGenbankSet () override
 
CRef< CSeq_entryLoadSeqEntry (const TBioseqSetInfo &info, eAddTopEntry add_top_entry=eAddTopEntry::yes) const override
 
const CCleanupChangeCoreGetChanges () const
 

Private Types

using TIdToFluLabel = map< CConstRef< CSeq_id >, string, CRefLess >
 

Private Member Functions

bool x_IsExtendedCleanup () const
 
void x_SetHooks (CObjectIStream &objStream, TContext &context) override
 
void x_SetBioseqHooks (CObjectIStream &objStream, TContext &context) override
 
void x_SetBioseqSetHooks (CObjectIStream &objStream, TContext &context) override
 
void x_SetSeqFeatHooks (CObjectIStream &objStream, TContext &context)
 
void x_RecordFeatureId (const CFeat_id &featId)
 
void x_CreateSmallGenomeSets ()
 
void x_PruneIfFeatsIncomplete ()
 
void x_PruneAndReorderTopIds ()
 
void x_PruneIfSegsMissing (const string &fluLabel, const set< size_t > &segsFound)
 
void x_CleanupTopLevelDescriptors ()
 
bool x_LooksLikeNucProtSet () const
 
void x_AddTopLevelDescriptors (CSeq_entry &entry) const
 
TIdToFluLabel::iterator x_GetFluLabel (const CConstRef< CSeq_id > &pId)
 

Private Attributes

list< CRef< CSeqdesc > > m_TopLevelBiosources
 
CRef< CSeqdescm_pTopLevelMolInfo
 
const TOptions m_CleanupOptions
 
CCleanupChangeCore m_Changes
 
TIdToFluLabel m_IdToFluLabel
 
map< string, list< TBioseqSetInfo > > m_FluLabelToSetInfo
 
map< TFileSize, stringm_SetPosToFluLabel
 
set< CConstRef< CSeq_id >, CRefLess > m_HasIncompleteFeats
 
TFeatIdInfo m_FeatIdInfo
 

Detailed Description

Definition at line 49 of file huge_file_cleanup.hpp.

Member Typedef Documentation

◆ TFeatId

Definition at line 69 of file huge_file_cleanup.hpp.

◆ TIdToFluLabel

Definition at line 91 of file huge_file_cleanup.hpp.

◆ TOptions

Definition at line 58 of file huge_file_cleanup.hpp.

◆ TParent

using CCleanupHugeAsnReader::TParent = edit::CHugeAsnReader

Definition at line 62 of file huge_file_cleanup.hpp.

Member Enumeration Documentation

◆ EOptions

Enumerator
eExtendedCleanup 
eNoNcbiUserObjects 
eEnableSmallGenomeSets 

Definition at line 52 of file huge_file_cleanup.hpp.

Constructor & Destructor Documentation

◆ CCleanupHugeAsnReader()

CCleanupHugeAsnReader::CCleanupHugeAsnReader ( TOptions  options)

Definition at line 54 of file huge_file_cleanup.cpp.

◆ ~CCleanupHugeAsnReader()

virtual CCleanupHugeAsnReader::~CCleanupHugeAsnReader ( )
virtualdefault

Member Function Documentation

◆ FlattenGenbankSet()

void CCleanupHugeAsnReader::FlattenGenbankSet ( )
override

◆ GetChanges()

const CCleanupChangeCore & CCleanupHugeAsnReader::GetChanges ( ) const

Definition at line 58 of file huge_file_cleanup.cpp.

References m_Changes.

◆ LoadSeqEntry()

CRef< CSeq_entry > CCleanupHugeAsnReader::LoadSeqEntry ( const TBioseqSetInfo &  info,
eAddTopEntry  add_top_entry = eAddTopEntry::yes 
) const
override

◆ x_AddTopLevelDescriptors()

void CCleanupHugeAsnReader::x_AddTopLevelDescriptors ( CSeq_entry entry) const
private

◆ x_CleanupTopLevelDescriptors()

void CCleanupHugeAsnReader::x_CleanupTopLevelDescriptors ( )
private

◆ x_CreateSmallGenomeSets()

void CCleanupHugeAsnReader::x_CreateSmallGenomeSets ( )
private

◆ x_GetFluLabel()

CCleanupHugeAsnReader::TIdToFluLabel::iterator CCleanupHugeAsnReader::x_GetFluLabel ( const CConstRef< CSeq_id > &  pId)
private

◆ x_IsExtendedCleanup()

bool CCleanupHugeAsnReader::x_IsExtendedCleanup ( ) const
private

◆ x_LooksLikeNucProtSet()

bool CCleanupHugeAsnReader::x_LooksLikeNucProtSet ( ) const
private

◆ x_PruneAndReorderTopIds()

void CCleanupHugeAsnReader::x_PruneAndReorderTopIds ( )
private

◆ x_PruneIfFeatsIncomplete()

void CCleanupHugeAsnReader::x_PruneIfFeatsIncomplete ( )
private

◆ x_PruneIfSegsMissing()

void CCleanupHugeAsnReader::x_PruneIfSegsMissing ( const string fluLabel,
const set< size_t > &  segsFound 
)
private

◆ x_RecordFeatureId()

void CCleanupHugeAsnReader::x_RecordFeatureId ( const CFeat_id featId)
private

◆ x_SetBioseqHooks()

void CCleanupHugeAsnReader::x_SetBioseqHooks ( CObjectIStream objStream,
TContext &  context 
)
overrideprivate

◆ x_SetBioseqSetHooks()

void CCleanupHugeAsnReader::x_SetBioseqSetHooks ( CObjectIStream objStream,
TContext &  context 
)
overrideprivate

◆ x_SetHooks()

void CCleanupHugeAsnReader::x_SetHooks ( CObjectIStream objStream,
TContext &  context 
)
overrideprivate

Definition at line 790 of file huge_file_cleanup.cpp.

References context, and x_SetSeqFeatHooks().

◆ x_SetSeqFeatHooks()

void CCleanupHugeAsnReader::x_SetSeqFeatHooks ( CObjectIStream objStream,
TContext &  context 
)
private

Member Data Documentation

◆ m_Changes

CCleanupChangeCore CCleanupHugeAsnReader::m_Changes
mutableprivate

◆ m_CleanupOptions

const TOptions CCleanupHugeAsnReader::m_CleanupOptions
private

◆ m_FeatIdInfo

TFeatIdInfo CCleanupHugeAsnReader::m_FeatIdInfo
private

◆ m_FluLabelToSetInfo

map<string, list<TBioseqSetInfo> > CCleanupHugeAsnReader::m_FluLabelToSetInfo
private

◆ m_HasIncompleteFeats

set<CConstRef<CSeq_id>, CRefLess> CCleanupHugeAsnReader::m_HasIncompleteFeats
private

Definition at line 96 of file huge_file_cleanup.hpp.

Referenced by x_PruneIfFeatsIncomplete(), and x_SetSeqFeatHooks().

◆ m_IdToFluLabel

TIdToFluLabel CCleanupHugeAsnReader::m_IdToFluLabel
private

◆ m_pTopLevelMolInfo

CRef<CSeqdesc> CCleanupHugeAsnReader::m_pTopLevelMolInfo
private

Definition at line 88 of file huge_file_cleanup.hpp.

Referenced by x_AddTopLevelDescriptors(), and x_CleanupTopLevelDescriptors().

◆ m_SetPosToFluLabel

map<TFileSize, string> CCleanupHugeAsnReader::m_SetPosToFluLabel
private

◆ m_TopLevelBiosources

list<CRef<CSeqdesc> > CCleanupHugeAsnReader::m_TopLevelBiosources
private

Definition at line 87 of file huge_file_cleanup.hpp.

Referenced by x_AddTopLevelDescriptors(), and x_CleanupTopLevelDescriptors().


The documentation for this class was generated from the following files:
Modified on Fri May 03 15:50:30 2024 by modify_doxy.py rev. 669887