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

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

45 #ifndef SKIP_DOXYGEN_PROCESSING 58

BOOST_CHECK(doc !=

"Unknown task"

);

99  const int

kThresholdSentinel = -33;

101

threshold = kThresholdSentinel;

103

BOOST_CHECK_EQUAL(0, (

int

) status);

104

BOOST_CHECK_EQUAL(kThresholdSentinel, (

int

) threshold);

110

BOOST_CHECK_EQUAL(0, (

int

) status);

111

BOOST_CHECK_EQUAL(11, (

int

) threshold);

114

BOOST_CHECK_EQUAL(0, (

int

) status);

115

BOOST_CHECK_EQUAL(12, (

int

) threshold);

118

BOOST_CHECK_EQUAL(0, (

int

) status);

119

BOOST_CHECK_EQUAL(13, (

int

) threshold);

122

BOOST_CHECK_EQUAL(0, (

int

) status);

123

BOOST_CHECK_EQUAL(13, (

int

) threshold);

126

BOOST_CHECK_EQUAL(0, (

int

) status);

127

BOOST_CHECK_EQUAL(16, (

int

) threshold);

130

BOOST_CHECK_EQUAL(0, (

int

) status);

131

BOOST_CHECK_EQUAL(11, (

int

) threshold);

140

BOOST_CHECK_EQUAL(0, (

int

) status);

146

BOOST_CHECK_EQUAL(0, (

int

) status);

150

BOOST_CHECK_EQUAL(0, (

int

) status);

154

BOOST_CHECK_EQUAL(0, (

int

) status);

158

BOOST_CHECK_EQUAL(0, (

int

) status);

165  Int4

existence=0, extension=0;

168

BOOST_CHECK_EQUAL(-1, (

int

) status);

171

BOOST_CHECK_EQUAL(0, (

int

) status);

172

BOOST_CHECK_EQUAL(11, existence);

173

BOOST_CHECK_EQUAL(1, extension);

176

BOOST_CHECK_EQUAL(0, (

int

) status);

177

BOOST_CHECK_EQUAL(10, existence);

178

BOOST_CHECK_EQUAL(1, extension);

181

BOOST_CHECK_EQUAL(0, (

int

) status);

182

BOOST_CHECK_EQUAL(15, existence);

183

BOOST_CHECK_EQUAL(2, extension);

189  int

existence=-1, extension=-1;

190  int

reward=0, penalty=0;

195

BOOST_CHECK_EQUAL(-1, (

int

) status);

203

BOOST_CHECK_EQUAL(0, (

int

) status);

204

BOOST_CHECK_EQUAL(0, existence);

205

BOOST_CHECK_EQUAL(0, extension);

212

BOOST_CHECK_EQUAL(0, (

int

) status);

213

BOOST_CHECK_EQUAL(2, existence);

214

BOOST_CHECK_EQUAL(2, extension);

221

BOOST_CHECK_EQUAL(0, (

int

) status);

222

BOOST_CHECK_EQUAL(4, existence);

223

BOOST_CHECK_EQUAL(4, extension);

230

BOOST_CHECK_EQUAL(0, (

int

) status);

231

BOOST_CHECK_EQUAL(2, existence);

232

BOOST_CHECK_EQUAL(2, extension);

240

BOOST_CHECK_EQUAL(0, (

int

) status);

241

BOOST_CHECK(filter_options);

245

BOOST_REQUIRE(filter_options ==

NULL

);

253

BOOST_CHECK_EQUAL(0, (

int

) status);

254

BOOST_CHECK(filter_options);

258

BOOST_REQUIRE(filter_options ==

NULL

);

264

BOOST_CHECK_EQUAL(1, (

int

) status);

286

i <= query_info->last_context;

i

++) {

313

lookup_wrap, sbp, query_info, subject_length, &word_params);

316

BOOST_REQUIRE(blast_seq_loc ==

NULL

);

318

BOOST_REQUIRE(lookup_wrap ==

NULL

);

320

BOOST_REQUIRE(lookup_options ==

NULL

);

322

BOOST_REQUIRE(query_options ==

NULL

);

330  const Int4

kAvgSubjectLength = 335;

331  const Int4

kSpecificSubjectLength = 186;

332  const Int8

kDbLength = 703698559;

334

unique_ptr<SSeqLoc> qsl(

337

unique_ptr<SSeqLoc> ssl(

351  prog

, strand_opt, &query_info);

353

query_info, &query_blk,

prog

, strand_opt, blast_msg);

355

BOOST_CHECK(m->empty());

361  "BLOSUM62"

, -1, -1);

367

