diff --git a/src/BamReader.cpp b/src/BamReader.cpp index 9bab12f73..91fcedf4c 100644 --- a/src/BamReader.cpp +++ b/src/BamReader.cpp @@ -148,6 +148,7 @@ void BamReader::Reset() { return false; _Bam new_bam(bam); + if (!m_cram_reference.empty()) new_bam.m_cram_reference = m_cram_reference; new_bam.m_region = &m_region; bool success = new_bam.open_BAM_for_reading(pool); m_bams.insert(std::pair(bam, new_bam));