( GetErrCode() ) {
61 caseeArgErr:
return "eArgErr";
62 caseeFileEmpty:
return "eFileErr";
72 #define KMER_LSH_ARRAY_SIZE 0x1000001 73 #define KMER_RANDOM_NUM_OFFSET 48 125 int GetRows(
void)
const{
returnm_Data->rows_per_band;}
127 int GetDataWidth(
void)
const{
return(m_Data->dataWidth == 0 ? 4 : m_Data->dataWidth);}
146 voidGetBadMers(vector<int> &badMers)
const;
161 voidGetMinHits(
intoid,
int& subjectOid, vector<uint32_t>& hits)
const;
164 int GetNumSignatures()
const{
return static_cast<int>(m_DataFileSize/(GetDataWidth()*GetNumHashes()+4));}
168 uint32_t* x_GetMinHits32(
intoid,
int& subjectOid)
const;
170 uint16_t* x_GetMinHits16(
intoid,
int& subjectOid)
const;
172 unsigned char* x_GetMinHits8(
intoid,
int& subjectOid)
const;
Declares the BLAST exception class.
Defines to provide correct exporting from BLAST DLL in Windows.
#define NCBI_XBLAST_EXPORT
NULL operations for other cases.
void GetRandomNumbers(uint32_t *a, uint32_t *b, int numHashes)
Get the random numbers for the hash function.
void GetKValues(vector< vector< int > > &kvector, int k_value, int l_value, int array_size)
Function to get the k sites to compare for Buhler LSH.
@ eArgErr
Argument validation failed.
@ eFileEmpty
Zero length files.
virtual const char * GetErrCodeString() const override
Get a message describing the situation leading to the throw.
NCBI_EXCEPTION_DEFAULT(CMinHashException, CException)
Include standard NCBI exception behavior.
Access data in Minhash files.
int GetLSHSize(void) const
int GetNumSignatures() const
Returns the number of hash arrays.
uint32_t * GetMinHits(int oid) const
int GetNumHashes(void) const
Returns the number of values in an array of hashes (probably 32)
uint64_t * GetLSHArray(void) const
string m_IndexName
Name of the index file.
unsigned char * m_MinHitsData
Pointer to start of min-hits arrays.
int GetVersion(void) const
unique_ptr< CMemoryFile > m_MmappedIndex
MinHashIndexHeader * m_Data
int GetNumSeqs(void) const
int GetDataWidth(void) const
unique_ptr< CMemoryFile > m_MmappedData
uint64_t GetLSHMatchEnd(void) const
int GetChunkSize(void) const
Get number of letters in a chunk (version 3 or higher)
int GetKmerSize(void) const
Returns the length of the KMER.
int GetSegStatus(void) const
int GetAlphabet(void) const
One of two alphabets from Shiryev et al.
int * GetHits(uint64_t offset) const
Int8 m_DataFileSize
m_MmappedData File size
int GetLSHStart(void) const
virtual const char * GetErrCodeString(void) const
Get error code interpreted as text.
int64_t Int8
8-byte (64-bit) signed integer
#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.
Defines classes: CDirEntry, CFile, CDir, CSymLink, CMemoryFile, CFileUtil, CFileLock,...
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