kBlastProgram, &sbp, 1.0, &blast_message,

389

query_info, sbp, word_options, kAvgSubjectLength, hit_params);

392

link_hsp_params, word_params,

393

kDbLength, kSpecificSubjectLength);

399

BOOST_REQUIRE(sbp ==

NULL

);

401

BOOST_REQUIRE(ext_options ==

NULL

);

403

BOOST_REQUIRE(scoring_options ==

NULL

);

405

BOOST_REQUIRE(hit_params ==

NULL

);

407

BOOST_REQUIRE(hit_options ==

NULL

);

409

BOOST_REQUIRE(word_params ==

NULL

);

411

BOOST_REQUIRE(word_options ==

NULL

);

418

BOOST_REQUIRE(query_info);

426

kbp_bad->

logK

= -1.0;

428

sbp->

kbp

[0] = kbp_bad;

434

kbp_good->

logK

= 0.1;

436

sbp->

kbp

[1] = kbp_good;

445  const Int4

kAvgSubjectLength = 335;

446  const Int4

kSpecificSubjectLength = 186;

447  const Int8

kDbLength = 703698559;

448  const bool

kIsGapped =

true

;

479

link_hsp_params, &word_params,

480

kDbLength, kSpecificSubjectLength);

486

BOOST_REQUIRE(sbp ==

NULL

);

488

BOOST_REQUIRE(ext_options ==

NULL

);

490

BOOST_REQUIRE(hit_params ==

NULL

);

492

BOOST_REQUIRE(hit_options ==

NULL

);

499  const Int4

kAvgSubjectLength = 316;

500  const Int4

kSpecificSubjectLength = 21;

501  const Int8

kDbLength = 1358990;

503

unique_ptr<SSeqLoc> qsl(

506

unique_ptr<SSeqLoc> ssl(

520  prog

, strand_opt, &query_info);

522

query_info, &query_blk,

prog

, strand_opt, blast_msg);

524

BOOST_CHECK(m->empty());

530  "BLOSUM62"

, -1, -1);

536

kBlastProgram, &sbp, 1.0, &blast_message,

557

query_info, sbp, word_options, kAvgSubjectLength, hit_params);

561

link_hsp_params, word_params,

562

kDbLength, kSpecificSubjectLength);

568

BOOST_REQUIRE(sbp ==

NULL

);

570

BOOST_REQUIRE(ext_options ==

NULL

);

572

BOOST_REQUIRE(scoring_options ==

NULL

);

574

BOOST_REQUIRE(hit_params ==

NULL

);

576

BOOST_REQUIRE(hit_options ==

NULL

);

578

BOOST_REQUIRE(word_params ==

NULL

);

580

BOOST_REQUIRE(word_options ==

NULL

);

587  const Int4

kAvgSubjectLength = 335;

588  const Int4

kSpecificSubjectLength = 186;

589  const Int8

kDbLength = 703698559;

591

unique_ptr<SSeqLoc> qsl(

594

unique_ptr<SSeqLoc> ssl(

608  prog

, strand_opt, &query_info);

610

query_info, &query_blk,

prog

, strand_opt, blast_msg);

612

BOOST_CHECK(m->empty());

618  "BLOSUM62"

, -1, -1);

624

kBlastProgram, &sbp, 1.0, &blast_message,

646

query_info, sbp, word_options, kAvgSubjectLength, hit_params);

654

link_hsp_params, word_params,

655

kDbLength, kSpecificSubjectLength);

657

BOOST_CHECK_EQUAL(5, (

int

) (10*link_hsp_params->

gap_prob

));

662

BOOST_REQUIRE(query_blk ==

NULL

);

664

BOOST_REQUIRE(sbp ==

NULL

);

666

BOOST_REQUIRE(scoring_options ==

NULL

);

668

BOOST_REQUIRE(ext_options ==

NULL

);

670

BOOST_REQUIRE(hit_params ==

NULL

);

672

BOOST_REQUIRE(hit_options ==

NULL

);

674

BOOST_REQUIRE(word_params ==

NULL

);

676

BOOST_REQUIRE(word_options ==

NULL

);

684  const int

k_threshold = 0;

685  const int

k_word_size = 100000;

692

k_is_megablast, k_threshold, k_word_size);

694

BOOST_CHECK_EQUAL(k_word_size, (

int

) lookup_options->

word_size

);

704

BOOST_REQUIRE(num > good_one);

706  for

(index=0; index<num; index++)

710  if

(index != good_one)

727

kbp_array[index] = kbp;

735  const int

k_num_contexts=6;

757

query_info, &ext_params);

