58 #ifndef SKIP_DOXYGEN_PROCESSING
88 queries.push_back(*sl0);
91 queries.push_back(*sl1);
98 uniform_search->SetQueryFactory(query_factory);
99 uniform_search->SetSubject(
subject);
100 uniform_search->SetOptions(options);
120 for (
size_t i = 0;
i < messages.size() - 1;
i++) {
121 BOOST_REQUIRE(messages[
i]->GetSeverity() <
122 messages[
i+1]->GetSeverity());
129 for (
int i = 0;
i < 10;
i++) {
138 for (
size_t i = 0;
i < messages.size() - 1;
i++) {
139 BOOST_REQUIRE(messages[
i]->GetErrorId() <
140 messages[
i+1]->GetErrorId());
148 for (
int i = 0;
i < 10;
i++) {
157 for (
size_t i = 0;
i < messages.size() - 1;
i++) {
158 BOOST_REQUIRE(messages[
i]->GetMessage() <
159 messages[
i+1]->GetMessage());
165 const int kErrorId = 2;
166 const string kMsg(
"hello");
172 BOOST_REQUIRE(!(m1 < m1_copy));
173 BOOST_REQUIRE(m1 < m2);
176 BOOST_REQUIRE(m1 < m3);
179 BOOST_REQUIRE(m1 < m4);
183 const string kFname(
"data/empty_result_set.asn");
184 const size_t kNumQueries = 3;
185 const int gis[kNumQueries] = { 555, 115988564, 3090 };
190 messages.resize(kNumQueries);
192 ifstream
input(kFname.c_str());
194 throw runtime_error(
"Failed to read " + kFname);
197 for (
size_t i = 0;
i < kNumQueries;
i++) {
204 BOOST_REQUIRE_EQUAL(kNumQueries,
results.GetNumResults());
206 BOOST_REQUIRE(
results[0].HasAlignments());
207 BOOST_REQUIRE(!
results[1].HasAlignments());
208 BOOST_REQUIRE(
results[2].HasAlignments());
213 const int kErrorId = 2;
214 const string kMsg(
"hello");
218 BOOST_REQUIRE(m1 == m2);
221 BOOST_REQUIRE(m1 != m3);
User-defined methods of the data storage class.
EBlastSeverity
Blast error message severities .
vector< CRef< objects::CSeq_align_set > > TSeqAlignVector
Vector of Seq-align-sets.
@ eBlastp
Protein-Protein.
Defines BLAST error codes (user errors included)
Factory for CLocalSearch.
NCBI C++ Object Manager dependant implementation of IQueryFactory.
Factory for CRemoteSearch.
Error or Warning Message from search.
Search Results for All Queries.
void AddGi(TGi gi)
Add a new GI to the list.
static CTestObjMgr & Instance()
Class for the messages for an individual query sequence.
typedef for the messages for an entire BLAST search, which could be comprised of multiple query seque...
void SetEvalueThreshold(double eval)
Sets EvalueThreshold.
void SetNegativeGiList(CSeqDBGiList *gilist)
Mutator for the negative gi list.
virtual CRef< ISeqSearch > GetSeqSearch()=0
Create a new search object with a sequence-based query.
virtual CRef< CBlastOptionsHandle > GetOptions(EProgram program)=0
Create a CBlastOptionsHandle.
vector< CConstRef< objects::CSeq_id > > TQueryIdVector
List of query ids.
void SetHitlistSize(int s)
Sets HitlistSize.
size_type GetNumResults() const
Return the number of results contained by this object.
void SetGiList(CSeqDBGiList *gilist)
Mutator for the gi list.
@ eBlastDbIsProtein
protein
#define MSerial_AsnText
I/O stream manipulators –.
TValue GetRand(void)
Get the next random number in the interval [0..GetMax()] (inclusive)
static string IntToString(int value, TNumToStringFlags flags=0, int base=10)
Convert int to string.
@ e_Gi
GenInfo Integrated Database.
Implementation of the uniform BLAST search interface for searching locally installed BLAST databases.
constexpr auto sort(_Init &&init)
Magic spell ;-) needed for some weird compilers... very empiric.
NOTE: This file contains work in progress and the APIs are likely to change, please do not rely on th...
Remote implementation of the uniform BLAST search interface.
API to compare CSeq-aligns produced by BLAST.
Converts a Seq-align-set into a neutral seqalign for use with the CSeqAlignCmp class.
Defines BLAST database access classes.
Defines exception class and several constants for SeqDB.
static SLJIT_INLINE sljit_ins msg(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)
vector< SSeqLoc > TSeqLocVector
Vector of sequence locations.
Utility stuff for more convenient using of Boost.Test library.