Skip to content

Commit

Permalink
Move default consensus slack to SalmonDefaults
Browse files Browse the repository at this point in the history
- Fix the message to the user about how the default consensus
  slack is being set.  This should address #587.
  • Loading branch information
Rob Patro committed Nov 20, 2020
1 parent cf3ff50 commit 54a4cf1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/SalmonDefaults.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace defaults {
// advanced
constexpr const bool validateMappings{true};
constexpr const bool disableSA{false};
constexpr const float consensusSlack{0.0};
constexpr const float consensusSlack{0.35};
constexpr const double minScoreFraction{0.65};
constexpr const double pre_merge_chain_sub_thresh{0.75};
constexpr const double post_merge_chain_sub_thresh{0.9};
Expand Down
5 changes: 2 additions & 3 deletions src/SalmonUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1515,10 +1515,9 @@ std::string getCurrentTimeAsString() {
// validateMappings
bool consensusSlackExplicit = !vm["consensusSlack"].defaulted();
if (!consensusSlackExplicit) {
sopt.consensusSlack = 0.35;
sopt.jointLog->info(
"Usage of --validateMappings implies a default consensus slack of 0.2. "
"Setting consensusSlack to {}.", sopt.consensusSlack);
"Setting consensusSlack to selective-alignment default of {}.",
sopt.consensusSlack);
}

bool pre_merge_chain_sub_thresh_explicit = !vm["preMergeChainSubThresh"].defaulted();
Expand Down

0 comments on commit 54a4cf1

Please sign in to comment.