NCBI C++ ToolKit
|
#include <ncbi_pch.hpp>
#include "wgs_client.hpp"
#include "pubseq_gateway.hpp"
#include "pubseq_gateway_logging.hpp"
#include <objects/seqset/seqset__.hpp>
#include <objects/seqsplit/ID2S_Split_Info.hpp>
#include <sra/readers/sra/wgsresolver.hpp>
#include <objects/id2/ID2_Blob_Id.hpp>
#include <objects/id2/ID2_Blob_State.hpp>
Go to the source code of this file.
Go to the SVN repository for this file.
Classes | |
class | CIndexUpdateThread |
Typedefs | |
typedef int | TAllowSeqType |
Enumerations | |
enum | EAddMasterDescr { eAddMasterDescr_none , eAddMasterDescr_detached , eAddMasterDescr_all } |
enum | EResolveMaster { eResolveMaster_never , eResolveMaster_without_gi , eResolveMaster_always , eResolveMaster_never , eResolveMaster_without_gi , eResolveMaster_always } |
enum | EAlligSeqType { fAllow_contig = 1 , fAllow_scaffold = 2 , fAllow_protein = 4 } |
enum | EBlobType { eBlobType_none , eBlobType_Text , eBlobType_Binary , eBlobType_contig = 1 , eBlobType_scaffold = 2 , eBlobType_protein = 3 } |
enum | EBlobIdBits { eBlobIdBits_type = 2 , eBlobIdBits_letter = 5 , eBlobIdBits_digit = 4 } |
typedef int TAllowSeqType |
Definition at line 306 of file wgs_client.cpp.
enum EAddMasterDescr |
Enumerator | |
---|---|
eAddMasterDescr_none | |
eAddMasterDescr_detached | |
eAddMasterDescr_all |
Definition at line 96 of file wgs_client.cpp.
enum EAlligSeqType |
Enumerator | |
---|---|
fAllow_contig | |
fAllow_scaffold | |
fAllow_protein |
Definition at line 301 of file wgs_client.cpp.
enum EBlobIdBits |
Enumerator | |
---|---|
eBlobIdBits_type | |
eBlobIdBits_letter | |
eBlobIdBits_digit |
Definition at line 447 of file wgs_client.cpp.
enum EBlobType |
Enumerator | |
---|---|
eBlobType_none | |
eBlobType_Text | |
eBlobType_Binary | |
eBlobType_contig | |
eBlobType_scaffold | |
eBlobType_protein |
Definition at line 442 of file wgs_client.cpp.
enum EResolveMaster |
Enumerator | |
---|---|
eResolveMaster_never | |
eResolveMaster_without_gi | |
eResolveMaster_always | |
eResolveMaster_never | |
eResolveMaster_without_gi | |
eResolveMaster_always |
Definition at line 142 of file wgs_client.cpp.
BEGIN_NAMESPACE | ( | psg | ) |
BEGIN_NAMESPACE | ( | wgs | ) |
END_NAMESPACE | ( | psg | ) |
END_NAMESPACE | ( | wgs | ) |
|
static |
Definition at line 392 of file wgs_client.cpp.
References CSeq_id::eAcc_division_mask, CSeq_id::eAcc_embl_prot, CSeq_id::eAcc_gb_prot, CSeq_id::eAcc_other, CSeq_id::eAcc_targeted, CSeq_id::eAcc_tsa, CSeq_id::eAcc_wgs, CSeq_id::eAcc_wgs_intermed, CSeq_id::fAcc_prot, fAllow_contig, fAllow_protein, fAllow_scaffold, CSeq_id::IdentifyAccession(), IsWGSAccession(), and IsWGSProtAccession().
|
static |
Definition at line 308 of file wgs_client.cpp.
References fAllow_contig, fAllow_protein, fAllow_scaffold, i, isalpha(), isdigit(), kMaxRowDigitsV1, kMaxRowDigitsV2, kMinRowDigitsV1, kNumLettersV1, kNumLettersV2, kPrefixLenV1, kPrefixLenV2, kVersionDigits, and row.
Referenced by CWGSClient::CanBeWGS(), and IsWGSAccession().
Definition at line 284 of file wgs_client.cpp.
References NStr::eNocase, CDbtag_Base::GetDb(), kNumLettersV1, kNumLettersV2, kPrefixLenV1, kPrefixLenV2, kTypePrefixLen, and NStr::StartsWith().
Referenced by CWGSClient::CanBeWGS().
|
static |
Definition at line 382 of file wgs_client.cpp.
References kMaxProtAccLen, and kMinProtAccLen.
Referenced by IsWGSAccession().
NCBI_PARAM_DECL | ( | bool | , |
WGS | , | ||
FILTER_ALL | |||
) |
NCBI_PARAM_DECL | ( | bool | , |
WGS | , | ||
KEEP_EXTERNAL | |||
) |
NCBI_PARAM_DECL | ( | bool | , |
WGS | , | ||
KEEP_MIGRATED | |||
) |
NCBI_PARAM_DECL | ( | bool | , |
WGS | , | ||
KEEP_REPLACED | |||
) |
NCBI_PARAM_DECL | ( | bool | , |
WGS | , | ||
MARK_MASTER_DESCR | |||
) |
NCBI_PARAM_DECL | ( | bool | , |
WGS | , | ||
SPLIT_FEATURES | |||
) |
NCBI_PARAM_DECL | ( | string | , |
WGS | , | ||
ADD_MASTER_DESCR | |||
) |
NCBI_PARAM_DEF | ( | string | , |
WGS | , | ||
ADD_MASTER_DESCR | , | ||
"detached" | |||
) |
NCBI_PARAM_DEF_EX | ( | bool | , |
WGS | , | ||
FILTER_ALL | , | ||
false | , | ||
eParam_NoThread | , | ||
WGS_FILTER_ALL | |||
) |
Definition at line 117 of file wgs_client.cpp.
References eAddMasterDescr_all, and s_AddMasterDescrLevel().
Referenced by CWGSClient::GetWGSData().
|
static |
Definition at line 111 of file wgs_client.cpp.
References s_ProcessAddMasterDescr(), and rapidjson::value.
Referenced by CWGSClient::GetWGSDb(), s_AddMasterDescrContig(), s_AddMasterDescrProtein(), and s_AddMasterDescrScaffold().
Definition at line 129 of file wgs_client.cpp.
References eAddMasterDescr_none, and s_AddMasterDescrLevel().
Referenced by CWGSClient::GetWGSData().
Definition at line 123 of file wgs_client.cpp.
References eAddMasterDescr_none, and s_AddMasterDescrLevel().
Referenced by CWGSClient::GetWGSData().
|
static |
Definition at line 256 of file wgs_client.cpp.
References CID2_Blob_Id_Base::GetSat(), CID2_Blob_Id_Base::GetSat_key(), CID2_Blob_Id_Base::GetSub_sat(), and kSubSatSeparator.
Referenced by CWGSClient::GetPSGBlobId().
|
static |
Definition at line 1524 of file wgs_client.cpp.
References eID2_Blob_State_dead, eID2_Blob_State_suppressed, eID2_Blob_State_withdrawn, NCBI_gb_state_eWGSGenBankMigrated, NCBI_gb_state_eWGSGenBankReplaced, NCBI_gb_state_eWGSGenBankSuppressed, and NCBI_gb_state_eWGSGenBankWithdrawn.
Referenced by CWGSClient::GetID2BlobState().
|
inlinestatic |
Definition at line 157 of file wgs_client.cpp.
References CWGSClient::fEnabledCDD, CWGSClient::fEnabledSNP, CWGSClient::fEnabledWGS, kOSG_Sat_CDD_max, kOSG_Sat_CDD_min, kOSG_Sat_SNP_max, kOSG_Sat_SNP_min, kOSG_Sat_WGS_max, and kOSG_Sat_WGS_min.
Referenced by s_IsOSGSat().
Definition at line 223 of file wgs_client.cpp.
References s_IsOSGSat().
Referenced by CWGSClient::IsOSGBlob(), and s_ParseOSGBlob().
Definition at line 185 of file wgs_client.cpp.
References CWGSClient::fEnabledAll, and s_IsEnabledOSGSat().
Referenced by s_IsOSGBlob(), and s_ParseOSGBlob().
Definition at line 201 of file wgs_client.cpp.
Referenced by s_ParseInt().
Definition at line 90 of file wgs_client.cpp.
References NCBI_PARAM_TYPE, and rapidjson::value.
Referenced by CWGSClient::GetSeqInfoBySeqId(), and CWGSClient::ResolveSeqId().
Definition at line 84 of file wgs_client.cpp.
References NCBI_PARAM_TYPE, and rapidjson::value.
Referenced by CWGSClient::GetWGSDb().
Definition at line 135 of file wgs_client.cpp.
References NCBI_PARAM_TYPE, and rapidjson::value.
Referenced by CWGSClient::GetWGSData().
|
static |
Definition at line 208 of file wgs_client.cpp.
References NStr::fConvErr_NoErrMessage, NStr::fConvErr_NoThrow, s_IsValidIntChar(), str(), and NStr::StringToNumeric().
Referenced by CWGSClient::ParsePSGId2Info(), and s_ParseOSGBlob().
Definition at line 229 of file wgs_client.cpp.
References CTempString::find(), kSubSatSeparator, NPOS, s_IsOSGBlob(), s_IsOSGSat(), s_ParseInt(), and s_Skip().
Referenced by CWGSClient::ParsePSGBlobId(), and CWGSClient::ParsePSGId2Info().
|
static |
Definition at line 103 of file wgs_client.cpp.
References eAddMasterDescr_all, eAddMasterDescr_detached, eAddMasterDescr_none, NStr::EqualNocase(), NCBI_PARAM_TYPE, and rapidjson::value.
Referenced by s_AddMasterDescrLevel().
|
static |
Definition at line 191 of file wgs_client.cpp.
References str().
Referenced by CWGSClient::ParsePSGId2Info(), and s_ParseOSGBlob().
Definition at line 78 of file wgs_client.cpp.
References NCBI_PARAM_TYPE, and rapidjson::value.
Referenced by CWGSClient::GetWGSData().
USING_SCOPE | ( | objects | ) |
BEGIN_LOCAL_NAMESPACE |
Definition at line 458 of file wgs_client.cpp.
BEGIN_NCBI_NAMESPACE |
Definition at line 46 of file wgs_client.cpp.
END_LOCAL_NAMESPACE |
Definition at line 495 of file wgs_client.cpp.
END_NCBI_NAMESPACE |
Definition at line 1999 of file wgs_client.cpp.
Definition at line 436 of file wgs_client.cpp.
Referenced by CWGSClient::GetBlobId(), and CWGSClient::ResolveBlobId().
Definition at line 438 of file wgs_client.cpp.
Referenced by CWGSClient::GetBlobId(), and CWGSClient::ResolveBlobId().
Definition at line 437 of file wgs_client.cpp.
Referenced by CWGSClient::GetBlobId(), and CWGSClient::ResolveBlobId().
Definition at line 441 of file wgs_client.cpp.
Referenced by CWGSClient::GetBlobId(), and CWGSClient::ResolveBlobId().
Definition at line 440 of file wgs_client.cpp.
Referenced by CWGSClient::GetBlobId(), and CWGSClient::ResolveBlobId().
Definition at line 439 of file wgs_client.cpp.
Referenced by CWGSClient::GetBlobId(), and CWGSClient::ResolveBlobId().
|
static |
Definition at line 282 of file wgs_client.cpp.
Referenced by IsWGSProtAccession(), and CWGSClient::ResolveProtAcc().
|
static |
Definition at line 277 of file wgs_client.cpp.
Referenced by IsWGSAccession(), and CWGSClient::ResolveWGSAcc().
|
static |
Definition at line 279 of file wgs_client.cpp.
Referenced by IsWGSAccession(), and CWGSClient::ResolveWGSAcc().
|
static |
Definition at line 281 of file wgs_client.cpp.
Referenced by IsWGSProtAccession(), and CWGSClient::ResolveProtAcc().
|
static |
Definition at line 276 of file wgs_client.cpp.
Referenced by IsWGSAccession(), and CWGSClient::ResolveWGSAcc().
|
static |
Definition at line 278 of file wgs_client.cpp.
|
static |
Definition at line 271 of file wgs_client.cpp.
Referenced by CWGSClient::GetBlobId(), IsWGSAccession(), IsWGSGeneral(), CWGSClient::ResolveBlobId(), CWGSClient::ResolveGeneral(), and CWGSClient::ResolveWGSAcc().
|
static |
Definition at line 272 of file wgs_client.cpp.
Referenced by CWGSClient::GetBlobId(), IsWGSAccession(), IsWGSGeneral(), CWGSClient::ResolveGeneral(), and CWGSClient::ResolveWGSAcc().
Definition at line 155 of file wgs_client.cpp.
Referenced by s_IsEnabledOSGSat().
Definition at line 154 of file wgs_client.cpp.
Referenced by s_IsEnabledOSGSat().
Definition at line 153 of file wgs_client.cpp.
Referenced by s_IsEnabledOSGSat().
Definition at line 152 of file wgs_client.cpp.
Referenced by s_IsEnabledOSGSat().
Definition at line 151 of file wgs_client.cpp.
Referenced by s_IsEnabledOSGSat().
Definition at line 150 of file wgs_client.cpp.
Referenced by s_IsEnabledOSGSat().
|
static |
Definition at line 274 of file wgs_client.cpp.
Referenced by CWGSClient::GetBlobId(), IsWGSAccession(), IsWGSGeneral(), CWGSClient::ResolveBlobId(), CWGSClient::ResolveGeneral(), and CWGSClient::ResolveWGSAcc().
|
static |
Definition at line 275 of file wgs_client.cpp.
Referenced by CWGSClient::GetBlobId(), IsWGSAccession(), IsWGSGeneral(), CWGSClient::ResolveGeneral(), and CWGSClient::ResolveWGSAcc().
|
static |
Definition at line 147 of file wgs_client.cpp.
Referenced by CWGSClient::ResolveGi(), and CWGSClient::ResolveWGSAcc().
|
static |
Definition at line 149 of file wgs_client.cpp.
Referenced by s_FormatBlobId(), and s_ParseOSGBlob().
|
static |
Definition at line 270 of file wgs_client.cpp.
Referenced by IsWGSGeneral(), and CWGSClient::ResolveGeneral().
|
static |
Definition at line 273 of file wgs_client.cpp.
Referenced by IsWGSAccession(), and CWGSClient::ResolveWGSAcc().