SInteractingOptions;
81 #ifndef SKIP_DOXYGEN_PROCESSING 137 voidSetGIList(
constlist<TGi> & gi_list);
142 voidSetNegativeGIList(
constlist<TGi> & gi_list);
157 voidSetDatabase(
const string& x);
166 voidSetEntrezQuery(
const char* x);
176 staticobjects::CBlast4_get_search_results_reply::TMasks
179vector<string>* warnings =
NULL);
225 boolSubmitSync(
void);
237 boolSubmitSync(
inttimeout);
263ESearchStatus CheckStatus();
277 boolCheckDone(
void);
283 stringGetErrors(
void);
291 stringGetWarnings(
void);
296 constvector<string> & GetWarningVector();
301 constvector<string> & GetErrorVector();
308 const string& GetRID(
void);
364list< string > GetSearchStats(
void);
382 voidSetVerbose(EDebugMode verb = eDebug);
404list< CRef<objects::CBioseq> > GetSubjectSequences();
421 stringGetCreatedBy();
447 returnm_DbFilteringAlgorithmId;
452 returnm_DbFilteringAlgorithmKey;
463 void SetClientId(
const string& client_id) { m_ClientId = client_id; }
466 boolLoadFromArchive();
486 unsigned intGetPsiNumberOfIterations(
void);
488 boolIsErrMsgArchive(
void);
496 return!m_SubjectSeqLocs.empty() || !m_SubjectSequences.empty();
504 voidx_SetDatabase(
const string& x);
512 typedeflist< CRef<objects::CBlast4_parameter> >
TValueList;
515 typedefobjects::CBlast4_get_search_results_reply
TGSRR;
519TGSRR::TMasks x_GetMasks(
void);
552 intx_DefaultTimeout(
void);
561 const string& program,
562 const string& service);
568 voidx_Init(
const string& RID);
581 voidx_InitDiskCache(
void);
584 voidx_SetAlgoOpts(
void);
589 voidx_SetOneParam(objects::CBlast4Field & field,
const int*
value);
594 voidx_SetOneParam(objects::CBlast4Field & field,
constlist<int> *
value);
599 voidx_SetOneParam(objects::CBlast4Field & field,
constlist<Int8> *
value);
604 voidx_SetOneParam(objects::CBlast4Field & field,
const char**
value);
612 EStatex_GetState(
void);
617 boolx_IsUnknownRID(
void);
621TGSRR * x_GetGSRR(
void);
631x_GetSearchResults(
void);
634 voidx_CheckConfig(
void);
637 voidx_SubmitSearch(
void);
640 voidx_CheckResults(
void);
643 voidx_CheckResultsDC(
void);
650 voidx_PollUntilDone(EImmediacy poll_immed,
intseconds);
653 voidx_GetRequestInfo();
655 voidx_GetRequestInfoFromRID();
657 voidx_GetRequestInfoFromFile();
679 voidx_QueryMaskingLocationsToNetwork();
684 constobjects::CBlast4_value & v,
685 structSInteractingOptions & io);
690 structSInteractingOptions & io);
710 voidx_GetSubjects(
void);
714 const string&
value);
717 unsigned intx_GetPsiIterationsFromServer(
void);
Contains C++ wrapper classes to structures in algo/blast/core as well as some auxiliary functions to ...
ESubjectMaskingType
Define the possible subject masking types.
#define NCBI_XBLAST_EXPORT
NULL operations for other cases.
Declares the CBlastOptionsHandle and CBlastOptionsFactory classes.
EBlastProgramType
Defines the engine's notion of the different applications of the BLAST algorithm.
vector< CRef< objects::CSeq_align_set > > TSeqAlignVector
Vector of Seq-align-sets.
EProgram
This enumeration is to evolve into a task/program specific list that specifies sets of default parame...
ncbi::TMaskedQueryRegions mask
Defines BLAST error codes (user errors included)
Handle to the options to the BLAST algorithm.
EFormat
The formats are checked in the same order as declared here.
Exception class for the CRemoteBlast class.
API for Remote Blast Requests.
list< CRef< objects::CBlast4_parameter > > TValueList
Value list.
objects::CBlast4_get_search_results_reply TGSRR
An alias for the most commonly used part of the Blast4 search results.
ENeedConfig m_NeedConfig
Bitfield to track whether all necessary configuration is done.
list< CRef< objects::CBioseq > > m_SubjectSequences
Subject Sequences.
CRef< objects::CBlast4_queries > m_Queries
Queries associated with this search.
objects::EBlast4_frame_type FrameNumber2NetworkFrame(int frame, EBlastProgramType program)
Converts the return value of CSeqLocInfo::GetFrame into the Blast4-frame-type field.
list< CRef< objects::CBlast4_ka_block > > TKarlinAltschulBlocks
Convenience typedef for a list of CRef<CBlast4_ka_block>
void EnableDiskCacheUse()
Controls disk cache usage for results retrieval.
list< TGi > m_GiList
GI list.
void x_ProcessOneOption(CBlastOptionsHandle &opts, const string &nm, const objects::CBlast4_value &v, struct SInteractingOptions &io)
Add an algorithm or program option to the provided handle.
EErrCode
Error types that BLAST can generate.
string m_RID
Request ID of submitted or pre-existing search.
TSeqLocInfoVector m_QueryMaskingLocations
Masking locations for queries.
list< TGi > m_NegativeGiList
Negative GI list.
CFormatGuess::EFormat m_ObjectType
Type of object CBlast4_archive as determined by CFormatGuess.
bool m_use_disk_cache
Use disk cache for retrieving results default: false.
ENeedConfig
This class attempts to verify whether all necessary configuration is complete before attempting to su...
CRef< objects::CBlast4_archive > m_Archive
Archive of BLAST search and results.
set< TTaxId > & GetNegativeTaxidList()
CRemoteBlast & operator=(const CRemoteBlast &)
Prohibit assignment.
CRef< blast::CBlastOptionsHandle > m_CBOH
Options for new search.
string GetTask() const
Returns the task used to create the remote search (if any)
ESearchStatus
Represents the status of previously submitted search/RID.
vector< CConstRef< objects::CSeq_id > > TQueryIdVector
List of query ids.
CRef< objects::CBlast4_parameters > m_FormatOpts
Options relevant to the format application.
vector< string > m_Warn
List of warnings encountered.
EDebugMode
Debugging support can be turned on with eDebug or off with eSilent.
void SetClientId(const string &client_id)
Sets the client ID used by this object to send requests.
int m_DbFilteringAlgorithmId
filtering algorithm to use in the database
EDebugMode m_Verbose
Verbosity mode: whether to produce debugging info on stdout.
EImmediacy
Indicates whether to use async mode.
set< TTaxId > m_NegativeTaxidList
vector< string > m_Errs
List of errors encountered.
string GetDiskCacheErrorMessahe(void)
virtual const char * GetErrCodeString(void) const override
Translate from the error code value to its string representation.
void FlattenBioseqSet(const CBioseq_set &bss, list< CRef< CBioseq > > &seqs)
void SetQueries(TSeqLocList &seqlocs)
Set the query as a list of Seq_locs.
unique_ptr< CObjectIStream > m_ObjectStream
Use to ready CBlast4_archive.
CRef< objects::CBlast4_request > ExtractBlast4Request(CNcbiIstream &in)
Extract a Blast4-request (a.k.a.
string m_Service
Service value used when submitting this search.
bool m_ReadFile
true if a CBlast4_archive should be read in.
CBlast4_subject::TSeq_loc_list m_SubjectSeqLocs
This field is populated when dealing with a remote bl2seq search (e.g.
string m_FinalDbSeq
Final database sequence.
CRef< objects::CBlast4_parameters > m_AlgoOpts
Options relevant to the search algorithm.
string m_FirstDbSeq
First database sequence.
CRemoteBlast(const CRemoteBlast &)
Prohibit copy construction.
NCBI_EXCEPTION_DEFAULT(CRemoteBlastException, CBlastException)
bool IsDiskCacheActive(void)
CRef< objects::CBlast4_database > m_Dbs
Databases.
EBlastProgramType NetworkProgram2BlastProgramType(const string &program, const string &service)
Function to convert from program and service name into the CORE BLAST program type This is based on t...
string m_ClientId
Client ID submitting requests throw this interface.
CRef< objects::CBlast4_parameters > m_ProgramOpts
Options relevant to the search application.
string GetDbFilteringAlgorithmKey() const
Returns the filtering algorithm key used in the database.
vector< CRef< objects::CSeq_data > > TSeqDataVector
Defines a std::vector of CRef<CSeq_data>
EProgram x_AdjustProgram(const TValueList &L, const string &pstr, EProgram program)
Adjust the EProgram based on option values.
CRef< objects::CBlast4_queue_search_request > m_QSR
Request object for new search.
set< TTaxId > m_TaxidList
string m_DbFilteringAlgorithmKey
filtering algorithm key to use in the database
CRef< objects::CBlast4_reply > m_Reply
Results of BLAST search.
void DisableDiskCacheUse()
list< CRef< objects::CSeq_loc > > TSeqLocList
Typedef for a list of Seq-locs.
void x_ProcessOptions(CBlastOptionsHandle &opts, const TValueList &L, struct SInteractingOptions &io)
Add algorithm and program options to the provided handle.
vector< CRef< objects::CSeq_interval > > TSeqIntervalVector
Defines a std::vector of CRef<CSeq_interval>
string m_disk_cache_error_msg
disk cache error message
void SetQueries(TSeqLocList &seqlocs, const TSeqLocInfoVector &masking_locations)
Set the query as a list of Seq_locs.
set< TTaxId > & GetTaxidList()
bool m_Pending
Pending state: indicates that search still needs to be queued.
string m_Task
Task used when the search was submitted (recovered via CBlastOptionsBuilder)
bool m_disk_cache_error_flag
disk cache error flag
Int4 GetDbFilteringAlgorithmId() const
Returns the filtering algorithm ID used in the database.
ESubjectMaskingType m_SubjectMaskingType
string m_Program
Program value used when submitting this search.
string m_EntrezQuery
Entrez Query, if any.
bool x_HasRetrievedSubjects() const
string m_CreatedBy
Created-by attribution for this search.
string GetClientId() const
Retrieves the client ID used by this object to send requests.
int m_ErrIgn
Count of server glitches (communication errors) to ignore.
bool IsDiskCacheError(void)
disk cache error handling
void ClearDiskCacheError(void)
CSeqLocInfo::ETranslationFrame NetworkFrame2FrameNumber(objects::EBlast4_frame_type frame, EBlastProgramType program)
Converts Blast4-frame-type into CSeqLocInfo::ETranslationFrame.
@ eStatus_Pending
Not completed yet.
@ eStatus_Unknown
Never submitted or purged from the system.
@ eStatus_Done
Completed successfully.
@ eServiceNotAvailable
Service is not available.
@ eIncompleteConfig
Remote BLAST object not fully configured.
TErrCode GetErrCode(void) const
Get error code.
virtual const char * GetErrCodeString(void) const
Get error code interpreted as text.
NCBI_XOBJUTIL_EXPORT string GetTitle(const CBioseq_Handle &hnd, TGetTitleFlags flags=0)
int32_t Int4
4-byte (32-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.
IO_PREFIX::istream CNcbiIstream
Portable alias for istream.
EBlast4_frame_type
Access to EBlast4_frame_type's attributes (values, names) as defined in spec.
list< CRef< CSeq_loc > > TSeq_loc_list
Names used in blast4 network communications.
const GenericPointer< typename T::ValueType > T2 value
std::istream & in(std::istream &in_, double &x_)
vector< TMaskedQueryRegions > TSeqLocInfoVector
Collection of masked regions for all queries in a BLAST search.
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