;
58BOOST_REQUIRE_EQUAL((
Int4)24,
63BOOST_REQUIRE(hsp_list);
64BOOST_REQUIRE_EQUAL((
Int4)0, hsp_list[0].oid);
65BOOST_REQUIRE_EQUAL((
Int4)1, hsp_list[0].hspcnt);
66BOOST_REQUIRE(hsp_list[0].hsp_array[0]);
67BOOST_REQUIRE_EQUAL((
Int4)103, hsp_list[0].hsp_array[0]->score);
68BOOST_REQUIRE_EQUAL((
Int4)0, hsp_list[0].hsp_array[0]->
query.offset);
69BOOST_REQUIRE_EQUAL((
Int4)21, hsp_list[0].hsp_array[0]->
query.end);
70BOOST_REQUIRE_EQUAL((
Int4)0,
71hsp_list[0].hsp_array[0]->
subject.offset);
72BOOST_REQUIRE_EQUAL((
Int4)21,
73hsp_list[0].hsp_array[0]->
query.end);
99BOOST_REQUIRE(
results.GetPointer() != 0);
101BOOST_REQUIRE(
results->m_HspStream != 0);
102BOOST_REQUIRE(
results->m_Diagnostics != 0);
105(prelim_search,
results->m_HspStream->GetPointer(), options);
129BOOST_REQUIRE(
results.GetPointer() != 0);
131BOOST_REQUIRE(
results->m_HspStream != 0);
132BOOST_REQUIRE(
results->m_Diagnostics != 0);
135(prelim_search,
results->m_HspStream->GetPointer(), options);
146q_tsl.push_back(*q_ssl);
164BOOST_REQUIRE(
results.GetPointer() != 0);
165BOOST_REQUIRE(
results->m_HspStream != 0);
166BOOST_REQUIRE(
results->m_Diagnostics != 0);
175q_tsl.push_back(*q_ssl);
188std::vector<std::list<CRef<CStd_seg> > >
l;
189prelim_search.
Run(
l);
191BOOST_REQUIRE(
l.size() == 1);
192BOOST_REQUIRE(
l[0].
size() >= 1);
194BOOST_REQUIRE(seg->GetSeqStart(0) == 0);
195BOOST_REQUIRE(seg->GetSeqStop(0) == 506);
196BOOST_REQUIRE(seg->GetSeqStart(1) == 54);
197BOOST_REQUIRE(seg->GetSeqStop(1) == 560);
198 constvector<CRef<CSeq_id> > &
id= seg->GetIds();
200 constvector<CRef<CSeq_loc> > & loc = seg->GetLoc();
212q_tsl.push_back(*q_ssl);
225std::vector<std::list<CRef<CStd_seg> > >
l;
226prelim_search.
Run(
l);
228BOOST_REQUIRE(
l.size() == 1);
229BOOST_REQUIRE(
l[0].
size() > 1);
231BOOST_REQUIRE(seg->GetSeqStart(0) == 0);
232BOOST_REQUIRE(seg->GetSeqStop(0) == 506);
233BOOST_REQUIRE(seg->GetSeqStart(1) == 54);
234BOOST_REQUIRE(seg->GetSeqStop(1) == 560);
235 constvector<CRef<CSeq_id> > &
id= seg->GetIds();
237 constvector<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)
BOOST_AUTO_TEST_SUITE_END() static int s_GetSegmentFlags(const CBioseq &bioseq)
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
void SetSegFiltering(bool val=true)
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...
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.
static SLJIT_INLINE sljit_ins l(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)
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.
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