NCBI C++ ToolKit
|
#include <ncbi_pch.hpp>
#include <corelib/ncbistd.hpp>
#include <objects/general/general__.hpp>
#include <objects/seqloc/seqloc__.hpp>
#include <objects/seq/seq__.hpp>
#include <objects/seqres/seqres__.hpp>
#include <objects/seqsplit/ID2S_Split_Info.hpp>
#include <objects/seqsplit/ID2S_Chunk.hpp>
#include <objmgr/impl/data_source.hpp>
#include <objmgr/impl/tse_loadlock.hpp>
#include <objmgr/impl/tse_chunk_info.hpp>
#include <objmgr/impl/tse_split_info.hpp>
#include <objmgr/impl/split_parser.hpp>
#include <objmgr/data_loader_factory.hpp>
#include <corelib/plugin_manager_impl.hpp>
#include <corelib/plugin_manager_store.hpp>
#include <serial/objistr.hpp>
#include <serial/serial.hpp>
#include <util/thread_nonstop.hpp>
#include <sra/error_codes.hpp>
#include <sra/readers/ncbi_traces_path.hpp>
#include <sra/readers/sra/wgsresolver.hpp>
#include <sra/readers/sra/impl/wgsresolver_impl.hpp>
#include <sra/data_loaders/wgs/wgsloader.hpp>
#include <sra/data_loaders/wgs/impl/wgsloader_impl.hpp>
#include <util/sequtil/sequtil_manip.hpp>
#include <algorithm>
#include <cmath>
Go to the source code of this file.
Go to the SVN repository for this file.
Classes | |
class | CIndexUpdateThread |
class | CWGSResolver_DL |
Macros | |
#define | NCBI_USE_ERRCODE_X WGSLoader |
Functions | |
NCBI_DEFINE_ERR_SUBCODE_X (23) | |
NCBI_PARAM_DECL (int, WGS_LOADER, DEBUG) | |
NCBI_PARAM_DEF_EX (int, WGS_LOADER, DEBUG, 0, eParam_NoThread, WGS_LOADER_DEBUG) | |
static int | GetDebugLevel (void) |
NCBI_PARAM_DECL (bool, WGS_LOADER, MASTER_DESCR) | |
NCBI_PARAM_DEF (bool, WGS_LOADER, MASTER_DESCR, true) | |
static bool | GetMasterDescrParam (void) |
NCBI_PARAM_DECL (size_t, WGS_LOADER, GC_SIZE) | |
NCBI_PARAM_DEF (size_t, WGS_LOADER, GC_SIZE, 100) | |
static size_t | GetGCSizeParam (void) |
NCBI_PARAM_DECL (string, WGS_LOADER, VOL_PATH) | |
NCBI_PARAM_DEF (string, WGS_LOADER, VOL_PATH, "") | |
static string | GetWGSVolPath (void) |
NCBI_PARAM_DECL (bool, WGS_LOADER, RESOLVE_GIS) | |
NCBI_PARAM_DEF (bool, WGS_LOADER, RESOLVE_GIS, true) | |
static bool | GetResolveGIsParam (void) |
NCBI_PARAM_DECL (bool, WGS_LOADER, RESOLVE_PROT_ACCS) | |
NCBI_PARAM_DEF (bool, WGS_LOADER, RESOLVE_PROT_ACCS, true) | |
static bool | GetResolveProtAccsParam (void) |
NCBI_PARAM_DECL (bool, WGS_LOADER, SPLIT_QUALITY_GRAPH) | |
NCBI_PARAM_DEF (bool, WGS_LOADER, SPLIT_QUALITY_GRAPH, true) | |
static bool | GetSplitQualityGraphParam (void) |
NCBI_PARAM_DECL (bool, WGS_LOADER, SPLIT_SEQUENCE) | |
NCBI_PARAM_DEF (bool, WGS_LOADER, SPLIT_SEQUENCE, true) | |
static bool | GetSplitSequenceParam (void) |
NCBI_PARAM_DECL (bool, WGS_LOADER, SPLIT_FEATURES) | |
NCBI_PARAM_DEF (bool, WGS_LOADER, SPLIT_FEATURES, true) | |
static bool | GetSplitFeaturesParam (void) |
NCBI_PARAM_DECL (bool, WGS_LOADER, KEEP_REPLACED) | |
NCBI_PARAM_DEF (bool, WGS_LOADER, KEEP_REPLACED, true) | |
NCBI_PARAM_DECL (bool, WGS_LOADER, KEEP_MIGRATED) | |
NCBI_PARAM_DEF (bool, WGS_LOADER, KEEP_MIGRATED, false) | |
static bool | GetKeepReplacedParam (void) |
static bool | GetKeepMigratedParam (void) |
NCBI_PARAM_DECL (unsigned, WGS_LOADER, INDEX_UPDATE_TIME) | |
NCBI_PARAM_DEF (unsigned, WGS_LOADER, INDEX_UPDATE_TIME, 600) | |
static unsigned | GetIndexUpdateTimeParam (void) |
NCBI_PARAM_DECL (unsigned, WGS_LOADER, RETRY_COUNT) | |
NCBI_PARAM_DEF (unsigned, WGS_LOADER, RETRY_COUNT, 3) | |
static unsigned | GetRetryCountParam (void) |
NCBI_PARAM_DECL (unsigned, WGS_LOADER, FILE_REOPEN_TIME) | |
NCBI_PARAM_DEF (unsigned, WGS_LOADER, FILE_REOPEN_TIME, 60 *60) | |
static unsigned | GetFileReopenTimeParam (void) |
NCBI_PARAM_DECL (unsigned, WGS_LOADER, FILE_RECHECK_TIME) | |
NCBI_PARAM_DEF (unsigned, WGS_LOADER, FILE_RECHECK_TIME, 5 *60) | |
static unsigned | GetFileRecheckTimeParam (void) |
void | sx_Update (CWGSResolver &resolver) |
NCBI_PARAM_DECL (bool, WGS, RESOLVER_GENBANK) | |
NCBI_PARAM_DEF (bool, WGS, RESOLVER_GENBANK, true) | |
static bool | s_ValidateAcc (const CConstRef< CSeq_id > &real_seq_id, const CTextseq_id &asked_text_id) |
static CBioseq_Handle::TBioseqStateFlags | s_GBStateToOM (NCBI_gb_state gb_state) |
Variables | |
static const size_t | kMaxWGSProteinAccLen = 3+7 |
static const size_t | kMinWGSPrefixLetters = 4 |
static const size_t | kMaxWGSPrefixLetters = 6 |
static const size_t | kWGSPrefixDigits = 2 |
BEGIN_LOCAL_NAMESPACE | |
END_LOCAL_NAMESPACE | |
#define NCBI_USE_ERRCODE_X WGSLoader |
Definition at line 78 of file wgsloader_impl.cpp.
Definition at line 94 of file wgsloader_impl.cpp.
References DEBUG, NCBI_PARAM_TYPE, and ncbi::grid::netcache::search::s_Value().
Referenced by CWGSDataLoader_Impl::GetFileInfoByGi(), CWGSDataLoader_Impl::GetFileInfoByProtAcc(), CWGSDataLoader_Impl::GetWGSFile(), CWGSFileInfo::LoadBlob(), CWGSFileInfo::LoadChunk(), CWGSFileInfo::Open(), sx_Update(), CWGSFileInfo::SAccFileInfo::ValidateAcc(), CWGSFileInfo::SAccFileInfo::ValidateGi(), CWGSDataLoader_Impl::x_GetFileInfo(), and CWGSFileInfo::x_Initialize().
|
static |
Definition at line 248 of file wgsloader_impl.cpp.
References NCBI_PARAM_TYPE, and rapidjson::value.
|
static |
Definition at line 236 of file wgsloader_impl.cpp.
References NCBI_PARAM_TYPE, and rapidjson::value.
|
static |
Definition at line 113 of file wgsloader_impl.cpp.
References NCBI_PARAM_TYPE.
|
static |
Definition at line 212 of file wgsloader_impl.cpp.
References NCBI_PARAM_TYPE, and rapidjson::value.
Definition at line 200 of file wgsloader_impl.cpp.
References NCBI_PARAM_TYPE, and rapidjson::value.
Referenced by CWGSFileInfo::SAccFileInfo::IsMigrated().
Definition at line 192 of file wgsloader_impl.cpp.
References NCBI_PARAM_TYPE, and rapidjson::value.
Referenced by CWGSDataLoader_Impl::GetWGSFile().
Definition at line 104 of file wgsloader_impl.cpp.
References NCBI_PARAM_TYPE.
Definition at line 132 of file wgsloader_impl.cpp.
References NCBI_PARAM_TYPE.
Definition at line 142 of file wgsloader_impl.cpp.
References NCBI_PARAM_TYPE, and rapidjson::value.
|
static |
Definition at line 224 of file wgsloader_impl.cpp.
References NCBI_PARAM_TYPE, and rapidjson::value.
Definition at line 178 of file wgsloader_impl.cpp.
References NCBI_PARAM_TYPE, and rapidjson::value.
Referenced by CWGSFileInfo::LoadBlob().
Definition at line 154 of file wgsloader_impl.cpp.
References NCBI_PARAM_TYPE, and rapidjson::value.
Referenced by CWGSFileInfo::LoadBlob().
Definition at line 166 of file wgsloader_impl.cpp.
References NCBI_PARAM_TYPE, and rapidjson::value.
Referenced by CWGSFileInfo::LoadBlob().
Definition at line 122 of file wgsloader_impl.cpp.
References NCBI_PARAM_TYPE.
Referenced by CWGSDataLoader_Impl::CWGSDataLoader_Impl().
NCBI_DEFINE_ERR_SUBCODE_X | ( | 23 | ) |
NCBI_PARAM_DECL | ( | bool | , |
WGS | , | ||
RESOLVER_GENBANK | |||
) |
NCBI_PARAM_DECL | ( | bool | , |
WGS_LOADER | , | ||
KEEP_MIGRATED | |||
) |
NCBI_PARAM_DECL | ( | bool | , |
WGS_LOADER | , | ||
KEEP_REPLACED | |||
) |
NCBI_PARAM_DECL | ( | bool | , |
WGS_LOADER | , | ||
MASTER_DESCR | |||
) |
NCBI_PARAM_DECL | ( | bool | , |
WGS_LOADER | , | ||
RESOLVE_GIS | |||
) |
NCBI_PARAM_DECL | ( | bool | , |
WGS_LOADER | , | ||
RESOLVE_PROT_ACCS | |||
) |
NCBI_PARAM_DECL | ( | bool | , |
WGS_LOADER | , | ||
SPLIT_FEATURES | |||
) |
NCBI_PARAM_DECL | ( | bool | , |
WGS_LOADER | , | ||
SPLIT_QUALITY_GRAPH | |||
) |
NCBI_PARAM_DECL | ( | bool | , |
WGS_LOADER | , | ||
SPLIT_SEQUENCE | |||
) |
NCBI_PARAM_DECL | ( | size_t | , |
WGS_LOADER | , | ||
GC_SIZE | |||
) |
NCBI_PARAM_DECL | ( | string | , |
WGS_LOADER | , | ||
VOL_PATH | |||
) |
NCBI_PARAM_DECL | ( | unsigned | , |
WGS_LOADER | , | ||
FILE_RECHECK_TIME | |||
) |
NCBI_PARAM_DECL | ( | unsigned | , |
WGS_LOADER | , | ||
FILE_REOPEN_TIME | |||
) |
NCBI_PARAM_DECL | ( | unsigned | , |
WGS_LOADER | , | ||
INDEX_UPDATE_TIME | |||
) |
NCBI_PARAM_DECL | ( | unsigned | , |
WGS_LOADER | , | ||
RETRY_COUNT | |||
) |
NCBI_PARAM_DEF | ( | size_t | , |
WGS_LOADER | , | ||
GC_SIZE | , | ||
100 | |||
) |
NCBI_PARAM_DEF | ( | string | , |
WGS_LOADER | , | ||
VOL_PATH | , | ||
"" | |||
) |
NCBI_PARAM_DEF | ( | unsigned | , |
WGS_LOADER | , | ||
FILE_RECHECK_TIME | , | ||
5 * | 60 | ||
) |
NCBI_PARAM_DEF | ( | unsigned | , |
WGS_LOADER | , | ||
FILE_REOPEN_TIME | , | ||
60 * | 60 | ||
) |
NCBI_PARAM_DEF | ( | unsigned | , |
WGS_LOADER | , | ||
INDEX_UPDATE_TIME | , | ||
600 | |||
) |
NCBI_PARAM_DEF | ( | unsigned | , |
WGS_LOADER | , | ||
RETRY_COUNT | , | ||
3 | |||
) |
NCBI_PARAM_DEF_EX | ( | int | , |
WGS_LOADER | , | ||
DEBUG | , | ||
0 | , | ||
eParam_NoThread | , | ||
WGS_LOADER_DEBUG | |||
) |
|
static |
Definition at line 1675 of file wgsloader_impl.cpp.
References CBioseq_Handle::fState_dead, CBioseq_Handle::fState_suppress_perm, CBioseq_Handle::fState_withdrawn, NCBI_gb_state_eWGSGenBankMigrated, NCBI_gb_state_eWGSGenBankReplaced, NCBI_gb_state_eWGSGenBankSuppressed, and NCBI_gb_state_eWGSGenBankWithdrawn.
Referenced by CWGSFileInfo::LoadBlob().
|
static |
Definition at line 1521 of file wgsloader_impl.cpp.
References NStr::EqualNocase(), CTextseq_id_Base::GetAccession(), CSeq_id::GetTextseq_Id(), CTextseq_id_Base::GetVersion(), and CTextseq_id_Base::IsSetVersion().
Referenced by CWGSFileInfo::SAccFileInfo::ValidateAcc().
void sx_Update | ( | CWGSResolver & | resolver | ) |
Definition at line 355 of file wgsloader_impl.cpp.
References ERR_POST_X, GetDebugLevel(), Info(), LOG_POST_X, CWGSResolver::Update(), and CException::what().
Referenced by CIndexUpdateThread::DoJob(), and CWGSDataLoader_Impl::GetResolver().
BEGIN_LOCAL_NAMESPACE |
Definition at line 352 of file wgsloader_impl.cpp.
END_LOCAL_NAMESPACE |
Definition at line 407 of file wgsloader_impl.cpp.
|
static |
Definition at line 87 of file wgsloader_impl.cpp.
Referenced by CWGSDataLoader_Impl::GetFileInfoByAcc().
|
static |
Definition at line 85 of file wgsloader_impl.cpp.
Referenced by CWGSDataLoader_Impl::GetFileInfoByAcc().
|
static |
Definition at line 86 of file wgsloader_impl.cpp.
Referenced by CWGSDataLoader_Impl::GetFileInfoByAcc().
|
static |
Definition at line 88 of file wgsloader_impl.cpp.
Referenced by CWGSDataLoader_Impl::GetFileInfoByAcc().