-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from JensUweUlrich/abundance_threshold
reporting with different abundance threshold successfully tested
- Loading branch information
Showing
5 changed files
with
12 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,7 @@ using sequence_file_t = seqan3::sequence_file_input<hixf::dna4_traits, seqan3::f | |
|
||
void set_up_subparser_layout(seqan3::argument_parser & parser, taxor::build::configuration & config) | ||
{ | ||
parser.info.version = "0.1.0"; | ||
parser.info.version = "0.1.3"; | ||
parser.info.author = "Jens-Uwe Ulrich"; | ||
parser.info.email = "[email protected]"; | ||
parser.info.short_description = "Creates an HIXF index of a given set of fasta files"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ namespace taxor::profile | |
|
||
void set_up_subparser_layout(seqan3::argument_parser & parser, taxor::profile::configuration & config) | ||
{ | ||
parser.info.version = "0.1.0"; | ||
parser.info.version = "0.1.3"; | ||
parser.info.author = "Jens-Uwe Ulrich"; | ||
parser.info.email = "[email protected]"; | ||
parser.info.short_description = "Taxonomic profiling of a sample by giving read matching results of Taxor search"; | ||
|
@@ -47,6 +47,11 @@ void set_up_subparser_layout(seqan3::argument_parser & parser, taxor::profile::c | |
"Identifier of the analyzed sample", | ||
seqan3::option_spec::required); | ||
|
||
parser.add_option(config.threshold, '\0', "min-abundance", | ||
"Minimum abundance to report (default: 0.001)", | ||
seqan3::option_spec::standard, | ||
seqan3::arithmetic_range_validator{static_cast<double>(0.0), static_cast<double>(1.0)}); | ||
|
||
parser.add_option(config.threads, | ||
'\0', "threads", | ||
"The number of threads to use.", | ||
|
@@ -736,7 +741,7 @@ void tax_profile(taxor::profile::configuration& config) | |
|
||
for (auto & t: tax_abundances) | ||
{ | ||
if (t.second < 0.001) | ||
if (t.second < config.threshold) | ||
t.second = 0.0; | ||
} | ||
std::map<std::string, taxonomy::Profile_Output> rank_profiles = calculate_higher_rank_abundances(tax_abundances,taxpath); | ||
|
@@ -752,7 +757,7 @@ void tax_profile(taxor::profile::configuration& config) | |
|
||
for (auto & t: tax_abundances) | ||
{ | ||
if (t.second < 0.001) | ||
if (t.second < config.threshold) | ||
t.second = 0.0; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ namespace taxor::search | |
|
||
void set_up_subparser_layout(seqan3::argument_parser & parser, taxor::search::configuration & config) | ||
{ | ||
parser.info.version = "0.1.0"; | ||
parser.info.version = "0.1.3"; | ||
parser.info.author = "Jens-Uwe Ulrich"; | ||
parser.info.email = "[email protected]"; | ||
parser.info.short_description = "Queries a file of DNA sequences against an HIXF index"; | ||
|