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/split__query_8h.html below:

NCBI C++ ToolKit: include/algo/blast/core/split_query.h File Reference

Go to the source code of this file.

Go to the SVN repository for this file.

struct   SSplitQueryBlk   Structure to keep track of which query sequences are allocated to each query chunk. More...
  SSplitQueryBlkSplitQueryBlkNew (Uint4 num_chunks, Boolean gapped_merge)   Allocate a new split query chunk structure. More...
  SSplitQueryBlkSplitQueryBlkFree (SSplitQueryBlk *squery_blk)   Deallocate a split query chunk structure. More...
  Boolean  SplitQueryBlk_AllowGap (SSplitQueryBlk *squery_blk)   Determines whether HSPs on different diagnonals may be merged. More...
  Int2  SplitQueryBlk_SetChunkBounds (SSplitQueryBlk *squery_blk, Uint4 chunk_num, Uint4 starting_offset, Uint4 ending_offset)   Set the query chunk's bounds with respect to the full sized concatenated query. More...
  Int2  SplitQueryBlk_GetChunkBounds (const SSplitQueryBlk *squery_blk, Uint4 chunk_num, size_t *starting_offset, size_t *ending_offset)   Get the query chunk's bounds with respect to the full sized concatenated query. More...
  Int2  SplitQueryBlk_AddQueryToChunk (SSplitQueryBlk *squery_blk, Uint4 query_index, Uint4 chunk_num)   Add a query index to a given chunk. More...
  Int2  SplitQueryBlk_AddContextToChunk (SSplitQueryBlk *squery_blk, Int4 ctx_index, Uint4 chunk_num)   Add a query context index to a given chunk. More...
  Int2  SplitQueryBlk_AddContextOffsetToChunk (SSplitQueryBlk *squery_blk, Uint4 offset, Uint4 chunk_num)   Add a context offset to a given chunk. More...
  Int2  SplitQueryBlk_GetNumQueriesForChunk (const SSplitQueryBlk *squery_blk, Uint4 chunk_num, size_t *num_queries)   Retrieve the number of queries that correspond to chunk number chunk_num. More...
  Int2  SplitQueryBlk_GetQueryIndicesForChunk (const SSplitQueryBlk *squery_blk, Uint4 chunk_num, Uint4 **query_indices)   Retrieve an array of query indices for the requested chunk. More...
  Int2  SplitQueryBlk_GetQueryContextsForChunk (const SSplitQueryBlk *squery_blk, Uint4 chunk_num, Int4 **query_contexts, Uint4 *num_query_contexts)   Retrieve an array of query contexts for the requested chunk. More...
  Int2  SplitQueryBlk_GetContextOffsetsForChunk (const SSplitQueryBlk *squery_blk, Uint4 chunk_num, Uint4 **context_offsets)   Retrieve an array of context offsets for the requested chunk. More...
  Int2  SplitQueryBlk_SetChunkOverlapSize (SSplitQueryBlk *squery_blk, size_t size)   Sets the query chunk overlap size. More...
  size_t  SplitQueryBlk_GetChunkOverlapSize (const SSplitQueryBlk *squery_blk)   Returns the query chunk overlap size. More...
  ◆ SContextOffsetsPerChunk

Forward declaration of dynamic array.

Definition at line 1 of file split_query.h.

◆ SContextsPerChunk

Forward declaration of dynamic array.

Definition at line 1 of file split_query.h.

◆ SQueriesPerChunk

Forward declaration of dynamic array.

Definition at line 1 of file split_query.h.

◆ SQueryChunkBoundary ◆ SSplitQueryBlk

Structure to keep track of which query sequences are allocated to each query chunk.

◆ SplitQueryBlk_AddContextOffsetToChunk() ◆ SplitQueryBlk_AddContextToChunk() ◆ SplitQueryBlk_AddQueryToChunk() ◆ SplitQueryBlk_AllowGap() ◆ SplitQueryBlk_GetChunkBounds() ◆ SplitQueryBlk_GetChunkOverlapSize() ◆ SplitQueryBlk_GetContextOffsetsForChunk()

Retrieve an array of context offsets for the requested chunk.

Each offset is the correction needed for the query range of HSPs found in the specified chunk

Parameters
squery_blk split query block structure [in] chunk_num number of chunk to retrieve query indices [in] context_offsets offsets for the contexts in the requested chunk, this will be allocated in this function and the last element in the array will be assigned the value UINT4_MAX. Caller is responsible for deallocating this.
Returns
0 on success or kOutOfMemory

Definition at line 293 of file split_query.c.

