: m_InternalData(internal_data), m_OptsMemento(opts_memento)
64 _ASSERT(m_InternalData.m_Queries);
65 _ASSERT(m_InternalData.m_QueryInfo);
66 _ASSERT(m_InternalData.m_SeqSrc);
67 _ASSERT(m_InternalData.m_ScoreBlk);
68 _ASSERT(m_InternalData.m_LookupTable);
69 _ASSERT(m_InternalData.m_HspStream);
72m_InternalData.m_Queries,
73m_InternalData.m_QueryInfo,
74m_InternalData.m_SeqSrc->GetPointer(),
75m_OptsMemento->m_ScoringOpts,
76m_InternalData.m_ScoreBlk->GetPointer(),
77m_InternalData.m_LookupTable->GetPointer(),
78m_OptsMemento->m_InitWordOpts,
79m_OptsMemento->m_ExtnOpts,
80m_OptsMemento->m_HitSaveOpts,
81m_OptsMemento->m_EffLenOpts,
82m_OptsMemento->m_PSIBlastOpts,
83m_OptsMemento->m_DbOpts,
84m_InternalData.m_HspStream->GetPointer(),
85m_InternalData.m_Diagnostics->GetPointer(),
86m_InternalData.m_FnInterrupt,
87m_InternalData.m_ProgressMonitor->Get());
89 return static_cast<int>(retval);
void SBlastProgressReset(SBlastProgress *progress_info)
Resets the progress structure to its original state (as if newly allocated) for a fresh start without...
SBlastProgress * SBlastProgressNew(void *user_data)
Allocates and initializes a new SBlastProgress structure.
Function calls to actually perform a BLAST search (high level).
Int2 Blast_RunPreliminarySearchWithInterrupt(EBlastProgramType program, BLAST_SequenceBlk *query, BlastQueryInfo *query_info, const BlastSeqSrc *seq_src, const BlastScoringOptions *score_options, BlastScoreBlk *sbp, LookupTableWrap *lookup_wrap, const BlastInitialWordOptions *word_options, const BlastExtensionOptions *ext_options, const BlastHitSavingOptions *hit_options, const BlastEffectiveLengthsOptions *eff_len_options, const PSIBlastOptions *psi_options, const BlastDatabaseOptions *db_options, BlastHSPStream *hsp_stream, BlastDiagnostics *diagnostics, TInterruptFnPtr interrupt_search, SBlastProgress *progress_info)
Same as above, with support for user interrupt function.
Classes that capture the state of the BLAST options (or subsets of options) and restore them later (u...
#define BLASTERR_DB_MEMORY_MAP
Database file error.
#define BLASTERR_DB_TOO_MANY_OPEN_FILES
BlastQueryInfo * BlastQueryInfoDup(const BlastQueryInfo *query_info)
Duplicates the query information structure.
BlastQueryInfo * BlastQueryInfoFree(BlastQueryInfo *query_info)
Deallocate memory for query information structure.
BlastSeqSrc * BlastSeqSrcCopy(const BlastSeqSrc *seq_src)
Copy function: needed to guarantee thread safety.
BlastSeqSrc * BlastSeqSrcFree(BlastSeqSrc *seq_src)
Frees the BlastSeqSrc structure by invoking the destructor function set by the user-defined construct...
Class that allows the transfer of data structures from the CBlastOptionsLocal class to either the BLA...
Functor to run the preliminary stage of the BLAST search.
Thread class to run the preliminary stage of the BLAST search.
Wrapper class for SBlastProgress .
@ eTooManyOpenFiles
Too many open files.
SInternalData m_InternalData
CPrelimSearchRunner(SInternalData &internal_data, const CBlastOptionsMemento *opts_memento)
CPrelimSearchThread(SInternalData &internal_data, const CBlastOptionsMemento *opts_memento)
CRef< TBlastSeqSrc > m_SeqSrc
The source of subject sequence data.
virtual ~CPrelimSearchThread(void)
SBlastProgress * Get() const
CStructWrapper< BlastSeqSrc > TBlastSeqSrc
CRef< CSBlastProgress > m_ProgressMonitor
The user data structure to aid in progress monitoring.
const CBlastOptionsMemento * m_OptsMemento
Pointer to memento which this class doesn't own.
BlastQueryInfo * m_QueryInfo
The query information structure.
virtual void * Main(void)
Derived (user-created) class must provide a real thread function.
CPrelimSearchRunner & operator=(const CPrelimSearchRunner &rhs)
Prohibit assignment operator.
SInternalData & m_InternalData
Data structure containing all the needed C structures for the preliminary stage of the BLAST search.
CPrelimSearchRunner(const CPrelimSearchRunner &rhs)
Prohibit copy constructor.
const CBlastOptionsMemento * m_OptsMemento
TErrCode GetErrCode(void) const
Get error code.
void Reset(void)
Reset reference object.
int16_t Int2
2-byte (16-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.
Multi-threading â classes, functions, and features.
NOTE: This file contains work in progress and the APIs are likely to change, please do not rely on th...
The query related information.
Complete type definition of Blast Sequence Source ADT.
Progress monitoring structure.
void * user_data
Pointer to user-provided data.
Lightweight wrapper to enclose C structures needed for running the preliminary and traceback stages o...
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