47 arg_desc.SetCurrentGroup(
"Miscellaneous options");
49 const int kDfltRpsThreadingMode = 1;
51 "Number of threads to use in RPS BLAST search:\n "
52 "0 (auto = num of databases)\n "
53 "1 (disable)\n max number of threads = num of databases",
58 arg_desc.AddDefaultKey(
kArgMTMode,
"int_value",
59 "Multi-thread mode to use in RPS BLAST search:\n "
60 "0 (auto) split by database vols\n "
67 arg_desc.SetCurrentGroup(
"");
72 const bool kQueryIsProtein =
true;
73 const bool kIsRpsBlast =
true;
74 const bool kIsCBS2and3Supported =
false;
75 const bool kFilterByDefault =
false;
77 static const string kProgram(
"rpsblast");
79 "Reverse Position Specific BLAST"));
83 static const char kDefaultTask[] =
"rpsblast";
123 string cbs_opt_zero_descr =
"Simplified Composition-based statistics as in"
124 " Bioinformatics 15:1000-1011, 1999";
127 cbs_opt_zero_descr));
Declares singleton objects to store the version and reference for the BLAST engine.
Declares the BLAST exception class.
Declares the CBlastRPSOptionsHandle class.
@ eRPSBlast
protein-pssm (reverse-position-specific BLAST)
Class to constrain the values of an argument to those in between the values specified in the construc...
Class to constrain the values of an argument to those greater than or equal to the value specified in...
CRef< CRemoteArgs > m_RemoteArgs
remote vs. local execution options
virtual CNcbiIstream & GetInputStream()
Get the input stream.
CRef< CQueryOptionsArgs > m_QueryOptsArgs
query options object
CRef< CBlastDatabaseArgs > m_BlastDbArgs
database/subject object
CRef< CDebugArgs > m_DebugArgs
Debugging arguments.
CRef< CMTArgs > m_MTArgs
multi-threaded options
CRef< CFormattingArgs > m_FormattingArgs
formatting options
bool m_IsUngapped
Is this application being run ungapped.
TBlastCmdLineArgs m_Args
Set of command line argument objects.
void SetTask(const string &task)
Set the task for this object.
virtual CNcbiOstream & GetOutputStream()
Get the output stream.
CRef< CStdCmdLineArgs > m_StdCmdLineArgs
standard command line arguments class
string m_ClientId
Client ID used for remote BLAST submissions, must be populated by subclasses.
Argument class to collect database/subject arguments.
EAPILocality
Enumerates the possible contexts in which objects of this type can be used.
Handle to the rpsblast options to the BLAST algorithm.
Keeps track of the version of the BLAST engine in the NCBI C++ toolkit.
Argument class for collecting composition based statistics options.
Argument class to collect debugging options.
Argument class for collecting filtering options.
Argument class for general search BLAST algorithm options: evalue, gap penalties, query filter string...
Argument class to populate an application's name and description.
Argument class to collect query options.
CRPSBlastAppArgs()
Constructor.
virtual CNcbiIstream & GetInputStream()
Get the input stream.
virtual CRef< CBlastOptionsHandle > x_CreateOptionsHandle(CBlastOptions::EAPILocality locality, const CArgs &args)
@inheritDoc
virtual int GetQueryBatchSize() const
@inheritDoc
virtual CNcbiOstream & GetOutputStream()
Get the output stream.
CNcbiStrstream m_OutputStream
CNcbiIstrstream * m_InputStream
virtual ~CRPSBlastNodeArgs()
virtual CNcbiOstream & GetOutputStream()
Get the output stream.
virtual CRef< CBlastOptionsHandle > x_CreateOptionsHandle(CBlastOptions::EAPILocality locality, const CArgs &args)
@inheritDoc
virtual int GetQueryBatchSize() const
@inheritDoc
virtual CNcbiIstream & GetInputStream()
Get the input stream.
CRPSBlastNodeArgs(const string &input)
Constructor.
Argument class to collect remote vs. local execution.
bool ExecuteRemotely() const
Return whether the search should be executed remotely or not.
Argument class to retrieve input and output streams for a command line program.
Argument class to retrieve and set the window size BLAST algorithm option.
const string kDfltArgCompBasedStatsRPS
const string kArgMTMode
Argument to specify mt mode (split by db or split by queries)
const string kArgNumThreads
Argument to determine the number of threads to use when running BLAST.
virtual string Print(void) const
Print version information.
@ eInteger
Convertible into an integer number (int or Int8)
void Reset(void)
Reset reference object.
bool NotEmpty(void) const THROWS_NONE
Check if CRef is not empty – pointing to an object and has a non-null value.
#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.
IO_PREFIX::ostream CNcbiOstream
Portable alias for ostream.
IO_PREFIX::istream CNcbiIstream
Portable alias for istream.
static string IntToString(int value, TNumToStringFlags flags=0, int base=10)
Convert int to string.
Main argument class for RPSBLAST application.