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

NCBI C++ ToolKit: src/app/blast/blast_app_util.hpp Source File

34 #ifndef APP__BLAST_APP_UTIL__HPP 35 #define APP__BLAST_APP_UTIL__HPP 128  bool

is_remote_search,

135 

blast::SDataLoaderConfig

149 #define BLAST_EXIT_SUCCESS 0 151 #define BLAST_INPUT_ERROR 1 153 #define BLAST_DATABASE_ERROR 2 155 #define BLAST_ENGINE_ERROR 3 157 #define BLAST_OUT_OF_MEMORY 4 159 #define BLAST_NETWORK_ERROR 5 161 #define BLAST_OUTPUT_ERROR 6 163 #define BLAST_UNKNOWN_ERROR 255 167 #define CATCH_ALL(exit_code) \ 168  catch (const CInvalidDataException& e) { \ 169  LOG_POST(Error << "BLAST options error: "

<< e.GetMsg()); \

170

exit_code = BLAST_INPUT_ERROR; \

172

catch (const blast::CInputException& e) { \

173

LOG_POST(Error << "BLAST query/options error: " << e.GetMsg()); \

174

LOG_POST(Error << "Please refer to the BLAST+ user manual."); \

175

exit_code = BLAST_INPUT_ERROR; \

177

catch (const CArgException& e) { \

178

LOG_POST(Error << "Command line argument error: " << e.GetMsg()); \

179

exit_code = BLAST_INPUT_ERROR; \

181

catch (const CObjReaderParseException& e) { \

182

LOG_POST(Error << "BLAST query error: " << e.GetMsg()); \

183

exit_code = BLAST_INPUT_ERROR; \

185

catch (const CSeqDBException& e) { \

186

if (e.GetErrCode() == CSeqDBException::eTooManyOpenFiles) { \

188

"Too many open files, please raise the open file limit"; \

189

LOG_POST(Error << "BLAST Database error: " << err_msg); \

190

exit_code = BLAST_DATABASE_ERROR; \

192

else if (e.GetErrCode() == CSeqDBException::eMemoryMappingFailure){ \

193

string err_msg = "Database memory map file error"; \

194

if (!e.GetMsg().empty()) \

195

err_msg += " - " + e.GetMsg(); \

196

LOG_POST(Error << "BLAST Database error: " << err_msg); \

197

exit_code = BLAST_DATABASE_ERROR; \

200

LOG_POST(Error << "BLAST Database error: " << e.GetMsg()); \

201

exit_code = BLAST_DATABASE_ERROR; \

204

catch (const blastdbindex::CDbIndex_Exception& e) { \

205

LOG_POST(Error << "Indexed BLAST database error: " << e.GetMsg()); \

206

exit_code = BLAST_DATABASE_ERROR; \

208

catch (const CIndexedDbException& e) { \

209

LOG_POST(Error << "Indexed BLAST database error: " << e.GetMsg()); \

210

exit_code = BLAST_DATABASE_ERROR; \

212

catch (const CWriteDBException& e) { \

213

LOG_POST(Error << "BLAST Database creation error: " << e.GetMsg()); \

214

exit_code = BLAST_INPUT_ERROR; \

216

catch (const blast::CBlastException& e) { \

217

const string& msg = e.GetMsg(); \

218

if (e.GetErrCode() == CBlastException::eInvalidOptions) { \

219

LOG_POST(Error << "BLAST options error: " << e.GetMsg()); \

220

exit_code = BLAST_INPUT_ERROR; \

221

} else if ((NStr::Find(msg, "Out of memory") != NPOS) || \

222

(NStr::Find(msg, "Failed to allocate") != NPOS)) { \

223

LOG_POST(Error << "BLAST ran out of memory: " << e.GetMsg()); \

224

exit_code = BLAST_OUT_OF_MEMORY; \

226

LOG_POST(Error << "BLAST engine error: " << e.GetMsg()); \

227

exit_code = BLAST_ENGINE_ERROR; \

230

catch (const blast::CBlastSystemException& e) { \

231

if (e.GetErrCode() == CBlastSystemException::eOutOfMemory) { \

232

LOG_POST(Error << "BLAST ran out of memory: " << e.GetMsg()); \

233

exit_code = BLAST_OUT_OF_MEMORY; \

234

} else if (e.GetErrCode() == CBlastSystemException::eNetworkError) {\

235

LOG_POST(Error << "Network error: " << e.GetMsg()); \

236

exit_code = BLAST_NETWORK_ERROR; \

238

LOG_POST(Error << "System error: " << e.GetMsg()); \

239

exit_code = BLAST_UNKNOWN_ERROR; \

242

catch (const CIOException& e) { \

243

if (e.GetErrCode() == CIOException::eFlush) { \

244

LOG_POST(Error << "BLAST failed to write output: " << e.GetMsg());\

245

exit_code = BLAST_OUTPUT_ERROR; \

248

catch (const CException& e) { \

249

LOG_POST(Error << "Error: " << e.what()); \

250

exit_code = BLAST_UNKNOWN_ERROR; \

252

catch (const std::ios::failure&) { \

253

LOG_POST(Error << "BLAST failed to write output"); \

254

exit_code = BLAST_OUTPUT_ERROR; \

256

catch (const std::bad_alloc&) { \

257

LOG_POST(Error << "BLAST ran out of memory"); \

258

exit_code = BLAST_OUT_OF_MEMORY; \

260

catch (const std::exception& e) { \

261

LOG_POST(Error << "Error: " << e.what()); \

262

exit_code = BLAST_UNKNOWN_ERROR; \

265

LOG_POST(Error << "Unknown exception occurred"); \

266

exit_code = BLAST_UNKNOWN_ERROR; \

280

blast::CBlastAppArgs* cmdline_args,

285  unsigned int

num_iters = 0);

333 void LogQueryInfo

(blast::CBlastUsageReport & report,

const

blast::CBlastInput & q_info);

336 void LogBlastOptions

(blast::CBlastUsageReport & report,

const

blast::CBlastOptions & opt);

337 void LogCmdOptions

(blast::CBlastUsageReport & report,

const

blast::CBlastAppArgs & args);

User-defined methods of the data storage class.

BLAST formatter utilities.

void LogQueryInfo(blast::CBlastUsageReport &report, const blast::CBlastInput &q_info)

CRef< blast::CRemoteBlast > InitializeRemoteBlast(CRef< blast::IQueryFactory > queries, CRef< blast::CBlastDatabaseArgs > db_args, CRef< blast::CBlastOptionsHandle > opts_hndl, bool verbose_output, const string &client_id=kEmptyStr, CRef< objects::CPssmWithParameters > pssm=CRef< objects::CPssmWithParameters >())

Initializes a CRemoteBlast instance for usage by command line BLAST binaries.

void CheckMTByQueries_QuerySize(blast::EProgram prog, int batch_size)

blast::SDataLoaderConfig InitializeQueryDataLoaderConfiguration(bool query_is_protein, CRef< blast::CLocalDbAdapter > db_adapter)

Initialize the data loader configuration for the query.

void CheckForFreqRatioFile(const string &rps_dbname, CRef< blast::CBlastOptionsHandle > &opt_handle, bool isRpsblast)

void SaveSearchStrategy(const CArgs &args, blast::CBlastAppArgs *cmdline_args, CRef< blast::IQueryFactory > queries, CRef< blast::CBlastOptionsHandle > opts_hndl, CRef< objects::CPssmWithParameters > pssm=CRef< objects::CPssmWithParameters >(), unsigned int num_iters=0)

Save the search strategy corresponding to the current command line search.

void QueryBatchCleanup()

Clean up formatter scope and release.

string RegisterOMDataLoader(CRef< CSeqDB > db_handle)

Register the BLAST database data loader using the already initialized CSeqDB object.

string GetSubjectFile(const CArgs &args)

Get name of subject file @parameter args arguments class [in].

bool UseXInclude(const blast::CFormattingArgs &f, const string &s)

bool RecoverSearchStrategy(const CArgs &args, blast::CBlastAppArgs *cmdline_args)

Recover search strategy from input file.

void MTByQueries_DBSize_Warning(const Int8 length_limit, bool is_db_protein)

void PrintErrorArchive(const CArgs &a, const list< CRef< CBlast4_error > > &msg)

Function to print blast archive with only error messages (search failed) to output stream.

int GetMTByQueriesBatchSize(blast::EProgram p, int num_threads, const string &task="")

void InitializeSubject(CRef< blast::CBlastDatabaseArgs > db_args, CRef< blast::CBlastOptionsHandle > opts_hndl, bool is_remote_search, CRef< blast::CLocalDbAdapter > &db_adapter, CRef< objects::CScope > &scope)

Initializes the subject/database as well as its scope.

CRef< blast::CBlastAncillaryData > ExtractPssmAncillaryData(const objects::CPssmWithParameters &pssm)

Auxiliary function to extract the ancillary data from the PSSM.

string GetCmdlineArgs(const CNcbiArguments &a)

void BlastFormatter_PreFetchSequenceData(const blast::CSearchResultSet &results, CRef< CScope > scope, blast::CFormattingArgs::EOutputFormat format_type)

This method optimize the retrieval of sequence data to scope.

bool IsIStreamEmpty(CNcbiIstream &in)

void LogCmdOptions(blast::CBlastUsageReport &report, const blast::CBlastAppArgs &args)

void LogBlastOptions(blast::CBlastUsageReport &report, const blast::CBlastOptions &opt)

Log blast usage opts for rpsblast apps.

Interface for converting blast-related command line arguments into blast options.

Interface for converting sources of sequence data into blast sequence input.

Declares CBlastScopeSource class to create properly configured CScope objects to invoke the BLAST dat...

EProgram

This enumeration is to evolve into a task/program specific list that specifies sets of default parame...

Class to mix batch size for BLAST runs.

void SetTargetHits(Int4 target)

const Int4 k_MinBatchSize

Int4 GetBatchSize(Int4 hits=-1)

const Int4 k_MaxBatchSize

const Int4 k_MinTargetHits

CBatchSizeMixer(Int4 max_batch_size)

int32_t Int4

4-byte (32-bit) signed integer

int64_t Int8

8-byte (64-bit) signed integer

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

IO_PREFIX::istream CNcbiIstream

Portable alias for istream.

Declares class which provides internal BLAST database representations to the internal BLAST APIs.

std::istream & in(std::istream &in_, double &x_)

Declares the CRemoteBlast class.

Defines BLAST database access classes.

static SLJIT_INLINE sljit_ins msg(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)

Uniform BLAST Search Interface.

Defines exception class for WriteDB.


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