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

NCBI C++ ToolKit: src/algo/blast/unit_tests/api/remote_blast_unit_test.cpp Source File

55 using namespace ncbi

;

62  const string

& under_valgrind =

env

.Get(

"NCBI_RUN_UNDER_VALGRIND"

);

63  if

( !under_valgrind.empty() ) {

68

}

catch

(

const

exception&) {

70

<< under_valgrind <<

"; treating as false."

);

86  for

(

unsigned i

= 0;

i

< sav.size();

i

++) {

87

total += sav[

i

]->Get().size();

96

pair<string,string> ab;

103 template

<

class

TOBJ>

108

unique_ptr<CObjectOStream>

130  const size_t

kNumQueries(2);

137

query_seqlocs.front().Reset(

new

CSeq_loc);

138

query_seqlocs.front()->SetWhole(*

id

);

143

query_masks.front().push_back(sli);

149

query_seqlocs.back().Reset(

new

CSeq_loc);

150

query_seqlocs.back()->SetWhole(*

id

);

156

query_masks.back().push_back(sli);

160

query_masks.back().push_back(sli);

162  const string

kClientId(

"remote_blast_unit_test.cpp"

);

167

BOOST_REQUIRE_EQUAL(

true

, rmt_blast.

Submit

());

169

BOOST_REQUIRE_EQUAL(

false

, rmt_blast.

GetRID

().empty());

170

BOOST_REQUIRE_EQUAL(kClientId, rmt_blast.

GetClientId

());

172

BOOST_REQUIRE(rmt_blast.

GetErrors

().empty());

174

vector<string> warnings;

177

BOOST_REQUIRE_EQUAL(kNumQueries, network_masks.size());

180

BOOST_REQUIRE_EQUAL((

size_t

)1,

mask

->GetLocations().size());

186

BOOST_REQUIRE_EQUAL((

TSeqPos

) 50,

si

->GetFrom());

187

BOOST_REQUIRE_EQUAL((

TSeqPos

) 100,

si

->GetTo());

189  mask

= network_masks.back();

190

BOOST_REQUIRE_EQUAL((

size_t

)1,

mask

->GetLocations().size());

191

sl =

mask

->GetLocations().front();

196

BOOST_REQUIRE_EQUAL((

TSeqPos

) 200,

si

->GetFrom());

197

BOOST_REQUIRE_EQUAL((

TSeqPos

) 100,

si

->GetTo());

210

query_seqlocs.push_back(sl);

213

BOOST_REQUIRE_EQUAL(

true

, rmt_blaster.

Submit

());

218  const string

rid(

"BTUAFHUA013"

);

221

BOOST_REQUIRE_EQUAL(rid, rmt_blaster.

GetRID

());

222

BOOST_REQUIRE_EQUAL(

true

, rmt_blaster.

CheckDone

());

232

vector<string> warnings;

235

BOOST_REQUIRE(!masks.empty());

236

BOOST_REQUIRE(!network_masks.empty());

237

BOOST_REQUIRE(warnings.empty());

238  const size_t

kNumQueries = 2;

239

BOOST_REQUIRE_EQUAL(kNumQueries, masks.size());

240

BOOST_REQUIRE_EQUAL(kNumQueries, network_masks.size());

243

vector<TSeqRange> expected_masks;

244

expected_masks.push_back(

TSeqRange

(78, 89));

245

BOOST_REQUIRE_EQUAL(expected_masks.size(), masks.front().size());

248

BOOST_REQUIRE(seqlocinfo->NotEmpty());

249

BOOST_REQUIRE_EQUAL(expected_masks[index].GetFrom(),

250

(*seqlocinfo)->GetInterval().GetFrom());

251

BOOST_REQUIRE_EQUAL(expected_masks[index].GetTo(),

252

(*seqlocinfo)->GetInterval().GetTo());

254

(*seqlocinfo)->GetFrame());

259

network_masks.front()->GetFrame());

261

&network_masks.front()->GetLocations();

262

BOOST_REQUIRE_EQUAL((

size_t

)1, net_masks->size());

264