766  for

(

int

index=query_info->

first_context

; index<=query_info->last_context; index++)

774

BOOST_REQUIRE(ext_params ==

NULL

);

776

BOOST_REQUIRE(ext_options ==

NULL

);

782  for

(

Int4

index=0; index<num; index++)

791

kbp_array[index] = kbp;

799  const int

k_num_contexts=6;

819

query_info, &ext_params);

826

BOOST_REQUIRE(ext_params ==

NULL

);

832

query_info, &ext_params);

838  for

(

int

index=query_info->

first_context

; index<=query_info->last_context; index++)

846

BOOST_REQUIRE(ext_params ==

NULL

);

848

BOOST_REQUIRE(ext_options ==

NULL

);

855

unique_ptr<SSeqLoc> qsl1(

858

unique_ptr<SSeqLoc> qsl2(

861

unique_ptr<SSeqLoc> qsl3(

866

query_v.push_back(*qsl1);

867

query_v.push_back(*qsl2);

868

query_v.push_back(*qsl3);

881  prog

, strand_opt, blast_msg);

883

BOOST_CHECK(m->empty());

889  "BLOSUM62"

, -1, -1);

894

kBlastProgram, &sbp, 1.0, &blast_message,

923

BOOST_REQUIRE(scoring_options ==

NULL

);

925

BOOST_REQUIRE(hit_params ==

NULL

);

927

BOOST_REQUIRE(hit_options ==

NULL

);

929

BOOST_REQUIRE(ext_options ==

NULL

);

931

BOOST_REQUIRE(sbp ==

NULL

);

941

unique_ptr<SSeqLoc> qsl1(

945

query_v.push_back(*qsl1);

958  prog

, strand_opt, blast_msg);

960

BOOST_CHECK(m->empty());

967  "BLOSUM62"

, -1, -1);

972

kBlastProgram, &sbp, 1.0, &blast_message,

985  const int

k_avg_subject_length=128199245;

993

BOOST_REQUIRE(scoring_options ==

NULL

);

995

BOOST_REQUIRE(hit_params ==

NULL

);

997

BOOST_REQUIRE(hit_options ==

NULL

);

999

BOOST_REQUIRE(ext_options ==

NULL

);

1001

BOOST_REQUIRE(sbp ==

NULL

);

1012

unique_ptr<SSeqLoc> qsl1(

1016

query_v.push_back(*qsl1);

1029  prog

, strand_opt, blast_msg);

1031

BOOST_CHECK(m->empty());

1037  "BLOSUM62"

, -1, -1);

1042

kBlastProgram, &sbp, 1.0, &blast_message,

1055  const int

k_avg_subject_length=104833;

1063

BOOST_REQUIRE(scoring_options ==

NULL

);

1065

BOOST_REQUIRE(hit_params ==

NULL

);

1067

BOOST_REQUIRE(hit_options ==

NULL

);

1069

BOOST_REQUIRE(ext_options ==

NULL

);

1071

BOOST_REQUIRE(sbp ==

NULL

);

1080

unique_ptr<SSeqLoc> qsl1(

1084

query_v.push_back(*qsl1);

1097  prog

, strand_opt, blast_msg);

1099

BOOST_CHECK(m->empty());

1105  "BLOSUM62"

, -1, -1);

1110

kBlastProgram, &sbp, 1.0, &blast_message,

1123  const int

k_avg_subject_length=104833;

1150

BOOST_REQUIRE(scoring_options ==

NULL

);

1152

BOOST_REQUIRE(hit_params ==

NULL

);

1154

BOOST_REQUIRE(hit_options ==

NULL

);

1156

BOOST_REQUIRE(ext_options ==

NULL

);

1158

BOOST_REQUIRE(sbp ==

NULL

);

1167  CSeq_id

qid1(

"gi|17532675"

);

1168

unique_ptr<SSeqLoc> qsl1(

1172

query_v.push_back(*qsl1);

1185  prog

, strand_opt, blast_msg);

1187

BOOST_CHECK(m->empty());

1193  "BLOSUM62"

, -1, -1);

1198

kBlastProgram, &sbp, 1.0, &blast_message,

1211  const int

k_avg_subject_length=523;

1220

BOOST_REQUIRE(scoring_options ==

NULL

);

1222

BOOST_REQUIRE(hit_params ==

NULL

);

1224

BOOST_REQUIRE(hit_options ==

NULL

);

1226

BOOST_REQUIRE(ext_options ==

NULL

);

1228

BOOST_REQUIRE(sbp ==

NULL

);

1235  const Uint4

k_subject_length=10000;

1237

