A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/writedb__gimask_8cpp_source.html below:

NCBI C++ ToolKit: src/objtools/blast/seqdb_writer/writedb_gimask.cpp Source File

41 #if ((!defined(NCBI_COMPILER_WORKSHOP) || (NCBI_COMPILER_VERSION > 550)) && \ 42  (!defined(NCBI_COMPILER_MIPSPRO)) ) 49

m_MaskName (maskname),

50

m_MaxFileSize (max_file_size),

85  ITERATE

(vector<TGi>, gi, GIs) {

147  offsets

.WriteInt4_LE(iter->second.first);

148  offsets

.WriteInt4_LE(iter->second.second);

151  offsets

.WriteInt4(iter->second.first);

152  offsets

.WriteInt4(iter->second.second);

157  offsets

.WriteInt4_LE(iter->second.first);

158  offsets

.WriteInt4_LE(iter->second.second);

161  offsets

.WriteInt4(iter->second.first);

162  offsets

.WriteInt4(iter->second.second);

227  offsets

.WriteInt4_LE(iter->second.first);

228  offsets

.WriteInt4_LE(iter->second.second);

231  offsets

.WriteInt4(iter->second.first);

232  offsets

.WriteInt4(iter->second.second);

237  offsets

.WriteInt4_LE(iter->second.first);

238  offsets

.WriteInt4_LE(iter->second.second);

241  offsets

.WriteInt4(iter->second.first);

242  offsets

.WriteInt4(iter->second.second);

255  const int

kFormatVersion = 1;

293  if

(!

mask

.size())

return

;

302  data

.WriteInt4_LE(range->first);

303  data

.WriteInt4_LE(range->second);

308  data

.WriteInt4(range->first);

309  data

.WriteInt4(range->second);

ncbi::TMaskedQueryRegions mask

`Blob' Class for SeqDB (and WriteDB).

@ eString

Pad using NUL terminated string of '#' bytes.

int GetWriteOffset() const

Get the current write pointer offset.

void WritePadBytes(int align, EPadding fmt)

Align the offset by writing pad bytes.

void Clear()

Clear all owned data and reference an empty string.

void WriteInt4(Int4 x)

Write a 4 byte integer to the blob.

CTempString Str() const

Get blob contents as a CTempString.

void WriteInt4_LE(Int4 x)

int WriteString(CTempString str, EStringFormat fmt)

Write string data to the blob.

CWriteDB_IndexFile class.

bool m_Created

True if the file has already been opened.

const string & GetFilename() const

Get the current filename for this file.

void Create()

Create and open the file.

void Close()

Close the file, flushing any remaining data to disk.

unsigned int Write(const CTempString &data)

Write contents of a string to the file.

virtual void RenameSingle()

Rename this file, disincluding the volume index.

CWriteDB_GiMaskData class.

void WriteMask(const TPairVector &mask)

Write a new data blob.

vector< pair< TSeqPos, TSeqPos > > TPairVector

TOffset GetOffset() const

Get current index/offset pair.

Uint8 m_DataLength

Length of data written so far.

int GetIndex() const

Get current index.

CWriteDB_GiMaskData(const string &maskname, const string &extn, int index, Uint8 max_file_size, bool le=false)

Constructor for an gimask data file.

bool m_UseLE

Use little endian?

bool CanFit(int num_masks) const

Tests whether there is room for another batch.

CWriteDB_GiMaskIndex class.

string m_Desc

Description of this gimask.

void AddGIs(const TGiOffset &gi_offset, int num_vols)

Add sequence GI to the offset file.

CWriteDB_GiMaskIndex(const string &maskname, const string &extn, const string &desc, Uint8 max_file_size, bool le=false)

Constructor for gimask index file.

static const CBlastDbBlob::EStringFormat kStringFmt

String format used by gimask files.

Int4 m_NumIndex

Number of GIs indexed.

string m_Date

Creation timestamp for this gimask.

Int4 m_NumGIs

Number of GIs.

void x_BuildHeaderFields(int num_vols)

Build fixed length header fields.

CWriteDB_GiMaskOffset class.

CWriteDB_GiMaskOffset(const string &maskname, const string &extn, Uint8 max_file_size, bool le=false)

Constructor for gimask offset file.

static const int kGISize

Size of a GI.

void AddGIs(const TGiOffset &gi_offset)

Add sequence GI to the offset file.

vector< pair< TGi, TOffset > > TGiOffset

static const int kOffsetSize

Size of offset entry.

bool m_UseLE

Use little endian?

static const int kPageSize

Page size.

void ListFiles(vector< string > &files) const

List Filenames.

CRef< CWriteDB_GiMaskIndex > m_IFile_LE

void AddGiMask(const vector< TGi > &GIs, const TPairVector &masks)

Add a mask data for a sequence represented by a set of GIs.

TGiOffset m_GiOffset

Sorted list of (GI, offset) pairs.

CRef< CWriteDB_GiMaskData > m_DFile

Data file.

CRef< CWriteDB_GiMaskData > m_DFile_LE

void Close()

Flush data to disk and close all associated files.

CRef< CWriteDB_GiMaskOffset > m_OFile

Offset file.

CRef< CWriteDB_GiMaskOffset > m_OFile_LE

vector< pair< TSeqPos, TSeqPos > > TPairVector

CRef< CWriteDB_GiMaskIndex > m_IFile

Index file.

CWriteDB_GiMask(const string &maskname, const string &desc, Uint8 max_file_size)

Construct WriteDB style database gimask.

#define ITERATE(Type, Var, Cont)

ITERATE macro to sequence through container elements.

void Reset(void)

Reset reference object.

int32_t Int4

4-byte (32-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.

string AsString(const CTimeFormat &format=kEmptyStr, TSeconds out_tz=eCurrentTimeZone) const

Transform time to string.

@ eCurrent

Use current time. See also CCurrentTime.

constexpr auto sort(_Init &&init)

const struct ncbi::grid::netcache::search::fields::SIZE size

bool le(T x_, T y_, T round_)

static PCRE2_SIZE * offsets

Defines BLAST database construction classes.

USING_SCOPE(std)

Import C++ std namespace.

Code for gi-based database mask file construction.


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