net_masks->front()->GetPacked_int().Get()) {

265

BOOST_REQUIRE_EQUAL(expected_masks[index].GetFrom(),

266

(*seqint)->GetFrom());

267

BOOST_REQUIRE_EQUAL(expected_masks[index].GetTo(),

273

expected_masks.clear();

274

expected_masks.push_back(

TSeqRange

(25, 31));

275

expected_masks.push_back(

TSeqRange

(35, 101));

276

expected_masks.push_back(

TSeqRange

(116, 123));

277

expected_masks.push_back(

TSeqRange

(131, 195));

278

expected_masks.push_back(

TSeqRange

(2022, 2337));

279

BOOST_REQUIRE_EQUAL(expected_masks.size(), masks.back().size());

281

BOOST_REQUIRE(seqlocinfo->NotEmpty());

282

BOOST_REQUIRE_EQUAL(expected_masks[index].GetFrom(),

283

(*seqlocinfo)->GetInterval().GetFrom());

284

BOOST_REQUIRE_EQUAL(expected_masks[index].GetTo(),

285

(*seqlocinfo)->GetInterval().GetTo());

287

(*seqlocinfo)->GetFrame());

293

network_masks.back()->GetFrame());

294

net_masks = &network_masks.back()->GetLocations();

295

BOOST_REQUIRE_EQUAL((

size_t

)1, net_masks->size());

297

net_masks->front()->GetPacked_int().Get()) {

298

BOOST_REQUIRE_EQUAL(expected_masks[index].GetFrom(),

299

(*seqint)->GetFrom());

300

BOOST_REQUIRE_EQUAL(expected_masks[index].GetTo(),

307  const string

rid(

"BD4H4FMN014"

);

310

BOOST_REQUIRE_MESSAGE(rid == rmt_blaster.

GetRID

(),

"RID="

<< rid);

311

BOOST_REQUIRE_MESSAGE(rmt_blaster.

CheckDone

(),

"RID="

<< rid);

319

vector<string> warnings;

322

BOOST_REQUIRE(!masks.empty());

323

BOOST_REQUIRE(!network_masks.empty());

324

BOOST_REQUIRE(warnings.empty());

325  const size_t

kNumQueries = 2;

326

BOOST_REQUIRE_EQUAL(kNumQueries, masks.size());

327

BOOST_REQUIRE_EQUAL(kNumQueries, network_masks.size());

330

vector<TSeqRange> expected_masks;

331

expected_masks.push_back(

TSeqRange

(95, 119));

332

expected_masks.push_back(

TSeqRange

(196, 207));

333

BOOST_REQUIRE_EQUAL(expected_masks.size(), masks.front().size());

336

BOOST_REQUIRE(seqlocinfo->NotEmpty());

337

BOOST_REQUIRE_EQUAL(expected_masks[index].GetFrom(),

338

(*seqlocinfo)->GetInterval().GetFrom());

339

BOOST_REQUIRE_EQUAL(expected_masks[index].GetTo(),

340

(*seqlocinfo)->GetInterval().GetTo());

342

(*seqlocinfo)->GetFrame());

347

network_masks.front()->GetFrame());

349

&network_masks.front()->GetLocations();

350

BOOST_REQUIRE_EQUAL((

size_t

)1, net_masks->size());

352

net_masks->front()->GetPacked_int().Get()) {

353

BOOST_REQUIRE_EQUAL(expected_masks[index].GetFrom(),

354

(*seqint)->GetFrom());

355

BOOST_REQUIRE_EQUAL(expected_masks[index].GetTo(),

361

expected_masks.clear();

362

expected_masks.push_back(

TSeqRange

(91, 103));

363

expected_masks.push_back(

TSeqRange

(270, 289));

364

BOOST_REQUIRE_EQUAL(expected_masks.size(), masks.back().size());

366

BOOST_REQUIRE(seqlocinfo->NotEmpty());

367

BOOST_REQUIRE_EQUAL(expected_masks[index].GetFrom(),

368

(*seqlocinfo)->GetInterval().GetFrom());

369

BOOST_REQUIRE_EQUAL(expected_masks[index].GetTo(),

370

(*seqlocinfo)->GetInterval().GetTo());

372

(*seqlocinfo)->GetFrame());

377

network_masks.back()->GetFrame());

378

net_masks = &network_masks.back()->GetLocations();

379

BOOST_REQUIRE_EQUAL((

size_t

)1, net_masks->size());

381