unique_ptr<SSeqLoc> qsl1(

1240

unique_ptr<SSeqLoc> qsl2(

1243

unique_ptr<SSeqLoc> qsl3(

1248

query_v.push_back(*qsl1);

1249

query_v.push_back(*qsl2);

1250

query_v.push_back(*qsl3);

1263  prog

, strand_opt, blast_msg);

1265

BOOST_CHECK(m->empty());

1271  "BLOSUM62"

, -1, -1);

1276

kBlastProgram, &sbp, 1.0, &blast_message,

1303

query_info, sbp, word_options, k_subject_length, hit_params);

1309

BOOST_REQUIRE(scoring_options ==

NULL

);

1311

BOOST_REQUIRE(hit_params ==

NULL

);

1313

BOOST_REQUIRE(hit_options ==

NULL

);

1315

BOOST_REQUIRE(word_params ==

NULL

);

1317

BOOST_REQUIRE(word_options ==

NULL

);

1319

BOOST_REQUIRE(ext_options ==

NULL

);

1321

BOOST_REQUIRE(sbp ==

NULL

);

1331

BOOST_CHECK_EQUAL(

false

, opts.

GetBlast4AlgoOpts

()->GetParamByName(

"DustFiltering"

)->GetValue().GetBoolean());

1332

BOOST_CHECK_EQUAL(

false

, opts.

GetBlast4AlgoOpts

()->GetParamByName(

"RepeatFiltering"

)->GetValue().GetBoolean());

1334

BOOST_CHECK_EQUAL(

true

, opts.

GetBlast4AlgoOpts

()->GetParamByName(

"DustFiltering"

)->GetValue().GetBoolean());

1335

BOOST_CHECK_EQUAL(

false

, opts.

GetBlast4AlgoOpts

()->GetParamByName(

"RepeatFiltering"

)->GetValue().GetBoolean());

1339

BOOST_CHECK_EQUAL(

false

, opts.

GetBlast4AlgoOpts

()->GetParamByName(

"SegFiltering"

)->GetValue().GetBoolean());

1341

BOOST_CHECK_EQUAL(

true

, opts.

GetBlast4AlgoOpts

()->GetParamByName(

"SegFiltering"

)->GetValue().GetBoolean());

1345

BOOST_CHECK_EQUAL(

false

, opts.

GetBlast4AlgoOpts

()->GetParamByName(

"SegFiltering"

)->GetValue().GetBoolean());

1347

BOOST_CHECK_EQUAL(

true

, opts.

GetBlast4AlgoOpts

()->GetParamByName(

"SegFiltering"

)->GetValue().GetBoolean());

1351

BOOST_CHECK_EQUAL(

false

, opts.

GetBlast4AlgoOpts

()->GetParamByName(

"SegFiltering"

)->GetValue().GetBoolean());

1353

BOOST_CHECK_EQUAL(

true

, opts.

GetBlast4AlgoOpts

()->GetParamByName(

"SegFiltering"

)->GetValue().GetBoolean());

1357

BOOST_CHECK_EQUAL(

false

, opts.

GetBlast4AlgoOpts

()->GetParamByName(

"SegFiltering"

)->GetValue().GetBoolean());

1359

BOOST_CHECK_EQUAL(

true

, opts.

GetBlast4AlgoOpts

()->GetParamByName(

"SegFiltering"

)->GetValue().GetBoolean());

1369

BOOST_CHECK_EQUAL(

string

(

"F"

),

string

(filter_string));

1370  sfree

(filter_string);

1375

BOOST_CHECK_EQUAL(

string

(

"F"

),

string

(filter_string));

1376  sfree

(filter_string);

1384

BOOST_REQUIRE(optsHandle.

NotEmpty

());

1393

optsHandle.

Reset

();

1396

BOOST_CHECK_EQUAL(optsClone->

GetDbLength

(), 10000);

1397

BOOST_CHECK_EQUAL(

string

(optsClone->

GetFilterString

()),

string

(

"L;m;"

));

1398

BOOST_CHECK_EQUAL(

string

(optsClone->

GetPHIPattern

()),

string

(

"Y-S-[SA]-X-[LVIM]"

));

1411

optsClone = optsSnapshot;

User-defined methods of the data storage class.

User-defined methods of the data storage class.

Declares the CBl2Seq (BLAST 2 Sequences) class.

#define sfree(x)

Safe free a pointer: belongs to a higher level header.

BlastSeqLoc * BlastSeqLocFree(BlastSeqLoc *loc)

Deallocate all BlastSeqLoc objects in a chain.

