{
"", objects::CSeq_id::eSNPScaleLimit_Default},
55{
"Unit", objects::CSeq_id::eSNPScaleLimit_Unit},
56{
"Contig", objects::CSeq_id::eSNPScaleLimit_Contig},
57{
"Supercontig", objects::CSeq_id::eSNPScaleLimit_Supercontig},
58{
"Chromosome", objects::CSeq_id::eSNPScaleLimit_Chromosome},
62objects::CSeq_id::eSNPScaleLimit_Default,
630, SNP_LOADER_SCALE_LIMIT);
117 str<<
"CSNPDataLoader:"<< m_DirPath;
118 if( !m_VDBFiles.empty() ) {
120 for(
auto&
file: m_VDBFiles ) {
124 if( !m_AnnotName.empty() ) {
125 str<<
"/name="<< m_AnnotName;
184 constvector<string>& files,
188SLoaderParams params;
189params.m_VDBFiles = files;
192 returnmaker.GetRegisterInfo();
198 const string& dir_path,
199 const string&
file,
214 const string& dir_path,
215 constvector<string>& files,
250SLoaderParams params;
251params.m_VDBFiles = files;
257 const string&
file)
267 constvector<string>& files)
269SLoaderParams params;
270params.m_DirPath = dir_path;
271params.m_VDBFiles = files;
345 dynamic_cast<const CSNPBlobId&
>(*blob_id));
369 returnTScale_Limit::GetDefault();
375TScale_Limit::SetDefault(
value);
CObjectManager::TPriority GetPriority(const TPluginManagerParamTree *params) const
CObjectManager::EIsDefault GetIsDefault(const TPluginManagerParamTree *params) const
bool ValidParams(const TPluginManagerParamTree *params) const
bool IsDataLoaderMatches(CDataLoader &loader) const
CNcbiOstrstreamToString class helps convert CNcbiOstrstream to a string Sample usage:
CDataLoader::TTSE_LockSet GetRecords(CDataSource *data_source, const CSeq_id_Handle &idh, CDataLoader::EChoice choice)
CObjectManager::TPriority GetDefaultPriority(void) const
CTSE_LoadLock GetBlobById(CDataSource *data_source, const CSNPBlobId &blob_id)
CDataLoader::TTSE_LockSet GetOrphanAnnotRecords(CDataSource *ds, const CSeq_id_Handle &idh, const SAnnotSelector *sel, CDataLoader::TProcessedNAs *processed_nas)
TAnnotNames GetPossibleAnnotNames(void) const
void GetChunk(const CSNPBlobId &blob_id, CTSE_Chunk_Info &chunk)
CParamLoaderMaker< CSNPDataLoader, SLoaderParams > TMaker
virtual bool CanGetBlobById(void) const override
virtual TTSE_LockSet GetRecords(const CSeq_id_Handle &idh, EChoice choice) override
Request from a datasource using handles and ranges instead of seq-loc The TSEs loaded in this call wi...
vector< CAnnotName > TAnnotNames
virtual CObjectManager::TPriority GetDefaultPriority(void) const override
static void SetSNP_Scale_Limit(CSeq_id::ESNPScaleLimit value)
virtual TBlobId GetBlobIdFromString(const string &str) const override
virtual void GetChunk(TChunk chunk) override
virtual TTSE_LockSet GetOrphanAnnotRecordsNA(const CSeq_id_Handle &idh, const SAnnotSelector *sel, TProcessedNAs *processed_nas) override
new Get*AnnotRecords() methods
static CSeq_id::ESNPScaleLimit GetSNP_Scale_Limit(void)
virtual TTSE_Lock GetBlobById(const TBlobId &blob_id) override
static bool IsUsingPTIS()
CRef< CSNPDataLoader_Impl > m_Impl
static string GetLoaderNameFromArgs(void)
TAnnotNames GetPossibleAnnotNames(void) const
virtual void GetChunks(const TChunkSet &chunks) override
static TRegisterLoaderInfo RegisterInObjectManager(CObjectManager &om, const SLoaderParams ¶ms, CObjectManager::EIsDefault is_default=CObjectManager::eNonDefault, CObjectManager::TPriority priority=CObjectManager::kPriority_NotSet)
virtual ~CSNP_DataLoaderCF(void)
virtual CDataLoader * CreateAndRegister(CObjectManager &om, const TPluginManagerParamTree *params) const
@ eLifeLevel_AppMain
Destroyed in CNcbiApplication::AppMain, if possible.
TBlobId GetBlobId(void) const
definition of a Culling tree
Include a standard set of the NCBI C++ Toolkit most basic headers.
static const char * str(char *buf, int n)
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
ESNPScaleLimit
SNP annotation scale limits.
TLoader * GetLoader(void) const
Get pointer to the loader.
static CRef< CObjectManager > GetInstance(void)
Return the existing object manager or create one.
void RevokeDataLoaders(IDataLoaderFilter &filter)
Revoke data loaders by filter, even if they were still used.
CDataSource * GetDataSource(void) const
EChoice
main blob is blob with sequence all other blobs are external and contain external annotations
EIsDefault
Flag defining if the data loader is included in the "default" group.
TRegisterInfo GetRegisterInfo(void)
static void RegisterInObjectManager(CObjectManager &om, CLoaderMaker_Base &loader_maker, CObjectManager::EIsDefault is_default, CObjectManager::TPriority priority)
Register the loader only if the name is not yet registered in the object manager.
vector< TChunk > TChunkSet
void Reset(void)
Reset reference object.
@ eParam_NoThread
Do not use per-thread values.
static void NCBI_EntryPointImpl(TDriverInfoList &info_list, EEntryPointRequest method)
Entry point implementation.
list< SDriverInfo > TDriverInfoList
List of driver information.
EEntryPointRequest
Actions performed by the entry point.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.
static list< string > & Split(const CTempString str, const CTempString delim, list< string > &arr, TSplitFlags flags=0, vector< SIZE_TYPE > *token_pos=NULL)
Split a string using specified delimiters.
const GenericPointer< typename T::ValueType > T2 value
Helper classes and templates to implement plugins.
const char kDataLoader_SNP_DriverName[]
static CSNPDataLoader::SLoaderParams s_GetDefaultParams()
NCBI_PARAM_DECL(string, SNP, ACCESSIONS)
NCBI_PARAM_ENUM_ARRAY(objects::CSeq_id::ESNPScaleLimit, SNP_LOADER, SCALE_LIMIT)
NCBI_PARAM_DEF_EX(string, SNP, ACCESSIONS, "", eParam_NoThread, SNP_ACCESSIONS)
void DataLoaders_Register_SNP(void)
void NCBI_EntryPoint_xloader_snp(CPluginManager< objects::CDataLoader >::TDriverInfoList &info_list, CPluginManager< objects::CDataLoader >::EEntryPointRequest method)
NCBI_PARAM_ENUM_DEF_EX(objects::CSeq_id::ESNPScaleLimit, SNP_LOADER, SCALE_LIMIT, objects::CSeq_id::eSNPScaleLimit_Default, 0, SNP_LOADER_SCALE_LIMIT)
NCBI_PARAM_ENUM_DECL(objects::CSeq_id::ESNPScaleLimit, SNP_LOADER, SCALE_LIMIT)
static CSafeStatic< CRevoker > s_Revoker(CSafeStaticLifeSpan(CSafeStaticLifeSpan::eLifeLevel_AppMain, CSafeStaticLifeSpan::eLifeSpan_Long))
typedef NCBI_PARAM_TYPE(SNP_LOADER, SCALE_LIMIT) TScale_Limit
CRef< objects::CObjectManager > om
string GetLoaderName(void) const
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4