References SSplitQueryBlk::chunk_offset_map, SDynamicUint4Array::data, kBadParameter, kOutOfMemory, malloc(), NULL, SSplitQueryBlk::num_chunks, SDynamicUint4Array::num_used, and UINT4_MAX.

Referenced by BlastHSPStreamMerge(), and CSplitQueryBlk::GetContextOffsets().

◆ SplitQueryBlk_GetNumQueriesForChunk() ◆ SplitQueryBlk_GetQueryContextsForChunk()

Retrieve an array of query contexts for the requested chunk.

Parameters
squery_blk split query block structure [in] chunk_num number of chunk to retrieve query indices [in] query_contexts contexts for the chunk requested, this will be allocated in this function, caller is responsible for deallocating this. num_query_contexts size of the returned array in query_contexts
Returns
0 on success or kOutOfMemory

Definition at line 262 of file split_query.c.

References SSplitQueryBlk::chunk_ctx_map, SDynamicInt4Array::data, kBadParameter, kOutOfMemory, malloc(), NULL, SSplitQueryBlk::num_chunks, and SDynamicInt4Array::num_used.

Referenced by BlastHSPStreamMerge(), BOOST_AUTO_TEST_CASE(), and CSplitQueryBlk::GetQueryContexts().

◆ SplitQueryBlk_GetQueryIndicesForChunk()

Retrieve an array of query indices for the requested chunk.

Parameters
squery_blk split query block structure [in] chunk_num number of chunk to retrieve query indices [in] query_indices indices for the chunk requested, this will be allocated in this function and the last element in the array will be assigned the value UINT4_MAX. Caller is responsible for deallocating this.
Returns
0 on success or kOutOfMemory

Definition at line 235 of file split_query.c.

References SSplitQueryBlk::chunk_query_map, SDynamicUint4Array::data, kBadParameter, kOutOfMemory, malloc(), NULL, SSplitQueryBlk::num_chunks, SDynamicUint4Array::num_used, and UINT4_MAX.

Referenced by BlastHSPStreamMerge(), BOOST_AUTO_TEST_CASE(), and CSplitQueryBlk::GetQueryIndices().

◆ SplitQueryBlk_SetChunkBounds() ◆ SplitQueryBlk_SetChunkOverlapSize() ◆ SplitQueryBlkFree()

Deallocate a split query chunk structure.

Parameters
squery_blk structure to deallocate [in]
Returns
NULL

Definition at line 116 of file split_query.c.

References SSplitQueryBlk::chunk_bounds, SSplitQueryBlk::chunk_ctx_map, SSplitQueryBlk::chunk_offset_map, SSplitQueryBlk::chunk_query_map, DynamicInt4ArrayFree(), DynamicUint4ArrayFree(), i, NULL, SSplitQueryBlk::num_chunks, and sfree.

Referenced by SplitQueryBlkNew(), and CSplitQueryBlk::~CSplitQueryBlk().

◆ SplitQueryBlkNew()

Allocate a new split query chunk structure.

Parameters
num_chunks number of chunks in which the query will be split [in]
Returns
newly allocated structure or NULL in case of memory allocation failure

Definition at line 42 of file split_query.c.

References calloc(), SSplitQueryBlk::chunk_bounds, SSplitQueryBlk::chunk_ctx_map, SSplitQueryBlk::chunk_offset_map, SSplitQueryBlk::chunk_query_map, DynamicInt4ArrayNew(), DynamicUint4ArrayNew(), SSplitQueryBlk::gapped_merge, i, NULL, SSplitQueryBlk::num_chunks, and SplitQueryBlkFree().

Referenced by CSplitQueryBlk::CSplitQueryBlk().

◆ kBadParameter

Invalid parameter used in a function call.

Definition at line 37 of file split_query.c.

Referenced by BOOST_AUTO_TEST_CASE(), SplitQueryBlk_AddContextOffsetToChunk(), SplitQueryBlk_AddContextToChunk(), SplitQueryBlk_AddQueryToChunk(), SplitQueryBlk_GetChunkBounds(), SplitQueryBlk_GetChunkOverlapSize(), SplitQueryBlk_GetContextOffsetsForChunk(), SplitQueryBlk_GetNumQueriesForChunk(), SplitQueryBlk_GetQueryContextsForChunk(), SplitQueryBlk_GetQueryIndicesForChunk(), SplitQueryBlk_SetChunkBounds(), and SplitQueryBlk_SetChunkOverlapSize().

◆ kInvalidContext ◆ kOutOfMemory

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