BlastSeqLoc * BlastSeqLocNew(BlastSeqLoc **head, Int4 from, Int4 to)

Create and initialize a new sequence interval.

#define BLASTERR_INVALIDPARAM

Invalid parameter: possible programmer error or pre-condition not met.

Definitions which are dependant on the NCBI C++ Object Manager.

PSIBlastOptions * PSIBlastOptionsFree(PSIBlastOptions *psi_options)

Deallocate PSI BLAST options.

BlastHitSavingOptions * BlastHitSavingOptionsFree(BlastHitSavingOptions *options)

Deallocate memory for BlastHitSavingOptions.

Int2 BlastQuerySetUpOptionsNew(QuerySetUpOptions **options)

Allocate memory for QuerySetUpOptions and fill with default values.

Int2 BLAST_GetSuggestedThreshold(EBlastProgramType program_number, const char *matrixName, double *threshold)

Get thresholds for word-finding suggested by Stephen Altschul.

Int2 BLAST_GetSuggestedWindowSize(EBlastProgramType program_number, const char *matrixName, Int4 *window_size)

Get window sizes for two hit algorithm suggested by Stephen Altschul.

Int2 BLAST_FillScoringOptions(BlastScoringOptions *options, EBlastProgramType program, Boolean greedy_extension, Int4 penalty, Int4 reward, const char *matrix, Int4 gap_open, Int4 gap_extend)

Fill non-default values in the BlastScoringOptions structure.

BlastInitialWordOptions * BlastInitialWordOptionsFree(BlastInitialWordOptions *options)

Deallocate memory for BlastInitialWordOptions.

Int2 BlastScoringOptionsNew(EBlastProgramType program, BlastScoringOptions **options)

Allocate memory for BlastScoringOptions and fill with default values.

BlastEffectiveLengthsOptions * BlastEffectiveLengthsOptionsFree(BlastEffectiveLengthsOptions *options)

Deallocate memory for BlastEffectiveLengthsOptions*.

SBlastFilterOptions * SBlastFilterOptionsFree(SBlastFilterOptions *filter_options)

Frees SBlastFilterOptions and all subservient structures.

Int2 BLAST_FillLookupTableOptions(LookupTableOptions *options, EBlastProgramType program, Boolean is_megablast, double threshold, Int4 word_size)

Allocate memory for lookup table options and fill with default values.

Int2 LookupTableOptionsNew(EBlastProgramType program, LookupTableOptions **options)

Allocate memory for lookup table options and fill with default values.

BlastExtensionOptions * BlastExtensionOptionsFree(BlastExtensionOptions *options)

Deallocate memory for BlastExtensionOptions.

Int2 BlastHitSavingOptionsNew(EBlastProgramType program, BlastHitSavingOptions **options, Boolean gapped_calculation)

Allocate memory for BlastHitSavingOptions.

BlastDatabaseOptions * BlastDatabaseOptionsFree(BlastDatabaseOptions *db_options)

Deallocate database options.

@ eDust

low-complexity for nucleotides.

@ eSeg

low-complexity for proteins.

Int2 SBlastFilterOptionsNew(SBlastFilterOptions **filter_options, EFilterOptions type)

Allocates memory for SBlastFilterOptions and.

Int2 BlastInitialWordOptionsNew(EBlastProgramType program, BlastInitialWordOptions **options)

Allocate memory for BlastInitialWordOptions and fill with default values.

BlastScoringOptions * BlastScoringOptionsFree(BlastScoringOptions *options)

Deallocate memory for BlastScoringOptions.

LookupTableOptions * LookupTableOptionsFree(LookupTableOptions *options)

Deallocates memory for LookupTableOptions*.

QuerySetUpOptions * BlastQuerySetUpOptionsFree(QuerySetUpOptions *options)

Deallocate memory for QuerySetUpOptions.

Int2 BlastExtensionOptionsNew(EBlastProgramType program, BlastExtensionOptions **options, Boolean gapped)

Allocate memory for BlastExtensionOptions and fill with default values.

BlastHitSavingParameters * BlastHitSavingParametersFree(BlastHitSavingParameters *parameters)

Deallocate memory for BlastHitSavingOptions*.

Int2 BlastExtensionParametersNew(EBlastProgramType blast_program, const BlastExtensionOptions *options, BlastScoreBlk *sbp, BlastQueryInfo *query_info, BlastExtensionParameters **parameters)

Calculate the raw values for the X-dropoff parameters.

BlastInitialWordParameters * BlastInitialWordParametersFree(BlastInitialWordParameters *parameters)

Deallocate memory for BlastInitialWordParameters.

