You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -533,6 +557,7 @@ int rapMapSAMap(int argc, char* argv[]) {
533
557
TCLAP::SwitchArg strict("s", "strictCheck", "Perform extra checks to try and assure that only equally \"best\" mappings for a read are reported", false);
auto consoleLog = spdlog::create("stderrLog", {consoleSink});
556
-
581
+
557
582
try {
558
583
559
584
cmd.parse(argc, argv);
585
+
// If we're supposed to be quiet, only print out warnings and above
586
+
if (quiet.getValue()) {
587
+
consoleLog->set_level(spdlog::level::warn);
588
+
}
589
+
560
590
bool pairedEnd = (read1.isSet() or read2.isSet());
561
591
if (pairedEnd and (read1.isSet() != read2.isSet())) {
562
592
consoleLog->error("You must set both the -1 and -2 arguments to align "
@@ -587,7 +617,7 @@ int rapMapSAMap(int argc, char* argv[]) {
587
617
"doesn't exist", indexPrefix);
588
618
std::exit(1);
589
619
}
590
-
620
+
591
621
MappingOpts mopts;
592
622
if (pairedEnd) {
593
623
mopts.read1 = read1.getValue();
@@ -605,6 +635,14 @@ int rapMapSAMap(int argc, char* argv[]) {
605
635
mopts.strictCheck = strict.getValue();
606
636
mopts.consistentHits = consistent.getValue();
607
637
mopts.fuzzy = fuzzy.getValue();
638
+
mopts.quiet = quiet.getValue();
639
+
640
+
if (quasiCov.isSet() and !sensitive.isSet()) {
641
+
consoleLog->info("The --quasiCoverage option is set to {}, but the --sensitive flag was not set. The former implies the later. Enabling sensitive mode.", quasiCov.getValue());
0 commit comments