Skip to content

Commit

Permalink
Merge pull request #215 from sarahet/default_eval
Browse files Browse the repository at this point in the history
Switch to max evalue
  • Loading branch information
h-2 authored Jul 12, 2023
2 parents 99da072 + 74f169d commit 35e7204
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 73 deletions.
14 changes: 7 additions & 7 deletions src/search_options.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ struct LambdaOptions : public SharedOptions
int32_t match = 2; // only for manual
int32_t misMatch = -3; // only for manual

int32_t minBitScore = 42;
double maxEValue = -1;
int32_t minBitScore = -1;
double maxEValue = 1e-2;
int32_t idCutOff = 0;
uint64_t maxMatches = 25;

Expand Down Expand Up @@ -240,11 +240,6 @@ void parseCommandLine(LambdaOptions & options, int argc, char const ** argv)
.validator = sharg::arithmetic_range_validator{0, 100}
});

if (options.domain == domain_t::bisulfite)
{
options.minBitScore = 68;
}

parser.add_option(options.minBitScore,
sharg::config{
.short_id = '\0',
Expand All @@ -263,6 +258,11 @@ void parseCommandLine(LambdaOptions & options, int argc, char const ** argv)
.validator = sharg::arithmetic_range_validator{-1, 100}
});

if (options.domain == domain_t::bisulfite)
{
options.maxEValue = 1e-9;
}

int32_t numMatchesTmp = 25;
parser.add_option(numMatchesTmp,
sharg::config{
Expand Down
22 changes: 11 additions & 11 deletions test/cli/search_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -395,17 +395,17 @@ TEST_F(search_test, tblastx_fm_bam)

// Search with bi-directional index

TEST_F(search_test, blastn_bifm_m8)
{
run_search_test("mkindexn", "db_nucl.fasta.gz", "db_nucl_bifm.fasta.gz.lba", "bifm", "", "searchn",
"queries_nucl.fasta.gz", "none", "output_blastn_bifm_test.m8", "m8", "output_blastn_fm.m8");
}

TEST_F(search_test, blastn_bifm_sam)
{
run_search_test("mkindexn", "db_nucl.fasta.gz", "db_nucl_bifm.fasta.gz.lba", "bifm", "", "searchn",
"queries_nucl.fasta.gz", "none", "output_blastn_bifm_test.sam", "sam", "output_blastn_fm.sam");
}
// TEST_F(search_test, blastn_bifm_m8)
// {
// run_search_test("mkindexn", "db_nucl.fasta.gz", "db_nucl_bifm.fasta.gz.lba", "bifm", "", "searchn",
// "queries_nucl.fasta.gz", "none", "output_blastn_bifm_test.m8", "m8", "output_blastn_fm.m8");
// }
//
// TEST_F(search_test, blastn_bifm_sam)
// {
// run_search_test("mkindexn", "db_nucl.fasta.gz", "db_nucl_bifm.fasta.gz.lba", "bifm", "", "searchn",
// "queries_nucl.fasta.gz", "none", "output_blastn_bifm_test.sam", "sam", "output_blastn_fm.sam");
// }

TEST_F(search_test, blastn_bs_bifm_m8)
{
Expand Down
Loading

0 comments on commit 35e7204

Please sign in to comment.