BlastExtensionParameters * BlastExtensionParametersFree(BlastExtensionParameters *parameters)

Deallocate memory for BlastExtensionParameters.

Int2 BlastInitialWordParametersNew(EBlastProgramType program_number, const BlastInitialWordOptions *word_options, const BlastHitSavingParameters *hit_params, const LookupTableWrap *lookup_wrap, const BlastScoreBlk *sbp, BlastQueryInfo *query_info, Uint4 subject_length, BlastInitialWordParameters **parameters)

Allocate memory for BlastInitialWordParameters and set x_dropoff.

Int2 BlastHitSavingParametersNew(EBlastProgramType program_number, const BlastHitSavingOptions *options, const BlastScoreBlk *sbp, const BlastQueryInfo *query_info, Int4 avg_subject_length, Int4 compositionBasedStats, BlastHitSavingParameters **parameters)

Allocate memory and initialize the BlastHitSavingParameters structure.

Int2 BlastHitSavingParametersUpdate(EBlastProgramType program_number, const BlastScoreBlk *sbp, const BlastQueryInfo *query_info, Int4 avg_subject_length, Int4 compositionBasedStats, BlastHitSavingParameters *parameters)

Updates cutoff scores in hit saving parameters.

void CalculateLinkHSPCutoffs(EBlastProgramType program, BlastQueryInfo *query_info, const BlastScoreBlk *sbp, BlastLinkHSPParameters *link_hsp_params, const BlastInitialWordParameters *word_params, Int8 db_length, Int4 subject_length)

Calculates cutoff scores and returns them.

EBlastProgramType

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

BlastQueryInfo * BlastQueryInfoNew(EBlastProgramType program, int num_queries)

Allocate memory for query information structure.

Utilities initialize/setup BLAST.

Int2 BlastSetup_ScoreBlkInit(BLAST_SequenceBlk *query_blk, const BlastQueryInfo *query_info, const BlastScoringOptions *scoring_options, EBlastProgramType program_number, BlastScoreBlk **sbpp, double scale_factor, Blast_Message **blast_message, GET_MATRIX_PATH get_path)

Initializes the score block structure.

Internal auxiliary setup classes/functions for C++ BLAST APIs.

BlastScoreBlk * BlastScoreBlkFree(BlastScoreBlk *sbp)

Deallocates BlastScoreBlk as well as all associated structures.

Int2 BLAST_GetProteinGapExistenceExtendParams(const char *matrixName, Int4 *gap_existence, Int4 *gap_extension)

Extract the recommended gap existence and extension values.

Blast_KarlinBlk * Blast_KarlinBlkNew(void)

Callocs a Blast_KarlinBlk.

Blast_KarlinBlk * Blast_KarlinBlkFree(Blast_KarlinBlk *kbp)

Deallocates the KarlinBlk.

Int2 BLAST_GetNucleotideGapExistenceExtendParams(Int4 reward, Int4 penalty, Int4 *gap_existence, Int4 *gap_extension)

Extract the recommended gap existence and extension values.

BlastScoreBlk * BlastScoreBlkNew(Uint1 alphabet, Int4 number_of_contexts)

Allocates and initializes BlastScoreBlk.

@ eBlastNotSet

Not yet set.

@ eTblastx

Translated nucl-Translated nucl.

@ eBlastn

Nucl-Nucl (traditional blastn)

@ eBlastp

Protein-Protein.

@ eTblastn

Protein-Translated nucl.

@ eBlastx

Translated nucl-Protein.

BLAST_SequenceBlk * BlastSequenceBlkFree(BLAST_SequenceBlk *seq_blk)

Deallocate memory for a sequence block.

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

static BlastScoreBlk * s_FillScoreBlkWithBadKbp(BlastQueryInfo *query_info)

static void MakeSomeInvalidKBP(Blast_KarlinBlk **kbp_array, Int4 num, Int4 good_one, BlastQueryInfo *query_info)

static void s_FillSearchSpace(BlastQueryInfo *query_info, Int8 searchsp)

BOOST_AUTO_TEST_CASE(TestTasksDefinitionsAndDocumentation)

static BlastInitialWordParameters * s_GetInitialWordParameters(EBlastProgramType program_number, BLAST_SequenceBlk *query_blk, BlastQueryInfo *query_info, BlastScoreBlk *sbp, const BlastInitialWordOptions *word_options, int subject_length, const BlastHitSavingParameters *hit_params)

static void MakeSomeValidKBP(Blast_KarlinBlk **kbp_array, Int4 num, BlastQueryInfo *query_info)

Wrapper class for BLAST_SequenceBlk .

