From b8c9f2dc020c04002a1ea66412088ebce378120c Mon Sep 17 00:00:00 2001 From: Govinda Kamath Date: Sat, 25 May 2024 19:14:19 -0700 Subject: [PATCH] Update src/read_pair_iter.rs Co-authored-by: Patrick Marks --- src/read_pair_iter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/read_pair_iter.rs b/src/read_pair_iter.rs index c1300b2..3ae7690 100644 --- a/src/read_pair_iter.rs +++ b/src/read_pair_iter.rs @@ -325,7 +325,7 @@ impl ReadPairIter { pub fn is_single_ended(&self) -> Result { // We only allow parsing single ended RA files if !self.r1_interleaved { - Ok(false) + Ok(self.r2.is_none()) } else if let Some(p) = self.iters.paths[0].as_ref() { let rdr = Self::open_fastq_confirm_fmt(p)?; let parser = fastq::Parser::new(rdr);