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

NCBI C++ ToolKit: src/sample/app/blast/blast_demo.cpp Source File

65  virtual void Init

(

void

);

66  virtual int Run

(

void

);

67  virtual void Exit

(

void

);

82

arg_desc->SetUsageContext(

GetArguments

().GetProgramBasename(),

"BLAST demo program"

);

85

(

"program"

,

"ProgramName"

,

86  "One of blastn, megablast, dc-megablast, blastp, blastx, tblastn, tblastx, rpsblast"

,

88

arg_desc->SetConstraint

90  "blastn"

,

"megablast"

,

"dc-megablast"

,

"blastp"

,

"blastx"

,

"tblastn"

,

"tblastx"

,

"rpsblast"

));

92

arg_desc->AddDefaultKey

94  "This is the name of the database"

,

97

arg_desc->AddDefaultKey(

"in"

,

"Queryfile"

,

100

arg_desc->AddDefaultKey(

"out"

,

"Outputfile"

,

103

arg_desc->AddDefaultKey(

"evalue"

,

"evalue"

,

106

arg_desc->AddDefaultKey(

"penalty"

,

"penalty"

,

"Penalty score for a mismatch"

,

109

arg_desc->AddDefaultKey(

"reward"

,

"reward"

,

"Reward score for a match"

,

112

arg_desc->AddDefaultKey(

"matrix"

,

"matrix"

,

"Scoring matrix name"

,

129  if

(args[

"evalue"

].AsDouble())

142  if

(args[

"reward"

].AsInteger())

143

nucl_handle->SetMatchReward(args[

"reward"

].AsInteger());

144  if

(args[

"penalty"

].AsInteger())

145

nucl_handle->SetMismatchPenalty(args[

"penalty"

].AsInteger());

150  if

(args[

"matrix"

])

151

prot_handle->SetMatrixName(args[

"matrix"

].AsString().c_str());

180  throw

std::runtime_error(

"Could not initialize object manager"

);

196  CLocalBlast

blaster(query_factory, opts, target_db);

201  for

(

unsigned int i

= 0;

i

<

results

.GetNumResults();

i

++)

204  if

(messages.size() > 0) {

207  for

(

const auto

& it : messages)

208

cerr << it->GetMessage() << endl;

214  for

(

unsigned int i

= 0;

i

<

results

.GetNumResults();

i

++) {

235 #ifndef SKIP_DOXYGEN_PROCESSING

Contains C++ wrapper classes to structures in algo/blast/core as well as some auxiliary functions to ...

int NcbiSys_main(int argc, ncbi::TXChar *argv[])

Interface for reading SRA sequences into blast input.

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

Declares the CBlastNucleotideOptionsHandle class.

Declares the CBlastOptionsHandle and CBlastOptionsFactory classes.

Boolean Blast_QueryIsProtein(EBlastProgramType p)

Returns true if the query is protein.

Declares the CBlastProteinOptionsHandle class.

Definitions of special type used in BLAST.

EProgram

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

@ eRPSBlast

protein-pssm (reverse-position-specific BLAST)

@ eBlastp

Protein-Protein.

@ eRPSTblastn

nucleotide-pssm (RPS blast with translated query)

@ eBlastx

Translated nucl-Protein.

void ProcessCommandLineArgs(CRef< CBlastOptionsHandle > opts_handle)

Modify BLAST options from defaults based upon command-line args.

virtual int Run(void)

Run the application.

virtual void Exit(void)

Cleanup on application exit.

virtual void Init(void)

Initialize the application.

Class representing a text file containing sequences in fasta format.

Class that centralizes the configuration data for sequences to be converted.

Generalized converter from an abstract source of biological sequence data to collections of blast inp...

TSeqLocVector GetAllSeqLocs(CScope &scope)

Read and convert all the sequences from the source.

Handle to the nucleotide-nucleotide options to the BLAST algorithm.

Handle to the protein-protein options to the BLAST algorithm.

Class to perform a BLAST search on local BLAST databases Note that PHI-BLAST can be run using this cl...

NCBI C++ Object Manager dependant implementation of IQueryFactory.

Search Results for All Queries.

Class for the messages for an individual query sequence.

std::ofstream out("events_result.xml")

main entry point for tests

void SetEvalueThreshold(double eval)

Sets EvalueThreshold.

CRef< CSearchResultSet > Run()

Executes the search.

static CBlastOptionsHandle * Create(EProgram program, EAPILocality locality=CBlastOptions::eLocal)

Creates an options handle object configured with default options for the requested program,...

EBlastProgramType GetProgramType() const

Returns the CORE BLAST notion of program type.

const CBlastOptions & GetOptions() const

Return the object which this object is a handle for.

bool Validate() const

Validate the options contained in this object.

EProgram ProgramNameToEnum(const std::string &program_name)

Map a string into an element of the ncbi::blast::EProgram enumeration (except eBlastProgramMax).

@ eBlastDbIsNucleotide

nucleotide

@ eBlastDbIsProtein

protein

virtual const CArgs & GetArgs(void) const

Get parsed command line arguments.

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.

virtual void SetupArgDescriptions(CArgDescriptions *arg_desc)

Setup the command line argument descriptions.

const CNcbiArguments & GetArguments(void) const

Get the application's cached unprocessed command-line arguments.

@ eInputFile

Name of file (must exist and be readable)

@ eDouble

Convertible into a floating point number (double)

@ eString

An arbitrary string.

@ eOutputFile

Name of file (must be writable)

@ eInteger

Convertible into an integer number (int or Int8)

#define MSerial_AsnText

I/O stream manipulators –.

const string AsFastaString(void) const

static CRef< CObjectManager > GetInstance(void)

Return the existing object manager or create one.

bool NotEmpty(void) const THROWS_NONE

Check if CConstRef is not empty – pointing to an object and has a non-null value.

IO_PREFIX::ostream CNcbiOstream

Portable alias for ostream.

Main class to perform a BLAST search on the local machine.

Defines the CNcbiApplication and CAppException classes for creating NCBI applications.

Defines command line argument related classes.

Defines unified interface to application:

NOTE: This file contains work in progress and the APIs are likely to change, please do not rely on th...

Definition of SSeqLoc structure.

vector< SSeqLoc > TSeqLocVector

Vector of sequence locations.

Configuration structure for the CBlastScopeSource.

Uniform BLAST Search Interface.


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