From 9ae1187279fa46431414d4259e426bc82ff7a1f0 Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Mon, 7 Feb 2022 15:55:19 +0300 Subject: [PATCH] Do not forget to preserve orientation --- assembler/src/projects/bin_refine/read_splitting.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/assembler/src/projects/bin_refine/read_splitting.cpp b/assembler/src/projects/bin_refine/read_splitting.cpp index 2a907edba..bace72d56 100644 --- a/assembler/src/projects/bin_refine/read_splitting.cpp +++ b/assembler/src/projects/bin_refine/read_splitting.cpp @@ -123,7 +123,8 @@ void SplitAndWriteReads(const debruijn_graph::Graph &graph, } io::OFastqPairedStream unbinned_reads_ostream(fs::append_path(prefix, "unbinned_1.fastq"), - fs::append_path(prefix, "unbinned_2.fastq")); + fs::append_path(prefix, "unbinned_2.fastq"), + lib.orientation()); std::vector binned_reads_ostreams; for (size_t bin_id = 0; bin_id < binning.bins().size(); ++bin_id) { @@ -133,7 +134,8 @@ void SplitAndWriteReads(const debruijn_graph::Graph &graph, {fs::append_path(prefix, bin_label + "_1.fastq"), fs::append_path(prefix, bin_label + "_2.fastq")}; binned_reads_ostreams.emplace_back(cur_part_paired_reads_filenames.first, - cur_part_paired_reads_filenames.second); + cur_part_paired_reads_filenames.second, + lib.orientation()); } SequenceMapperNotifier notifier;