net_masks->front()->GetPacked_int().Get()) {

382

BOOST_REQUIRE_EQUAL(expected_masks[index].GetFrom(),

383

(*seqint)->GetFrom());

384

BOOST_REQUIRE_EQUAL(expected_masks[index].GetTo(),

392  const string

rid(

"BW41NPVB014"

);

395

BOOST_REQUIRE_EQUAL(rid, rmt_blaster.

GetRID

());

396

BOOST_REQUIRE_EQUAL(

true

, rmt_blaster.

CheckDone

());

404

vector<string> warnings;

407

BOOST_REQUIRE(!masks.empty());

408

BOOST_REQUIRE(!network_masks.empty());

409  const size_t

kNumQueries = 2;

410  const size_t

kNumNetMasks = 7;

411

BOOST_REQUIRE_EQUAL(kNumQueries, masks.size());

412

BOOST_REQUIRE_EQUAL(kNumNetMasks, network_masks.size());

416  typedef

pair<TSeqRange, CSeqLocInfo::ETranslationFrame> TMask;

417  typedef

vector<TMask> TQueryMasks;

418

TQueryMasks expected_masks;

419

expected_masks.push_back(make_pair(

TSeqRange

(114, 155),

421

BOOST_REQUIRE_EQUAL(expected_masks.size(), query1_masks.size());

424

BOOST_REQUIRE(seqlocinfo->NotEmpty());

425  const

TMask&

mask

= expected_masks[index++];

426

BOOST_REQUIRE_EQUAL(

mask

.first.GetFrom(),

427

(*seqlocinfo)->GetInterval().GetFrom());

428

BOOST_REQUIRE_EQUAL(

mask

.first.GetTo(),

429

(*seqlocinfo)->GetInterval().GetTo());

430

BOOST_REQUIRE_EQUAL((

int

)

mask

.second, (*seqlocinfo)->GetFrame());

434

network_masks.front()->GetFrame());

436

&network_masks.front()->GetLocations();

437

BOOST_REQUIRE_EQUAL((

size_t

)1, net_masks->size());

439

net_masks->front()->GetPacked_int().Get()) {

440  const

TMask&

mask

= expected_masks[index++];

441

BOOST_REQUIRE_EQUAL(

mask

.first.GetFrom(),

442

(*seqint)->GetFrom());

443

BOOST_REQUIRE_EQUAL(

mask

.first.GetTo(),

450

expected_masks.clear();

515

BOOST_REQUIRE_EQUAL(expected_masks.size(), query2_masks.size());

517

BOOST_REQUIRE(seqlocinfo->NotEmpty());

518  const

TMask&

mask

= expected_masks[index++];

519

BOOST_REQUIRE_EQUAL(

mask

.first.GetFrom(),

520

(*seqlocinfo)->GetInterval().GetFrom());

521

BOOST_REQUIRE_EQUAL(

mask

.first.GetTo(),

522

(*seqlocinfo)->GetInterval().GetTo());

523

BOOST_REQUIRE_EQUAL((

int

)

mask

.second, (*seqlocinfo)->GetFrame());

533

BOOST_REQUIRE_EQUAL(

string

(

"F"

),

string

(

tmp

.get()));

542

query_seqloc.front().Reset(

new

CSeq_loc);

543

query_seqloc.front()->SetWhole(*

id

);

546

BOOST_REQUIRE_EQUAL(

true

, rmt_blaster.

Submit

());

549

BOOST_REQUIRE(masks.size() == 1);

550

BOOST_REQUIRE(masks.front().empty());

565

BOOST_REQUIRE_THROW(rmt_blaster.

SetQueries

(no_queries),

572  const string

rid(

"TNNF2YHZ016"

);

576

BOOST_REQUIRE_EQUAL(rid, rmt_blaster.

GetRID

());

577

BOOST_REQUIRE_EQUAL(

true

, rmt_blaster.

CheckDone

());

587  const string

rid(

"5VPB2NH1014"

);

590

BOOST_REQUIRE_EQUAL(rid, rmt_blaster.

GetRID

());

591

BOOST_REQUIRE_EQUAL(

true

, rmt_blaster.

CheckDone

());

602  const string

rid(

"HU0G064A013"

);

609

BOOST_REQUIRE_EQUAL(rid, rmt_blaster.

GetRID

());

610

BOOST_REQUIRE_EQUAL(

true

, rmt_blaster.

CheckDone

());

613  const string error

(

"CPU usage limit was exceeded"

);

614

BOOST_REQUIRE(rmt_blaster.

GetErrors

().empty() ==

false

);

624  const string

non_existent_rid(

"1068741992-11111-263425.BLASTQ3"

);

628

BOOST_REQUIRE_EQUAL(non_existent_rid, rmt_blaster.

GetRID

());

630

BOOST_REQUIRE_EQUAL(

false

, rmt_blaster.

CheckDone

());

640  const string

rid(

"HTXY8N45013"

);

644

BOOST_REQUIRE_EQUAL(rid, rmt_blaster.

GetRID

());

645

BOOST_REQUIRE_EQUAL(

true

, rmt_blaster.

CheckDone

());

647  "CPU usage limit was exceeded, resulting in SIGXCPU"

) !=

NPOS

,

655  const string

rid(

"HTSZX47V013"

);

659

BOOST_REQUIRE_EQUAL(rid, rmt_blaster.

GetRID

());

660

BOOST_REQUIRE_EQUAL(

true

, rmt_blaster.

CheckDone

());

663  "Error: CPU usage limit was exceeded"

) !=

NPOS

,

687

BOOST_REQUIRE(!

strcmp

(

"Error: GetWordSize() not available."

,

688

exptn.

GetMsg

().c_str()));

698  typedef

ncbi::objects::CBlast4_parameters TBlast4Opts;

702

blast4_opts->GetParamByName(

"WordSize"

)->GetValue().GetInteger());

703

BOOST_REQUIRE_EQUAL(18,

704

blast4_opts->GetParamByName(

"MBTemplateLength"

)->GetValue().GetInteger());

705

BOOST_REQUIRE_EQUAL(0,

706

blast4_opts->GetParamByName(

"MBTemplateType"

)->GetValue().GetInteger());

708

blast4_opts->GetParamByName(

"WindowSize"

)->GetValue().GetInteger());

724  string

rid(

"1112991234-9646-26841459756.BLASTQ3"

);

729

BOOST_REQUIRE_EQUAL(3, (

int

)sav.size());

732  for

(

int i

= 0;

i

< (

int

)sav.size();

i

++) {

734

sav[

i

]->Get().front()->GetSeq_id(0).GetLabel(& L);

738

BOOST_REQUIRE_EQUAL(

string

(

"gi|129295"

), ids[0]);

739

BOOST_REQUIRE_EQUAL(

string

(

"gi|129296"

), ids[1]);

740

BOOST_REQUIRE_EQUAL(

string

(

"gi|129297"

), ids[2]);

747  string

rid(

"BWX50RMX016"

);

753

BOOST_REQUIRE_EQUAL(3, (

int

)sav.size());

756  for

(

int i

= 0;

i

< (

int

)sav.size();

i

++) {

758

sav[

i

]->Get().front()->GetSeq_id(0).GetLabel(& L);

762

BOOST_REQUIRE_EQUAL(

string

(

"gi|104501"

), ids[0]);

763

BOOST_REQUIRE_EQUAL(

string

(

"gi|129295"

), ids[1]);

764

BOOST_REQUIRE_EQUAL(

string

(

"lcl|47622"

), ids[2]);

769  string

rid(

"1138040498-4204-115424753375.BLASTQ4"

);

773  string

db_name =

"nr"

;

777

BOOST_REQUIRE_EQUAL(dbs->

GetName

(), db_name);

780

BOOST_REQUIRE_EQUAL(rb.

GetProgram

(),

string

(

"blastn"

));

781

BOOST_REQUIRE_EQUAL(rb.

GetService

(),

string

(

"megablast"

));

782

BOOST_REQUIRE_EQUAL(rb.

GetCreatedBy

(),

string

(

"newblast"

));

800  string

rid(

"BWY0XPAV014"

);

819

db_name =

"nucl_dbs"

;

822

db_name =

"prot_dbs"

;

834

getseq_queries.push_back(seqid);

838  string

warnings, errors;

848

BOOST_REQUIRE(

results

.size());

849

BOOST_REQUIRE(

results

[0].NotEmpty());

850

BOOST_REQUIRE(

results

[0]->CanGetInst());

852  int

length =

results

[0]->GetInst().GetLength();

853

BOOST_REQUIRE_EQUAL(length, 1863);

862  const int

kGi(129295);

865

getseq_queries.push_back(seqid);

867  string

warnings, errors;

876

BOOST_REQUIRE(

results

.empty());

877

BOOST_REQUIRE( !errors.empty() );

878

BOOST_REQUIRE( errors.find(

"Failed to fetch sequence"

) !=

NPOS

);

880

BOOST_REQUIRE(warnings.empty());

888  string

rid(

"5VPRD45W015"

);

900

BOOST_REQUIRE_EQUAL(

string

(

"L;R -d repeat/repeat_9606;m;"

),

901  string

(

tmp

.get()));

911  string

rid(

"BD4HUK3X014"

);

923

BOOST_REQUIRE_EQUAL(

string

(

"L;"

),

string

(

tmp

.get()));

932

vector< pair<string,string> > rids;

934  x_PushPairVec

(rids,

"1126029035-8294-165438177459.BLASTQ3"

,

"blastp/plain"

);

935  x_PushPairVec

(rids,

"1125682249-11093-192188840277.BLASTQ3"

,

"blastn/plain"

);

936  x_PushPairVec

(rids,

"1125679472-29663-68767107779.BLASTQ3"

,

"tblastn/plain"

);

937  x_PushPairVec

(rids,

"1125682851-24545-80609495337.BLASTQ3"

,

"tblastx/plain"

);

938  x_PushPairVec

(rids,

"1125682308-9604-184897235466.BLASTQ3"

,

"blastx/plain"

);

941  for

(

size_t i

= 0;

i

< rids.size();

i

++) {

948

BOOST_REQUIRE_EQUAL(ps, rids[

i

].second);

955  string

has_hits =

"1154969303-04718-55159010680.BLASTQ4"

;

956  string

no_hits =

"1154969303-04728-192386478174.BLASTQ4"

;

964

BOOST_REQUIRE_EQUAL(102,

x_CountHits

(

"BD4HYZYB014"

));

965

BOOST_REQUIRE_EQUAL(102,

x_CountHits

(

"15ASW73R015"

));

966

BOOST_REQUIRE_EQUAL(102,

x_CountHits

(

"15AU5834013"

));

967

BOOST_REQUIRE_EQUAL(102,

x_CountHits

(

"BD4ENAS7014"

));

981

ncbi::objects::CBlast4_parameters * L =

982

oh->SetOptions().GetBlast4AlgoOpts();

983  typedef

ncbi::objects::CBlast4_parameter TParam;

984  typedef

list< CRef<TParam> > TParamList;

989  ITERATE

(TParamList, iter, L->Set()) {

990  const

TParam & p = **iter;

992  if

(p.GetName() ==

"WordSize"

) {

993

BOOST_REQUIRE(p.CanGetValue());

994

BOOST_REQUIRE(p.GetValue().IsInteger());

997  value

= p.GetValue().GetInteger();

1001

BOOST_REQUIRE_EQUAL(1,

count

);

1002

BOOST_REQUIRE_EQUAL(14,

value

);

1012  const string

kDbName(

"nt"

);

1023  bool

found_query_range =

false

;

1030

vector<string> param_names;

1037  ITERATE

(vector<string>, pname, param_names) {

1040

found_query_range =

true

;

1045

BOOST_REQUIRE(found_query_range ==

false

);

1050  ITERATE

(vector<string>, pname, param_names) {

1053

found_query_range =

true

;

1058

BOOST_REQUIRE(found_query_range ==

false

);

1074  const string

kDbName(

"nt"

);

1085  bool

found_query_range =

false

;

1092

vector<string> param_names;

1099  ITERATE

(vector<string>, pname, param_names) {

1102

BOOST_REQUIRE(p->CanGetValue());

1103

found_query_range =

true

;

1105

BOOST_REQUIRE_EQUAL((

int

)query_range.

GetFrom

(),

1106

(

int

)p->GetValue().GetInteger());

1109

BOOST_REQUIRE_EQUAL((

int

)query_range.

GetTo

(),

1110

(

int

)p->GetValue().GetInteger());

1115

BOOST_REQUIRE(found_query_range ==

true

);

1117

found_query_range =

false

;

1121  ITERATE

(vector<string>, pname, param_names) {

1124

found_query_range =

true

;

1129

BOOST_REQUIRE(found_query_range ==

false

);

1141

ifstream

in

(

"data/seq_entry_lcl_id.asn"

);

1151  const string

kDbName(

"nt"

);

1168

BOOST_REQUIRE_EQUAL(query_loc.size(), b4_queries.

GetNumQueries

());

1170

BOOST_REQUIRE( !b4_queries.

IsPssm

() );

1183  typedef

pair<int, int> TGiLength;

1184

vector<TGiLength> gis;

1185

gis.push_back(TGiLength(555, 624));

1186

gis.push_back(TGiLength(556, 310));

1187

ifstream

in

(

"data/seq_entry_gis.asn"

);

1190  ITERATE

(vector<TGiLength>, gi, gis) {

1196

query_loc.push_back(

SSeqLoc

(sl, scope));

1201  const string

kDbName(

"nt"

);

1218

BOOST_REQUIRE_EQUAL(query_loc.size(), b4_queries.

GetNumQueries

());

1220

BOOST_REQUIRE( !b4_queries.

IsPssm

() );

1230  const char

* fname =

"data/ss.asn"

;

1231

ifstream

in

(fname);

1232

BOOST_REQUIRE(

in

);

1234

BOOST_REQUIRE(search_strategy.

NotEmpty

());

1243  const char

* fname =

"data/ss.xml"

;

1244

ifstream

in

(fname);

1245

BOOST_REQUIRE(

in

);

1247

BOOST_REQUIRE(search_strategy.

NotEmpty

());

1256  const char

* fname =

"data/seq_entry_gis.asn"

;

1257

ifstream

in

(fname);

1258

BOOST_REQUIRE(

in

);

1266  const char

* fname =

"data/archive.asn"

;

1267

ifstream

in

(fname);

1270

BOOST_REQUIRE(rb.

GetProgram

() ==

"blastn"

);

1271

BOOST_REQUIRE(rb.

GetService

() ==

"megablast"

);

1274

BOOST_REQUIRE(blast_db->

GetName

() ==

"refseq_rna"

);

1284  const char

* fname =

"data/selenocysteines.fsa"

;

1285

ifstream

in

(fname);

1292  const char

* fname =

"data/archive.bl2seq.asn"

;

1293

ifstream

in

(fname);

1296

BOOST_REQUIRE(rb.

GetProgram

() ==

"blastn"

);

1297

BOOST_REQUIRE(rb.

GetService

() ==

"megablast"

);

1303  const char

* fname =

"data/archive.multiple_queries.asn"

;

1304

ifstream

in

(fname);

1307

BOOST_REQUIRE(rb.

GetProgram

() ==

"blastn"

);

1308

BOOST_REQUIRE(rb.

GetService

() ==

"plain"

);

1311

BOOST_REQUIRE(blast_db->

GetName

() ==

"nt"

);

Interface for reading SRA sequences into blast input.

Auxiliary classes/functions for BLAST input library.

Declares the CBlastNucleotideOptionsHandle class.

#define BLAST_WINDOW_SIZE_DISC

default window size (discontiguous megablast)

Declares class to encapsulate all BLAST options.

EBlastProgramType

Defines the engine's notion of the different applications of the BLAST algorithm.

Declares the CBlastRPSOptionsHandle class.

Declares the CBlastServices class.

vector< CRef< objects::CSeq_align_set > > TSeqAlignVector

Vector of Seq-align-sets.

@ eBlastn

Nucl-Nucl (traditional blastn)

BOOST_AUTO_TEST_SUITE_END() static int s_GetSegmentFlags(const CBioseq &bioseq)

ncbi::TMaskedQueryRegions mask

const CSeq_id * GetFirstId() const

Field properties for options in a Blast4 parameter list.

static const string & GetName(EBlastOptIdx opt)

const string & GetName() const

Get field name (key).

static CBlast4Field & Get(EBlastOptIdx opt)

CRef< CBlast4_parameter > GetParamByName(const string name) const

Returns Blast4_parameter with specified name.

size_t GetNumQueries() const

Retrieve the number of queries in this object.

CBlast4_queue_search_request –.

CBlast4_request_body –.

Defines BLAST error codes (user errors included)

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

Encapsulates ALL the BLAST algorithm's options.

@ eRemote

To be used when running BLAST remotely.

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

Handle to the rpsblast options to the BLAST algorithm.

CDiagLevelGuard(EDiagSev target)

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

CNcbiOstrstreamToString class helps convert CNcbiOstrstream to a string Sample usage:

NCBI C++ Object Manager dependant implementation of IQueryFactory.

API for Remote Blast Requests.

structure for seqloc info

Root class for all serialization exceptions.

static CTestObjMgr & Instance()

Collection of masked regions for a single query sequence.

static const char si[8][64]

Declares the CDiscNucleotideOptionsHandle class.

static DLIST_TYPE *DLIST_NAME() first(DLIST_LIST_TYPE *list)

bool LoadFromArchive()

Loads next chunk of archive from file.

CRef< CBlastOptionsHandle > GetSearchOptions()

Get the search options used for this search.

Int8 GetEffectiveSearchSpace() const

Returns EffectiveSearchSpace.

string GetErrors(void)

This returns a string containing any errors that were produced by the search.

void SetDbLength(Int8 len)

Sets DbLength.

TSeqAlignVector GetSeqAlignSets()

Get the seqalign vector from the results.

int GetWordSize() const

Returns WordSize.

ESearchStatus CheckStatus()

Returns the status of a previously submitted search/RID.

Int8 GetDbLength() const

Returns DbLength.

const string & GetRID(void)

Gets the request id (RID) associated with the search.

void SetDatabase(const string &x)

Set the name of the database to search against.

static objects::CBlast4_get_search_results_reply::TMasks ConvertToRemoteMasks(const TSeqLocInfoVector &masking_locations, EBlastProgramType program, vector< string > *warnings=NULL)

Convert a TSeqLocInfoVector to a list< CRef<CBlast4_mask> > objects.

static void GetSequences(TSeqIdVector &seqids, const string &database, char seqtype, TBioseqVector &bioseqs, string &errors, string &warnings, bool verbose=false, bool target_only=false)

Get a set of Bioseqs given an input set of Seq-ids.

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.

void SetClientId(const string &client_id)

Sets the client ID used by this object to send requests.

CRef< objects::CBlast4_queries > GetQueries()

Get the queries used for this search.

bool GetGappedMode() const

Returns GappedMode.

size_type GetNumQueries() const

Return the number of unique query ID's represented by this object.

double GetPercentIdentity() const

Returns PercentIdentity.

void SetQueries(CRef< objects::CBioseq_set > bioseqs)

Set the query as a Bioseq_set.

vector< CRef< objects::CBioseq > > TBioseqVector

Defines a std::vector of CRef<CBioseq>

CRef< objects::CBlast4_request > ExtractBlast4Request(CNcbiIstream &in)

Extract a Blast4-request (a.k.a.

CRef< objects::CSeq_align_set > GetAlignments(void)

Get the seqalign set from the results.

bool Submit(void)

This submits the search (if necessary) and returns immediately.

TSeqLocInfoVector GetMasks(void)

Get the queries' masked locations.

CRef< objects::CBlast4_database > GetDatabases()

Get the database used by the search.

vector< CRef< objects::CSeq_id > > TSeqIdVector

Defines a std::vector of CRef<CSeq_id>

void SetWordSize(int ws)

Sets WordSize.

CRef< objects::CBlast4_request > GetSearchStrategy()

Fetch the search strategy for this object without submitting the search.

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 GetDbFilteringAlgorithmKey() const

Returns the filtering algorithm key used in the database.

CRef< CSearchResultSet > GetResultSet()

Submit the search (if necessary) and return the results.

void SetFilterString(const char *f, bool clear=true)

Sets FilterString.

const char * GetRepeatFilteringDB() const

Get the repeat filtering database.

void SetWordSize(int ws)

Sets WordSize.

string GetService()

Get the service used for this search.

bool CheckDone(void)

Check whether the search has completed.

list< CRef< objects::CSeq_loc > > TSeqLocList

Typedef for a list of Seq-locs.

string GetCreatedBy()

Get the created-by string associated with this search.

string GetWarnings(void)

This returns any warnings encountered.

int GetWindowSize() const

Returns WindowSize.

int GetHitlistSize() const

Returns HitlistSize.

void SetSegFiltering(bool val)

Enable SEG filtering.

Int4 GetDbFilteringAlgorithmId() const

Returns the filtering algorithm ID used in the database.

TBlast4Opts * GetBlast4AlgoOpts()

string GetClientId() const

Retrieves the client ID used by this object to send requests.

char * GetFilterString() const

Returns FilterString.

size_type GetNumResults() const

Return the number of results contained by this object.

string GetProgram()

Get the program used for this search.

double GetEvalueThreshold() const

Returns EvalueThreshold.

@ eStatus_Failed

Completed but failed, call GetErrors/GetErrorVector()

@ eStatus_Pending

Not completed yet.

@ eStatus_Unknown

Never submitted or purged from the system.

@ eStatus_Done

Completed successfully.

@ eBlastDbIsNucleotide

nucleotide

unsigned int TSeqPos

Type for sequence locations and lengths.

#define ITERATE(Type, Var, Cont)

ITERATE macro to sequence through container elements.

EDiagSev SetDiagPostLevel(EDiagSev post_sev=eDiag_Error)

Set the threshold severity for posting the messages.

#define ERR_POST(message)

Error posting with file, line number information but without error codes.

EDiagSev

Severity level for the posted diagnostics.

@ eDiag_Error

Error message.

const string & GetMsg(void) const

Get message string.

void Warning(CExceptionArgs_Base &args)

#define MSerial_AsnText

I/O stream manipulators –.

@ eSerial_AsnText

ASN.1 text.

static CObjectOStream * Open(ESerialDataFormat format, CNcbiOstream &outStream, bool deleteOutStream)

Create serial object writer and attach it to an output stream.

static CRef< CObjectManager > GetInstance(void)

Return the existing object manager or create one.

CSeq_entry_Handle AddTopLevelSeqEntry(CSeq_entry &top_entry, TPriority pri=kPriority_Default, EExist action=eExist_Default)

Add seq_entry, default priority is higher than for defaults or loaders Add object to the score with p...

TObjectType * GetPointer(void) THROWS_NONE

Get pointer,.

void Reset(void)

Reset reference object.

bool NotEmpty(void) const THROWS_NONE

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

int64_t Int8

8-byte (64-bit) signed integer

CRange< TSeqPos > TSeqRange

typedefs for sequence ranges

static bool StringToBool(const CTempString str)

Convert string to bool.

static SIZE_TYPE FindNoCase(const CTempString str, const CTempString pattern, SIZE_TYPE start, SIZE_TYPE end, EOccurrence which=eFirst)

Find the pattern in the specified range of a string using a case insensitive search.

static string IntToString(int value, TNumToStringFlags flags=0, int base=10)

Convert int to string.

static SIZE_TYPE Find(const CTempString str, const CTempString pattern, ECase use_case=eCase, EDirection direction=eForwardSearch, SIZE_TYPE occurrence=0)

Find the pattern in the string.

#define NCBITEST_DISABLE(test_name)

Unconditionally disable test case.

const TSubject & GetSubject(void) const

Get the Subject member data.

bool IsSeq_loc_list(void) const

Check if variant Seq_loc_list is selected.

const TService & GetService(void) const

Get the Service member data.

const TDatabase & GetDatabase(void) const

Get the variant data.

TType GetType(void) const

Get the Type member data.

E_Choice Which(void) const

Which variant is currently selected.

const TName & GetName(void) const

Get the Name member data.

bool IsPssm(void) const

Check if variant Pssm is selected.

bool CanGetQueries(void) const

Check if it is safe to call GetQueries method.

bool IsQueue_search(void) const

Check if variant Queue_search is selected.

TSeq_loc_list & SetSeq_loc_list(void)

Select the variant.

const TQueue_search & GetQueue_search(void) const

Get the variant data.

list< CRef< CSeq_loc > > TLocations

bool CanGetSubject(void) const

Check if it is safe to call GetSubject method.

bool IsBioseq_set(void) const

Check if variant Bioseq_set is selected.

bool CanGetProgram_options(void) const

Check if it is safe to call GetProgram_options method.

const TProgram_options & GetProgram_options(void) const

Get the Program_options member data.

const TQueries & GetQueries(void) const

Get the Queries member data.

list< CRef< CBlast4_mask > > TMasks

const TAlgorithm_options & GetAlgorithm_options(void) const

Get the Algorithm_options member data.

const TBody & GetBody(void) const

Get the Body member data.

const TProgram & GetProgram(void) const

Get the Program member data.

bool CanGetAlgorithm_options(void) const

Check if it is safe to call GetAlgorithm_options method.

@ eBlast4_frame_type_plus1

@ eBlast4_frame_type_notset

@ eBlast4_frame_type_minus1

@ eBlast4_residue_type_nucleotide

TTo GetTo(void) const

Get the To member data.

TFrom GetFrom(void) const

Get the From member data.

list< CRef< CSeq_interval > > Tdata

const Tdata & Get(void) const

Get the member data.

bool IsPacked_int(void) const

Check if variant Packed_int is selected.

const TPacked_int & GetPacked_int(void) const

Get the variant data.

@ e_Gi

GenInfo Integrated Database.

const TSeq & GetSeq(void) const

Get the variant data.

unsigned int

A callback function used to compare two keys in a database.

@ eBlastOpt_QueryCovHspPerc

@ eBlastOpt_Web_ExclModels

@ eBlastOpt_RequiredStart

Magic spell ;-) needed for some weird compilers... very empiric.

const GenericPointer< typename T::ValueType > T2 value

int strcmp(const char *str1, const char *str2)

static const char * kWordSize

std::istream & in(std::istream &in_, double &x_)

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

BOOST_AUTO_TEST_SUITE(psiblast_iteration)

Declares the CRemoteBlast class.

BOOST_AUTO_TEST_CASE(MaskedQueryRegions)

static int x_CountHits(const string &rid)

static void x_PushPairVec(vector< pair< string, string > > &rids, string a, string b)

BOOST_AUTO_TEST_CASE_TIMEOUT(CheckPrimerBlastRID, 45)

string x_Stringify(TOBJ &obj)

vector< TMaskedQueryRegions > TSeqLocInfoVector

Collection of masked regions for all queries in a BLAST search.

vector< SSeqLoc > TSeqLocVector

Vector of sequence locations.

Structure to represent a single sequence to be fed to BLAST.

Utility stuff for more convenient using of Boost.Test library.

static const char * kUnknown

int g(Seg_Gsm *spe, Seq_Mtf *psm, Thd_Gsm *tdg)


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