From f11abb543d8a0badf1ec66ef934e3749caad9cef Mon Sep 17 00:00:00 2001 From: Michael Macias Date: Thu, 12 Dec 2024 10:54:17 -0600 Subject: [PATCH] sam/io/reader: Use records iterator instead of record buffers iterator for alignment records --- noodles-sam/CHANGELOG.md | 5 +++++ noodles-sam/src/io/reader.rs | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/noodles-sam/CHANGELOG.md b/noodles-sam/CHANGELOG.md index 71cc2b342..63ff9f485 100644 --- a/noodles-sam/CHANGELOG.md +++ b/noodles-sam/CHANGELOG.md @@ -2,6 +2,11 @@ ## Unreleased +### Changed + + * sam/io/reader: Use records iterator instead of record buffers iterator for + alignment records. + ### Fixed * sam/alignment/record/data/field/tag: Fix original UMI quality scores (`BZ`) diff --git a/noodles-sam/src/io/reader.rs b/noodles-sam/src/io/reader.rs index 57a7a2fa9..9bfc01fe3 100644 --- a/noodles-sam/src/io/reader.rs +++ b/noodles-sam/src/io/reader.rs @@ -418,9 +418,9 @@ where fn alignment_records<'a>( &'a mut self, - header: &'a Header, + _header: &'a Header, ) -> Box>> + 'a> { - Box::new(self.record_bufs(header).map(|result| { + Box::new(self.records().map(|result| { result.map(|record| Box::new(record) as Box) })) }