Runs the BLAST algorithm between 2 sequences.

Defines BLAST error codes (user errors included)

Wrapper class for BlastInitialWordOptions .

Encapsulates ALL the BLAST algorithm's options.

@ eRemote

To be used when running BLAST remotely.

Wrapper class for BlastQueryInfo .

Wrapper class for LookupTableOptions .

static CTestObjMgr & Instance()

typedef for the messages for an entire BLAST search, which could be comprised of multiple query seque...

void SetPHIPattern(const char *pattern, bool is_dna)

BlastQueryInfo * Get() const

const CBlastOptionsHandle & GetOptionsHandle() const

Retrieve the options handle.

void SetQueryCovHspPerc(double p)

Sets QueryCovHspPerc.

void SetDbLength(Int8 len)

Sets DbLength.

void SetQueryCovHspPerc(double p)

const char * GetPHIPattern() const

static string GetDocumentation(const string &task_name)

Return the documentation for the provided task.

double GetBestHitOverhang() const

void SetupQueries(TSeqLocVector &queries, BlastQueryInfo *qinfo, BLAST_SequenceBlk **seqblk, EBlastProgramType prog, objects::ENa_strand strand_opt, TSearchMessages &messages)

Populates BLAST_SequenceBlk with sequence data for use in CORE BLAST.

objects::ENa_strand GetStrandOption() const

void SetRepeatFilteringDB(const char *db)

Sets the repeat filtering database to use.

static CBlastOptionsHandle * Create(EProgram program, EAPILocality locality=CBlastOptions::eLocal)

Creates an options handle object configured with default options for the requested program,...

double GetQueryCovHspPerc() const

CBlastOptions & SetOptions()

Returns a reference to the internal options class which this object is a handle for.

void SetUnifiedP(int u=0)

void SetProgram(EProgram p)

Sets the task this object is best suited for.

#define BLASTAA_SEQ_CODE

== Seq_code_ncbistdaa

void SetMaxHspsPerSubject(int m)

Sets MaxHspPerSubjectQueryPair.

EBlastProgramType GetProgramType() const

Returns the CORE BLAST notion of program type.

void SetBestHitOverhang(double overhang)

static set< string > GetTasks(ETaskSets choice=eAll)

Retrieve the set of supported tasks.

const CBlastOptions & GetOptions() const

Return the object which this object is a handle for.

CRef< CBlastOptions > Clone() const

Explicit deep copy of the Blast options object.

char * GetFilterString() const

Return the filtering string used.

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

char * BlastFindMatrixPath(const char *matrix_name, Boolean is_prot)

Returns the path to a specified matrix.

const TSeqLocVector & GetQueries() const

Retrieve a vector of query sequences.

void SetupQueryInfo(TSeqLocVector &queries, EBlastProgramType prog, objects::ENa_strand strand_opt, BlastQueryInfo **qinfo)

Allocates the query information structure and fills the context offsets, in case of multiple queries,...

double GetQueryCovHspPerc() const

Returns QueryCovHspPerc.

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

Sets FilterString.

void SetMaskAtHash(bool val=true)

void SetBestHitScoreEdge(double score_edge)

void SetDustFiltering(bool val=true)

void SetSegFiltering(bool val=true)

double GetBestHitScoreEdge() const

TBlast4Opts * GetBlast4AlgoOpts()

char * GetFilterString() const

Returns FilterString.

static CBlastOptionsHandle * CreateTask(string task, EAPILocality locality=CBlastOptions::eLocal)

Creates an options handle object configured with default options for the requested task,...

int GetMaxHspsPerSubject() const

Returns MaxHspsPerSubjectQueryPair.

void SetRepeatFiltering(bool val=true)

Turns on repeat filtering using the default repeat database, namely kDefaultRepeatFilterDb.

#define ITERATE(Type, Var, Cont)

ITERATE macro to sequence through container elements.

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.

int16_t Int2

2-byte (16-bit) signed integer

int32_t Int4

4-byte (32-bit) signed integer

uint32_t Uint4

4-byte (32-bit) unsigned integer

int64_t Int8

8-byte (64-bit) signed integer

ENa_strand

strand of nucleic acid

@ eNa_strand_both

in forward orientation

Implementation of a number of BlastHSPWriters to save hits from a BLAST search, and subsequently retu...

#define kBestHit_ScoreEdgeDflt

Default value for score_edge.

#define kBestHit_OverhangDflt

The "best hit" writer.

LookupTableWrap * LookupTableWrapFree(LookupTableWrap *lookup)

Deallocate memory for the lookup table.

