AddMapping(
intvol_id,
int id,
const string& desc);
71 voidGetIdList(vector<int> & algorithms);
76 returnm_Empty && m_IdToDesc.empty();
80 boolGetDesc(
intalgorithm_id,
string& desc);
98 intGetVolAlgo(
intvol_idx,
intalgo_id);
101 intRealToVol(
intvol_idx,
intalgo_id);
104 intGetAlgoId(
const string&
id);
179 booluse_atlas_lock);
210 intGetSeqLengthApprox(
intoid)
const;
230 charGetSeqType()
const;
247 voidGetTaxIDs(
intoid,
267 voidGetTaxIDs(
intoid,
268vector<TTaxId> & taxids,
293 voidGetAllTaxIDs(
intoid,
314vector<TTaxId>& gi_to_taxid_set,
379 intGetAmbigSeq(
intoid,
386 intGetAmbigPartialSeq(
intoid,
406 voidRetSequence(
const char**
buffer);
421 voidRetAmbigSeq(
const char**
buffer)
const;
432list< CRef<CSeq_id> > GetSeqIDs(
intoid);
443 TGiGetSeqGI(
intoid);
457 stringGetDate()
const;
460 intGetNumSeqs()
const;
465 intGetNumSeqsStats()
const;
468 intGetNumOIDs()
const;
476 Uint8GetTotalLength()
const;
483 Uint8GetExactTotalLength();
490 Uint8GetTotalLengthStats()
const;
499 Uint8GetVolumeLength()
const;
505 intGetMaxLength()
const;
511 intGetMinLength()
const;
522 boolCheckOrFindOID(
int& next_oid);
556GetNextOIDChunk(
int& begin_chunk,
559vector<int> & oid_list,
563 voidResetInternalChunkBookmark();
570 const string& GetDBNameList()
const;
583 returnm_UserGiList.GetPointerOrNull();
607 voidFlushSeqMemory();
610 boolPigToOid(
intpig,
int& oid)
const;
613 boolOidToPig(
intoid,
int& pig)
const;
616 boolTiToOid(
Int8ti,
int& oid);
619 boolGiToOid(
TGigi,
int& oid)
const;
623 boolGiToOidwFilterCheck(
TGigi,
int& oid);
626 boolOidToGi(
intoid,
TGi& gi);
629 voidAccessionToOids(
const string& acc,
632 voidAccessionsToOids(
constvector<string>& accs, vector<blastdb::TOid>& oids);
635 voidSeqidToOids(
const CSeq_id& seqid, vector<int> & oids,
boolmulti);
639 intGetOidAtOffset(
intfirst_seq,
Uint8residue)
const;
661FindVolumePaths(
const string&
dbname,
663vector<string> & paths,
664vector<string> * alias_paths,
678 voidFindVolumePaths(vector<string> & paths,
boolrecursive)
const;
680 voidFindVolumePaths(vector<string> & paths, vector<string> & alias,
boolrecursive)
const;
694 voidSetIterationRange(
intoid_begin,
intoid_end);
719 voidGetAliasFileValues(TAliasFileValues & afv);
758 voidGetTotals(ESummaryType sumtype,
760 Uint8* total_length,
797 voidGetRawSeqAndAmbig(
intoid,
800 int* ambig_length)
const;
812 voidGetGiBounds(
TGi* low_id,
TGi* high_id,
int*
count);
824 voidGetPigBounds(
int* low_id,
int* high_id,
int*
count);
838 voidGetStringBounds(
string* low_id,
string* high_id,
int*
count);
873 voidSetOffsetRanges(
intoid,
879 voidFlushOffsetRangeCache();
888 unsignedGetSequenceHash(
intoid);
896 voidHashToOids(
unsigned hash, vector<int> & oids);
898 #if ((!defined(NCBI_COMPILER_WORKSHOP) || (NCBI_COMPILER_VERSION > 550)) && \ 899 (!defined(NCBI_COMPILER_MIPSPRO)) ) 908 voidListColumns(vector<string> & titles);
919 intGetColumnId(
const string& title);
949GetColumnMetaData(
intcolumn_id,
950 const string& volname);
972 voidGetColumnBlob(
intcol_id,
intoid,
boolkeep,
CBlastDbBlob& blob);
988 voidGetAvailableMaskAlgorithms(vector<int> & algorithms);
991 intGetMaskAlgorithmId(
const string&algo_name);
995 stringGetAvailableMaskAlgorithmDescriptions();
1012 voidGetMaskAlgorithmDetails(
intalgorithm_id,
1014 string& program_name,
1015 string& algo_opts);
1030 voidGetMaskData(
intoid,
1057 voidSetNumberOfThreads(
intnum_threads,
boolforce_mt =
false);
1060 voidSetVolsMemBit(
intmbit);
1062 voidSetVolsOidMaskType(
intoid_mask_type);
1074 voidTaxIdsToOids(
set<TTaxId>& tax_ids, vector<blastdb::TOid>& rv);
1080 voidGetTaxIdsForOids(
constvector<blastdb::TOid> & oids,
set<TTaxId>& tax_ids);
1082 intGetNumOfVols()
const;
1084 voidGetLMDBFileNames(vector<string> & lmdb_list)
const;
1086 voidGetTaxIdsForSeqId(
const CSeq_id& seq_id, vector<TTaxId> & taxids);
1117 intx_GetNumSeqs()
const;
1120 intx_GetNumSeqsStats()
const;
1123 intx_GetNumOIDs()
const;
1158 intx_GetMaxLength()
const;
1161 intx_GetMinLength()
const;
1229 voidx_ScanTotals(
bool approx,
1236 #if ((!defined(NCBI_COMPILER_WORKSHOP) || (NCBI_COMPILER_VERSION > 550)) && \ 1237 (!defined(NCBI_COMPILER_MIPSPRO)) ) 1242 intx_GetColumnId(
const string& title,
1273 intx_GetSeqLength(
intoid)
const;
1283 intx_SetCacheID(
intthreadID);
1367 #if ((!defined(NCBI_COMPILER_WORKSHOP) || (NCBI_COMPILER_VERSION > 550)) && \ 1368 (!defined(NCBI_COMPILER_MIPSPRO)) ) 1382kColumnNotFound = -2
1436 template<
typenameT >
voidx_CheckOid(
T& list,
CSeqDBLockHold& locked);
bool GetSeqData(ParserPtr pp, const DataBlk &entry, CBioseq &bioseq, Int4 nodetype, unsigned char *seqconv, Uint1 seq_data_type)
`Blob' Class for SeqDB (and WriteDB).
CObjectIStreamAsnBinary â.
Guard object for the SeqDBAtlas singleton.
SeqDB ID list for performing boolean set operations.
int m_NumSeqsStats
Number of sequences in the overall database.
CSeqDBAliasFile m_Aliases
Alias node hierarchy management object.
CRef< CSeqDBGiList > m_UserGiList
The User GI list for the entire CSeqDB object.
CSeqDBAtlasHolder m_AtlasHolder
Memory management layer guard (RIIA) object.
int m_NumThreads
number of thread clients
std::shared_mutex m_CacheIDMutex
mapping thread ID to storage ID
CSeqDBIdSet m_IdSet
The positive or negative ID list for the entire CSeqDB object.
string m_Date
Cached most recent date string for GetDate().
CRef< CSeqDBOIDList > m_OIDList
The list of included OIDs (construction is deferred).
int m_MaskDataColumn
Column ID for mask data column.
CFastMutex m_OIDLock
Mutex which synchronizes access to the OID list.
Uint8 m_TotalLength
Total length of database (in bases).
bool m_UseGiMask
Which type of masks are we using?
CSeqDBAtlas & m_Atlas
Reference to memory management layer.
CRef< CSeqDBNegativeList > m_NegativeList
The Negative ID list for the entire CSeqDB object.
int m_RestrictEnd
Ending OID as provided to the constructor.
void SetCacheID()
Assign Cache ID to Thread For multi-threaded mode split by database, each thread needs to call this A...
CObjectIStreamAsnBinary * reusable_inpstr
char m_SeqType
Type of sequences used by this instance.
Uint8 m_TotalLengthStats
Total length of database (in bases).
std::atomic< bool > m_OidListSetup
True if OID list setup is done (or was not required).
set< pair< int, int > > TRangeList
List of sequence offset ranges.
string GetColumnValue(int column_id, const string &key)
Get all metadata for the specified column.
CRef< CSeqDBGiMask > m_GiMask
Gi-based mask.
map< string, int > m_ColumnTitleMap
Map string column titles to global column IDs.
int m_NextChunkOID
"Bookmark" for multithreaded chunk-type OID iteration.
EColumnStatus
Status of a database column title.
TSeqDBAliasFileValues TAliasFileValues
Import type to allow shorter name.
int m_MaxLength
Longest database sequence.
int m_RestrictBegin
Starting OID as provided to the constructor.
std::atomic< int > m_NextCacheID
Uint8 m_VolumeLength
Total length of all database volumes combined (in bases).
CSeqDB::ESummaryType ESummaryType
Defines types of database summary information.
CSeqDB_IdRemapper m_AlgorithmIds
Algorithm ID mapping.
const CSeqDBGiList * GetGiList() const
Get GI list attached to this database.
int m_MinLength
Shortest database sequence.
Uint8 m_ExactTotalLength
Total length of database (in bases).
string m_DBNames
The list of database names provided to the constructor.
vector< SSeqResBuffer * > m_CachedSeqs
Cached sequences.
vector< CRef< CSeqDB_ColumnEntry > > m_ColumnInfo
Map assigned global column IDs to column information.
std::map< int, int > m_CacheID
CSeqDBVolSet m_VolSet
Set of volumes used by this database instance.
int m_NumOIDs
Size of databases OID range.
bool m_NeedTotalsScan
True if this configuration cannot deduce totals without a scan.
int m_NumSeqs
Number of sequences in the overall database.
Map user algorithm IDs to volume algorithm IDs.
int m_CacheRealAlgo
Cached list of real algorithms for BuildVolAlgos.
map< int, string > m_IdToDesc
Map of real IDs to descriptions.
map< string, int > m_DescToId
Map of descriptions to real IDs.
int m_CacheVolAlgo
Cached list of volume algorithms for BuildVolAlgos.
void SetNotEmpty()
Is this object populated?
map< int, map< int, int > > m_RealIdToVolumeId
Map of volume# to map of real id to volume-based id.
bool m_Empty
Is this object initialized?
int m_CacheVolIndex
Cached volume index for BuildVolAlgos.
bool Empty()
Is this object populated?
int m_NextId
Next unassigned synthetic ID.
EOidListType
Indicates how block of OIDs was returned.
ESummaryType
Types of summary information available.
static unsigned char depth[2 *(256+1+29)+1]
int GetSeqLength(const CBioseq &bioseq)
SBlastSequence GetSequence(const objects::CSeq_loc &sl, EBlastEncoding encoding, objects::CScope *scope, objects::ENa_strand strand=objects::eNa_strand_plus, ESentinelType sentinel=eSentinels, std::string *warnings=NULL)
Retrieves a sequence using the object manager.
unsigned int TSeqPos
Type for sequence locations and lengths.
SStrictId_Tax::TId TTaxId
Taxon id type.
NCBI_XOBJUTIL_EXPORT string GetTitle(const CBioseq_Handle &hnd, TGetTitleFlags flags=0)
int64_t Int8
8-byte (64-bit) signed integer
uint64_t Uint8
8-byte (64-bit) unsigned integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
strategy
Block allocation strategies.
char * dbname(DBPROCESS *dbproc)
Get name of current database.
CBioseq_Info & GetBioseq(CTSE_Info &tse, const CBioObjectId &id)
const struct ncbi::grid::netcache::search::fields::KEY key
bool approx(T x_, T y_, T eps_)
Defines database alias file access classes.
#define CLASS_MARKER_FIELD(a)
Defines database column access classes.
ESeqDBAllocType
Certain methods have an "Alloc" version.
EBlastDbVersion
BLAST database version.
Defines gi-based mask data files.
The SeqDB oid filtering layer.
Manages a set of database volumes.
Structure to buffer multiple TSeqRes.
vector< SSeqRes > results
Structure to keep sequence retrieval results.
List of sequence offset ranges.
OID-Range type to simplify interfaces.
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