NCBI C++ ToolKit
blastp_app.cpp
Go to the documentation of this file.

Go to the SVN repository for this file.

1 /* $Id: blastp_app.cpp 100915 2023-09-29 13:43:21Z fongah2 $
2  * ===========================================================================
3  *
4  * PUBLIC DOMAIN NOTICE
5  * National Center for Biotechnology Information
6  *
7  * This software/database is a "United States Government Work" under the
8  * terms of the United States Copyright Act. It was written as part of
9  * the author's official duties as a United States Government employee and
10  * thus cannot be copyrighted. This software/database is freely available
11  * to the public for use. The National Library of Medicine and the U.S.
12  * Government have not placed any restriction on its use or reproduction.
13  *
14  * Although all reasonable efforts have been taken to ensure the accuracy
15  * and reliability of the software and data, the NLM and the U.S.
16  * Government do not and cannot warrant the performance or results that
17  * may be obtained by using this software or data. The NLM and the U.S.
18  * Government disclaim all warranties, express or implied, including
19  * warranties of performance, merchantability or fitness for any particular
20  * purpose.
21  *
22  * Please cite the author in any work or product based on this material.
23  *
24  * ===========================================================================
25  *
26  * Authors: Christiam Camacho
27  *
28  */
29 
30 /** @file blastp_app.cpp
31  * BLASTP command line application
32  */
33 
34 #include <ncbi_pch.hpp>
35 #include <corelib/ncbiapp.hpp>
42 #include "blast_app_util.hpp"
43 #include "blastp_node.hpp"
44 
45 #ifndef SKIP_DOXYGEN_PROCESSING
47 USING_SCOPE(blast);
49 #endif
50 
52 {
53 public:
54  /** @inheritDoc */
57  version->SetVersionInfo(new CBlastVersion());
60  if (m_UsageReport.IsEnabled()) {
62  }
63  }
64 
67  }
68 private:
69  /** @inheritDoc */
70  virtual void Init();
71  /** @inheritDoc */
72  virtual int Run();
73 
74  int x_RunMTBySplitDB();
75  int x_RunMTBySplitQuery();
76 
77  /// This application's command line args
83 };
84 
86 {
87  // formulate command line arguments
88 
90  // read the command line
93 }
94 
95 static void s_GetMT1Cutoffs(const int word_size, Int8 & max_db_size, Int8 & min_q_size)
96 {
97  const Int8 kMT1MaxDbSz_Blastp = 740000000; // residues
98  const Int8 kMT1MinQSz_Blastp = 200000; //bytes
99 
100  const Int8 kMT1MaxDbSz_BlastpFast = 2500000000; // Set it to a bit less than 1 vol nr
101  const Int8 kMT1MinQSz_BlastpFast = 200000;
102 
103  if (word_size > 4) {
104  // CompressedAa
105  max_db_size = kMT1MaxDbSz_BlastpFast;
106  min_q_size = kMT1MinQSz_BlastpFast;
107  }
108  else {
109  max_db_size = kMT1MaxDbSz_Blastp;
110  min_q_size = kMT1MinQSz_Blastp;
111  }
112 }
113 
115 {
116  int status = BLAST_EXIT_SUCCESS;
117 
118  const CArgs& args = GetArgs();
119  //Check to see if search should split by queries
120  try {
122  SetDiagPostPrefix("blastp");
123  SetDiagHandler(&m_Bah, false);
126  }
127  else {
129  }
130  int num_threads = m_CmdLineArgs->GetNumThreads();
131  int mt_mode = m_CmdLineArgs->GetMTMode();
132  if (!m_CmdLineArgs->ExecuteRemotely() && (num_threads > 1) &&
133  (mt_mode != CMTArgs::eSplitByDB)){
136  if (db_args->GetDatabaseName() != kEmptyStr) {
137  int word_size = m_OptsHndl->GetOptions().GetWordSize();
138  Int8 max_db_size = 0;
139  Int8 min_q_size = 0;
140  s_GetMT1Cutoffs(word_size, max_db_size, min_q_size);
141  CRef<CSeqDB> seqdb = sdb->GetSeqDb();
142  Uint8 total_length = seqdb->GetTotalLength();
143  if (mt_mode == CMTArgs::eSplitAuto){
144  if (total_length < max_db_size) {
145  if (args.Exist(kArgQuery) && args[kArgQuery].HasValue()) {
146  CFile file( args[kArgQuery].AsString());
147  if (file.GetLength() > min_q_size) {
149  return x_RunMTBySplitQuery();
150  }
151  }
152  }
153  }
154  else {
155  if (total_length > max_db_size) {
156  MTByQueries_DBSize_Warning(max_db_size, true);
157  }
158  }
159  }
160  }
161  if ((mt_mode == CMTArgs::eSplitByQueries) && (num_threads > 1)){
163  return x_RunMTBySplitQuery();
164  }
165  else {
166  return x_RunMTBySplitDB();
167  }
168  }
169  CATCH_ALL(status)
170 
171  if(!m_Bah.GetMessages().empty()) {
173  }
174  return status;
175 }
176 
178 {
179 
180  int status = BLAST_EXIT_SUCCESS;
181 
182  try {
183 
184  /*** Get the BLAST options ***/
185  const CArgs& args = GetArgs();
186  const CBlastOptions& opt = m_OptsHndl->GetOptions();
187  /*** Initialize the database/subject ***/
189  CRef<CLocalDbAdapter> db_adapter;
190  CRef<CScope> scope;
192  db_adapter, scope);
193  _ASSERT(db_adapter && scope);
194 
195  /*** Get the query sequence(s) ***/
196  CRef<CQueryOptionsArgs> query_opts =
198  SDataLoaderConfig dlconfig =
200  db_adapter);
201  CBlastInputSourceConfig iconfig(dlconfig, query_opts->GetStrand(),
202  query_opts->UseLowercaseMasks(),
203  query_opts->GetParseDeflines(),
204  query_opts->GetRange());
206  ERR_POST(Warning << "Query is Empty!");
207  return BLAST_EXIT_SUCCESS;
208  }
211 
212 
213  /*** Get the formatting options ***/
215  bool isArchiveFormat = fmt_args->ArchiveFormatRequested(args);
216  if(!isArchiveFormat) {
218  }
219  CBlastFormat formatter(opt, *db_adapter,
220  fmt_args->GetFormattedOutputChoice(),
221  query_opts->GetParseDeflines(),
223  fmt_args->GetNumDescriptions(),
224  fmt_args->GetNumAlignments(),
225  *scope,
226  opt.GetMatrixName(),
227  fmt_args->ShowGis(),
228  fmt_args->DisplayHtmlOutput(),
229  opt.GetQueryGeneticCode(),
230  opt.GetDbGeneticCode(),
231  opt.GetSumStatisticsMode(),
233  db_adapter->GetFilteringAlgorithm(),
234  fmt_args->GetCustomOutputFormatSpec(),
235  false, false, NULL, NULL,
237  GetSubjectFile(args));
238 
239  formatter.SetQueryRange(query_opts->GetRange());
240  formatter.SetLineLength(fmt_args->GetLineLength());
241  formatter.SetHitsSortOption(fmt_args->GetHitsSortOption());
242  formatter.SetHspsSortOption(fmt_args->GetHspsSortOption());
243  formatter.SetCustomDelimiter(fmt_args->GetCustomDelimiter());
244  if(UseXInclude(*fmt_args, args[kArgOutput].AsString())) {
245  formatter.SetBaseFile(args[kArgOutput].AsString());
246  }
247  formatter.PrintProlog();
248 
249  /*** Process the input ***/
250  for (; !input.End(); formatter.ResetScopeHistory(), QueryBatchCleanup()) {
251 
252  CRef<CBlastQueryVector> query_batch(input.GetNextSeqBatch(*scope));
253  CRef<IQueryFactory> queries(new CObjMgr_QueryFactory(*query_batch));
254 
256 
257  CRef<CSearchResultSet> results;
258 
260  CRef<CRemoteBlast> rmt_blast =
261  InitializeRemoteBlast(queries, db_args, m_OptsHndl,
264  results = rmt_blast->GetResultSet();
265  } else {
266  CLocalBlast lcl_blast(queries, m_OptsHndl, db_adapter);
268  results = lcl_blast.Run();
269  }
270 
271  if (fmt_args->ArchiveFormatRequested(args)) {
272  formatter.WriteArchive(*queries, *m_OptsHndl, *results, 0, m_Bah.GetMessages());
274  } else {
275  BlastFormatter_PreFetchSequenceData(*results, scope,
276  fmt_args->GetFormattedOutputChoice());
277  ITERATE(CSearchResultSet, result, *results) {
278  formatter.PrintOneResultSet(**result, query_batch);
279  }
280  }
281  }
282 
283  formatter.PrintEpilog(opt);
284 
286  m_OptsHndl->GetOptions().DebugDumpText(NcbiCerr, "BLAST options", 1);
287  }
288 
291  } CATCH_ALL(status)
292  if(!m_Bah.GetMessages().empty()) {
293  const CArgs & a = GetArgs();
295  }
296 
300  return status;
301 }
302 
304 {
305  int status = BLAST_EXIT_SUCCESS;
306 
307  try {
308  const CArgs& args = GetArgs();
310  ERR_POST(Warning << "Query is Empty!");
311  return BLAST_EXIT_SUCCESS;
312  }
313  CNcbiOstream & out_stream = m_CmdLineArgs->GetOutputStream();
314  const int kMaxNumOfThreads = m_CmdLineArgs->GetNumThreads();
315  CBlastMasterNode master_node(out_stream, kMaxNumOfThreads);
316 
319 
320  int chunk_num = 0;
321  int batch_size = GetMTByQueriesBatchSize(m_OptsHndl->GetOptions().GetProgram(), kMaxNumOfThreads);
322  INFO_POST("Batch Size: " << batch_size);
324  while (master_node.Processing()) {
325  if (!input.AtEOF()) {
326  if (!master_node.IsFull()) {
327  string qb;
328  int q_index = 0;
329  int num_q = input.GetQueryBatch(qb, q_index);
330  if (num_q > 0) {
331  CBlastNodeMailbox * mb(new CBlastNodeMailbox(chunk_num, master_node.GetBuzzer()));
332  CBlastpNode * t(new CBlastpNode(chunk_num, GetArguments(), args, m_Bah, qb, q_index, num_q, mb));
333  master_node.RegisterNode(t, mb);
334  chunk_num ++;
335  }
336  }
337  }
338  else {
339  master_node.Shutdown();
340  }
341  }
342 
347 
348  } CATCH_ALL (status)
349 
350  if(!m_Bah.GetMessages().empty()) {
351  const CArgs & a = GetArgs();
353  }
357  return status;
358 }
359 #ifndef SKIP_DOXYGEN_PROCESSING
360 int NcbiSys_main(int argc, ncbi::TXChar* argv[])
361 {
362  return CBlastpApp().AppMain(argc, argv);
363 }
364 #endif /* SKIP_DOXYGEN_PROCESSING */
Produce formatted blast output for command line applications.
void LogCmdOptions(blast::CBlastUsageReport &report, const CBlastAppArgs &args)
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, CRef< objects::CPssmWithParameters > pssm)
Initializes a CRemoteBlast instance for usage by command line BLAST binaries.
blast::SDataLoaderConfig InitializeQueryDataLoaderConfiguration(bool query_is_protein, CRef< blast::CLocalDbAdapter > db_adapter)
Initialize the data loader configuration for the query.
void SaveSearchStrategy(const CArgs &args, blast::CBlastAppArgs *cmdline_args, CRef< blast::IQueryFactory > queries, CRef< blast::CBlastOptionsHandle > opts_hndl, CRef< objects::CPssmWithParameters > pssm, unsigned int num_iters)
Save the search strategy corresponding to the current command line search.
void QueryBatchCleanup()
Clean up formatter scope and release.
string GetSubjectFile(const CArgs &args)
Get name of subject file @parameter args arguments class [in].
bool RecoverSearchStrategy(const CArgs &args, blast::CBlastAppArgs *cmdline_args)
Recover search strategy from input file.
int GetMTByQueriesBatchSize(EProgram p, int num_threads, const string &task)
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.
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.
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.
void LogBlastOptions(blast::CBlastUsageReport &report, const CBlastOptions &opt)
bool UseXInclude(const CFormattingArgs &f, const string &s)
bool IsIStreamEmpty(CNcbiIstream &in)
void LogQueryInfo(CBlastUsageReport &report, const CBlastInput &q_info)
Utility functions for BLAST command line applications.
#define CATCH_ALL(exit_code)
Standard catch statement for all BLAST command line programs.
#define BLAST_EXIT_SUCCESS
Command line binary exit code: success.
Interface for reading SRA sequences into blast input.
static void s_GetMT1Cutoffs(const int word_size, Int8 &max_db_size, Int8 &min_q_size)
Definition: blastp_app.cpp:95
USING_SCOPE(blast)
int NcbiSys_main(int argc, ncbi::TXChar *argv[])
Definition: blastp_app.cpp:360
USING_NCBI_SCOPE
Definition: blastp_app.cpp:46
Main argument class for BLASTP application.
blastn node api
CArgs –.
Definition: ncbiargs.hpp:379
CRef< CBlastOptionsHandle > SetOptionsForSavedStrategy(const CArgs &args)
Combine the command line arguments into a CBlastOptions object recovered from saved search strategy.
string GetTask() const
Get the task for this object.
virtual CNcbiIstream & GetInputStream()
Get the input stream.
size_t GetNumThreads() const
Get the number of threads to spawn.
CRef< CBlastOptionsHandle > SetOptions(const CArgs &args)
Extract the command line arguments into a CBlastOptionsHandle object.
int GetMTMode() const
CRef< CBlastDatabaseArgs > GetBlastDatabaseArgs() const
Get the BLAST database arguments.
CArgDescriptions * SetCommandLine()
Set the command line arguments.
bool ExecuteRemotely() const
Determine whether the search should be executed remotely or not.
bool ProduceDebugRemoteOutput() const
Return whether debug (verbose) output should be produced on remote searches (only available when comp...
CRef< CQueryOptionsArgs > GetQueryOptionsArgs() const
Get the options for the query sequence(s)
string GetClientId() const
Retrieve the client ID for remote requests.
CRef< CFormattingArgs > GetFormattingArgs() const
Get the formatting options.
bool ProduceDebugOutput() const
Return whether debug (verbose) output should be produced on remote searches (only available when comp...
virtual CNcbiOstream & GetOutputStream()
Get the output stream.
Class to capture message from diag handler.
Definition: blast_aux.hpp:249
CRef< CSearchDatabase > GetSearchDatabase() const
Retrieve the search database information.
Definition: blast_args.hpp:936
string GetDatabaseName() const
Get the BLAST database name.
Definition: blast_args.hpp:931
Class representing a text file containing sequences in fasta format.
This class formats the BLAST results for command line applications.
void LogBlastSearchInfo(blast::CBlastUsageReport &report)
void SetHitsSortOption(int hitsSortOption)
void SetHspsSortOption(int hspsSortOption)
void PrintOneResultSet(const blast::CSearchResults &results, CConstRef< blast::CBlastQueryVector > queries, unsigned int itr_num=numeric_limits< unsigned int >::max(), blast::CPsiBlastIterationState::TSeqIds prev_seqids=blast::CPsiBlastIterationState::TSeqIds(), bool is_deltablast_domain_result=false)
Print all alignment information for a single query sequence along with any errors or warnings (errors...
void SetCustomDelimiter(string customDelim)
void PrintEpilog(const blast::CBlastOptions &options)
Print the footer of the blast report.
void SetBaseFile(string base)
For use by XML2 only.
void ResetScopeHistory()
Resets the scope history for some output formats.
void SetLineLength(size_t len)
Set Alignment Length.
void WriteArchive(blast::IQueryFactory &queries, blast::CBlastOptionsHandle &options_handle, const blast::CSearchResultSet &results, unsigned int num_iters=0, const list< CRef< objects::CBlast4_error > > &msg=list< CRef< objects::CBlast4_error > >())
Writes out the query and results as an "archive" format.
void PrintProlog()
Print the header of the blast report.
void SetQueryRange(const TSeqRange &query_range)
Set query range.
Class that centralizes the configuration data for sequences to be converted.
Definition: blast_input.hpp:48
Generalized converter from an abstract source of biological sequence data to collections of blast inp...
Int8 GetQueriesLength()
Definition: blast_node.hpp:156
CConditionVariable & GetBuzzer()
Definition: blast_node.hpp:153
void RegisterNode(CBlastNode *node, CBlastNodeMailbox *mailbox)
Definition: blast_node.cpp:136
Encapsulates ALL the BLAST algorithm's options.
void AddParam(EUsageParams p, int val)
Keeps track of the version of the BLAST engine in the NCBI C++ toolkit.
Definition: version.hpp:53
Handles command line arguments for blastp binary.
Definition: blastp_args.hpp:44
virtual int GetQueryBatchSize() const
@inheritDoc
CBlastpApp()
@inheritDoc
Definition: blastp_app.cpp:55
int x_RunMTBySplitDB()
Definition: blastp_app.cpp:177
virtual void Init()
@inheritDoc
Definition: blastp_app.cpp:85
CStopWatch m_StopWatch
Definition: blastp_app.cpp:81
CBlastAppDiagHandler m_Bah
Definition: blastp_app.cpp:79
CBlastUsageReport m_UsageReport
Definition: blastp_app.cpp:80
CRef< CBlastOptionsHandle > m_OptsHndl
Definition: blastp_app.cpp:82
virtual int Run()
@inheritDoc
Definition: blastp_app.cpp:114
int x_RunMTBySplitQuery()
Definition: blastp_app.cpp:303
CRef< CBlastpAppArgs > m_CmdLineArgs
This application's command line args.
Definition: blastp_app.cpp:78
void DebugDumpText(ostream &out, const string &bundle, unsigned int depth) const
Definition: ddumpable.cpp:56
CFile –.
Definition: ncbifile.hpp:1604
int GetHitsSortOption() const
virtual bool ArchiveFormatRequested(const CArgs &args) const
string GetCustomOutputFormatSpec() const
Retrieve for string that specifies the custom output format for tabular and comma-separated value.
EOutputFormat GetFormattedOutputChoice() const
Get the choice of formatted output.
int GetHspsSortOption() const
TSeqPos GetNumAlignments() const
Number of alignments to show in traditional BLAST output.
bool ShowGis() const
Display the NCBI GIs in formatted output?
TSeqPos GetNumDescriptions() const
Number of one-line descriptions to show in traditional BLAST output.
size_t GetLineLength() const
bool DisplayHtmlOutput() const
Display HTML output?
string GetCustomDelimiter()
Class to perform a BLAST search on local BLAST databases Note that PHI-BLAST can be run using this cl...
Definition: local_blast.hpp:62
@ eSplitByQueries
NCBI C++ Object Manager dependant implementation of IQueryFactory.
objects::ENa_strand GetStrand() const
Get strand to search in query sequence(s)
Definition: blast_args.hpp:800
bool GetParseDeflines() const
Should the defline be parsed?
Definition: blast_args.hpp:804
bool QueryIsProtein() const
Is the query sequence protein?
Definition: blast_args.hpp:807
TSeqRange GetRange() const
Get query sequence range restriction.
Definition: blast_args.hpp:796
bool UseLowercaseMasks() const
Use lowercase masking in FASTA input?
Definition: blast_args.hpp:802
CRef –.
Definition: ncbiobj.hpp:618
Search Results for All Queries.
Uint8 GetTotalLength() const
Returns the sum of the lengths of all available sequences.
Definition: seqdb.cpp:685
CStopWatch –.
Definition: ncbitime.hpp:1938
const string kArgOutput
Output file name.
const string kArgQuery
Query sequence(s)
void Print(const CCompactSAMApplication::AlignInfo &ai)
int GetDbGeneticCode() const
virtual void SetNumberOfThreads(size_t nthreads)
Mutator for the number of threads.
void ResetMessages(void)
Reset messgae buffer, erase all saved message.
Definition: blast_aux.cpp:1174
CRef< CSeqDB > GetSeqDb() const
Obtain a reference to the database.
CRef< CSearchResultSet > Run()
Executes the search.
int GetFilteringAlgorithm()
Retrieve the database filtering algorithm.
EProgram GetProgram() const
Accessors/Mutators for individual options.
const CBlastOptions & GetOptions() const
Return the object which this object is a handle for.
int GetQueryGeneticCode() const
bool GetSumStatisticsMode() const
Sum statistics options.
CRef< CSearchResultSet > GetResultSet()
Submit the search (if necessary) and return the results.
void DoNotSaveMessages(void)
Call to turn off saving diag message, discard all saved message.
Definition: blast_aux.cpp:1189
const char * GetMatrixName() const
list< CRef< objects::CBlast4_error > > & GetMessages(void)
Return list of saved diag messages.
Definition: blast_aux.hpp:262
int GetWordSize() const
void SetFullVersion(CRef< CVersionAPI > version)
Set version data for the program.
Definition: ncbiapp.cpp:1154
void HideStdArgs(THideStdArgs hide_mask)
Set the hide mask for the Hide Std Flags.
Definition: ncbiapp.cpp:1292
virtual const CArgs & GetArgs(void) const
Get parsed command line arguments.
Definition: ncbiapp.cpp:285
int AppMain(int argc, const char *const *argv, const char *const *envp=0, EAppDiagStream diag=eDS_Default, const char *conf=NcbiEmptyCStr, const string &name=NcbiEmptyString)
Main function (entry point) for the NCBI application.
Definition: ncbiapp.cpp:799
CVersionInfo GetVersion(void) const
Get the program version information.
Definition: ncbiapp.cpp:1164
virtual void SetupArgDescriptions(CArgDescriptions *arg_desc)
Setup the command line argument descriptions.
Definition: ncbiapp.cpp:1175
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
Definition: ncbimisc.hpp:815
const CNcbiArguments & GetArguments(void) const
Get the application's cached unprocessed command-line arguments.
@ fHideXmlHelp
Hide XML help description.
@ fHideLogfile
Hide log file description.
@ fHideFullVersion
Hide full version description.
@ fHideDryRun
Hide dryrun description.
@ fHideConffile
Hide configuration file description.
bool Exist(const string &name) const
Check existence of argument description.
Definition: ncbiargs.cpp:1813
#define NULL
Definition: ncbistd.hpp:225
void SetDiagPostPrefix(const char *prefix)
Specify a string to prefix all subsequent error postings with.
Definition: ncbidiag.cpp:6097
#define INFO_POST(message)
Definition: ncbidiag.hpp:201
EDiagSev SetDiagPostLevel(EDiagSev post_sev=eDiag_Error)
Set the threshold severity for posting the messages.
Definition: ncbidiag.cpp:6129
#define ERR_POST(message)
Error posting with file, line number information but without error codes.
Definition: ncbidiag.hpp:186
void SetDiagHandler(CDiagHandler *handler, bool can_delete=true)
Set the diagnostic handler using the specified diagnostic handler class.
Definition: ncbidiag.cpp:6288
@ eDiag_Warning
Warning message.
Definition: ncbidiag.hpp:652
void Warning(CExceptionArgs_Base &args)
Definition: ncbiexpt.hpp:1191
void Reset(void)
Reset reference object.
Definition: ncbiobj.hpp:773
int64_t Int8
8-byte (64-bit) signed integer
Definition: ncbitype.h:104
uint64_t Uint8
8-byte (64-bit) unsigned integer
Definition: ncbitype.h:105
bool IsEnabled(void)
Indicates whether application usage statistics collection is enabled for a current reporter instance.
IO_PREFIX::ostream CNcbiOstream
Portable alias for ostream.
Definition: ncbistre.hpp:149
#define NcbiCerr
Definition: ncbistre.hpp:544
#define kEmptyStr
Definition: ncbistr.hpp:123
char TXChar
Definition: ncbistr.hpp:172
double Elapsed(void) const
Return time elapsed since first Start() or last Restart() call (in seconds).
Definition: ncbitime.hpp:2776
void Start(void)
Start the timer.
Definition: ncbitime.hpp:2765
#define CVersion
FILE * file
static int input()
Main class to perform a BLAST search on the local machine.
static int version
Definition: mdb_load.c:29
unsigned int a
Definition: ncbi_localip.c:102
EIPRangeType t
Definition: ncbi_localip.c:101
Defines the CNcbiApplication and CAppException classes for creating NCBI applications.
NOTE: This file contains work in progress and the APIs are likely to change, please do not rely on th...
Declares the CRemoteBlast class.
Configuration structure for the CBlastScopeSource.
#define _ASSERT
else result
Definition: token2.c:20
Modified on Sat Dec 02 09:21:26 2023 by modify_doxy.py rev. 669887