Int2 LookupTableWrapInit(BLAST_SequenceBlk *query, const LookupTableOptions *lookup_options, const QuerySetUpOptions *query_options, BlastSeqLoc *lookup_segments, BlastScoreBlk *sbp, LookupTableWrap **lookup_wrap_ptr, const BlastRPSInfo *rps_info, Blast_Message **error_msg, BlastSeqSrc *seqsrc)

Create the lookup table for all query words.

Uint1 Boolean

bool replacment for C

#define TRUE

bool replacment for C indicating true.

#define FALSE

bool replacment for C indicating false.

BOOST_AUTO_TEST_SUITE(psiblast_iteration)

vector< SSeqLoc > TSeqLocVector

Vector of sequence locations.

Structure to hold a sequence.

The context related information.

Int4 query_length

Length of this query, strand or frame.

Boolean is_valid

Determine if this context is valid or not.

Int4 query_offset

Offset of this query, strand or frame in the concatenated super-query.

Int8 eff_searchsp

Effective search space for this context.

Options used for gapped extension These include: a.

double gap_x_dropoff_final

X-dropoff value for the final gapped extension (in bits)

double gap_x_dropoff

X-dropoff value for gapped extension (in bits)

Computed values used as parameters for gapped alignments.

Int4 gap_x_dropoff_final

X-dropoff value for the final gapped extension (raw)

Int4 gap_x_dropoff

X-dropoff value for gapped extension (raw)

Int4 cutoff_score

Raw cutoff score corresponding to the e-value provided by the user if no sum stats,...

Int4 cutoff_score_max

Raw cutoff score corresponding to the e-value provided by user, cutoff_score must be <= this.

Options used when evaluating and saving hits These include: a.

Int4 max_hsps_per_subject

Queries are paired reads, for mapping.

Boolean do_sum_stats

Force sum statistics to be used to combine HSPs, TRUE by default for all ungapped searches and transl...

double query_cov_hsp_perc

Min query coverage hsp percentage.

Parameter block that contains a pointer to BlastHitSavingOptions and the values derived from it.

BlastGappedCutoffs * cutoffs

per-context gapped cutoff information

Int4 cutoff_score_min

smallest cutoff score across all contexts

double prelim_evalue

evalue for preliminary search (may be higher for CBS).

BlastLinkHSPParameters * link_hsp_params

Parameters for linking HSPs with sum statistics; linking is not done if NULL.

Options needed for initial word finding and processing.

double x_dropoff

X-dropoff value (in bits) for the ungapped extension.

Parameter block that contains a pointer to BlastInitialWordOptions and the values derived from it.

Int4 cutoff_score_min

smallest cutoff score across all contexts

Int4 x_dropoff_max

largest X-drop cutoff across all contexts

Parameter block for linking HSPs with sum statistics.

double gap_decay_rate

Decay rate for linking HSPs and calculating cutoff scores.

double gap_prob

Probability of decay for linking HSPs.

Int4 cutoff_big_gap

Cutoff sum score for linked HSPs with big gaps.

Int4 cutoff_small_gap

Cutoff sum score for linked HSPs with small gaps.

The query related information.

Int4 first_context

Index of the first element of the context array.

BlastContextInfo * contexts

Information per context.

Int4 last_context

Index of the last element of the context array.

Structure used for scoring calculations.

Blast_KarlinBlk ** kbp

Karlin-Altschul parameters.

Boolean matrix_only_scoring

Score ungapped/gapped alignment only using the matrix parameters and with raw scores.

double scale_factor

multiplier for all cutoff and dropoff scores

Blast_KarlinBlk ** kbp_gap

K-A parameters for gapped alignments.

Blast_KarlinBlk ** kbp_std

K-A parameters for ungapped alignments.

Scoring options block Used to produce the BlastScoreBlk structure This structure may be needed for lo...

Boolean gapped_calculation

gap-free search if FALSE

Used to hold a set of positions, mostly used for filtering.

Structure to hold the Karlin-Altschul parameters.

double K

K value used in statistics.

double Lambda

Lambda value used in statistics.

double H

H value used in statistics.

double logK

natural log of K value used in statistics

Structure to hold the a message from the core of the BLAST engine.

Options needed to construct a lookup table Also needed: query sequence and query length.

Int4 word_size

Determines the size of the lookup table.

Wrapper structure for different types of BLAST lookup tables.

Options required for setting up the query sequence.

SSegOptions * segOptions

low-complexity filtering for proteins sequences (includes translated nucleotides).

SDustOptions * dustOptions

low-complexity filtering for nucleotides.

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

voidp calloc(uInt items, uInt size)


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