58 BOOST_REQUIRE_EQUAL((
Int4)24,
63 BOOST_REQUIRE(hsp_list);
64 BOOST_REQUIRE_EQUAL((
Int4)0, hsp_list[0].oid);
65 BOOST_REQUIRE_EQUAL((
Int4)1, hsp_list[0].hspcnt);
66 BOOST_REQUIRE(hsp_list[0].hsp_array[0]);
67 BOOST_REQUIRE_EQUAL((
Int4)103, hsp_list[0].hsp_array[0]->score);
68 BOOST_REQUIRE_EQUAL((
Int4)0, hsp_list[0].hsp_array[0]->
query.offset);
69 BOOST_REQUIRE_EQUAL((
Int4)21, hsp_list[0].hsp_array[0]->
query.end);
70 BOOST_REQUIRE_EQUAL((
Int4)0,
71 hsp_list[0].hsp_array[0]->
subject.offset);
72 BOOST_REQUIRE_EQUAL((
Int4)21,
73 hsp_list[0].hsp_array[0]->
query.end);
105 (prelim_search, results->
m_HspStream->GetPointer(), options);
135 (prelim_search, results->
m_HspStream->GetPointer(), options);
146 q_tsl.push_back(*q_ssl);
175 q_tsl.push_back(*q_ssl);
188 std::vector<std::list<CRef<CStd_seg> > > l;
189 prelim_search.
Run(l);
191 BOOST_REQUIRE(l.size() == 1);
192 BOOST_REQUIRE(l[0].
size() >= 1);
194 BOOST_REQUIRE(seg->GetSeqStart(0) == 0);
195 BOOST_REQUIRE(seg->GetSeqStop(0) == 506);
196 BOOST_REQUIRE(seg->GetSeqStart(1) == 54);
197 BOOST_REQUIRE(seg->GetSeqStop(1) == 560);
198 const vector<CRef<CSeq_id> > &
id = seg->GetIds();
200 const vector<CRef<CSeq_loc> > & loc = seg->GetLoc();
212 q_tsl.push_back(*q_ssl);
225 std::vector<std::list<CRef<CStd_seg> > > l;
226 prelim_search.
Run(l);
228 BOOST_REQUIRE(l.size() == 1);
229 BOOST_REQUIRE(l[0].
size() > 1);
231 BOOST_REQUIRE(seg->GetSeqStart(0) == 0);
232 BOOST_REQUIRE(seg->GetSeqStop(0) == 506);
233 BOOST_REQUIRE(seg->GetSeqStart(1) == 54);
234 BOOST_REQUIRE(seg->GetSeqStop(1) == 560);
235 const vector<CRef<CSeq_id> > &
id = seg->GetIds();
237 const vector<CRef<CSeq_loc> > & loc = seg->GetLoc();
Declares the CBlastOptionsHandle and CBlastOptionsFactory classes.
@ eTblastx
Translated nucl-Translated nucl.
@ eBlastp
Protein-Protein.
@ eMegablast
Nucl-Nucl (traditional megablast)
CAutoEnvironmentVariable –.
Wrapper class for BlastHSPResults .
Search class to perform the preliminary stage of the BLAST search.
void AddQuery(CRef< CBlastSearchQuery > q)
Add a query to the set.
NCBI C++ Object Manager dependant implementation of IQueryFactory.
static CTestObjMgr & Instance()
string GetSeqIdString(const CSeq_id &id)
size_t GetNumberOfThreads(void) const
Accessor for the number of threads to use.
CRef< SInternalData > Run()
Borrow the internal data and results results.
bool IsMultiThreaded(void) const
Returns true if more than 1 thread is specified.
static CBlastOptionsHandle * Create(EProgram program, EAPILocality locality=CBlastOptions::eLocal)
Creates an options handle object configured with default options for the requested program,...
CBlastOptions & SetOptions()
Returns a reference to the internal options class which this object is a handle for.
virtual void SetNumberOfThreads(size_t nthreads)
@inheritDoc
CRef< TBlastDiagnostics > m_Diagnostics
Diagnostic output from preliminary and traceback stages.
void SetSegFiltering(bool val=true)
CRef< TBlastHSPStream > m_HspStream
HSP output of the preliminary stage goes here.
BlastHSPResults * ComputeBlastHSPResults(BlastHSPStream *stream, Uint4 max_num_hsps=0, bool *rm_hsps=NULL, vector< bool > *rm_hsps_info=NULL) const
Return HSPs in a structure other than the HSPStream? Provide conversion? How to combine this with CBl...
@ eBlastDbIsNucleotide
nucleotide
@ eBlastDbIsProtein
protein
ENa_strand GetStrand(const CSeq_loc &loc, CScope *scope=0)
Returns eNa_strand_unknown if multiple Bioseqs in loc Returns eNa_strand_other if multiple strands in...
TObjectType * GetPointer(void) THROWS_NONE
Get pointer,.
int32_t Int4
4-byte (32-bit) signed integer
ENa_strand
strand of nucleic acid
@ e_Gi
GenInfo Integrated Database.
const struct ncbi::grid::netcache::search::fields::SIZE size
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...
NOTE: This file contains work in progress and the APIs are likely to change, please do not rely on th...
void x_ValidateResultsForShortProteinSearch(CBlastPrelimSearch &blaster, BlastHSPStream *hsp_stream, CConstRef< CBlastOptions > options)
BOOST_AUTO_TEST_CASE(ShortProteinSearch)
BOOST_AUTO_TEST_SUITE(psiblast_iteration)
Implementation of the BlastSeqSrc interface using the C++ BLAST databases API.
vector< SSeqLoc > TSeqLocVector
Vector of sequence locations.
The structure to hold all HSPs for a given sequence after the gapped alignment.
BlastHitList ** hitlist_array
Array of results for individual query sequences.
Int4 num_queries
Number of query sequences.
Default implementation of BlastHSPStream.
BlastHSPList ** hsplist_array
Array of HSP lists for individual database hits.
Int4 hsplist_count
Filled size of the HSP lists array.
Utility stuff for more convenient using of Boost.Test library.