Skip to content

Commit

Permalink
Merge branch 'jdaw/fix-trim-output' into 'master'
Browse files Browse the repository at this point in the history
BAM output for dorado trim

See merge request machine-learning/dorado!971
  • Loading branch information
iiSeymour committed Apr 29, 2024
2 parents eaf4ab2 + abaa532 commit c443f75
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dorado/cli/trim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,11 @@ int trim(int argc, char* argv[]) {
auto output_mode = OutputMode::BAM;

auto emit_fastq = parser.get<bool>("--emit-fastq");
auto emit_sam = !emit_fastq;

if (emit_fastq) {
spdlog::info(" - Note: FASTQ output is not recommended as not all data can be preserved.");
output_mode = OutputMode::FASTQ;
} else if (emit_sam || utils::is_fd_tty(stdout)) {
} else if (utils::is_fd_tty(stdout)) {
output_mode = OutputMode::SAM;
} else if (utils::is_fd_pipe(stdout)) {
output_mode = OutputMode::UBAM;
Expand Down

0 comments on commit c443f75

Please sign in to comment.