Skip to content

Commit

Permalink
Do not forget to preserve orientation
Browse files Browse the repository at this point in the history
  • Loading branch information
asl committed Feb 12, 2022
1 parent f0ffe08 commit 9ae1187
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions assembler/src/projects/bin_refine/read_splitting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<io::OFastqPairedStream> binned_reads_ostreams;
for (size_t bin_id = 0; bin_id < binning.bins().size(); ++bin_id) {
Expand All @@ -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;
Expand Down

0 comments on commit 9ae1187

Please sign in to comment.