From 7dd38b0c252781027680ff871790b39d644eac37 Mon Sep 17 00:00:00 2001 From: zaka-edd <116717030+zaka-edd@users.noreply.github.com> Date: Mon, 15 Jul 2024 10:48:38 +0200 Subject: [PATCH] Fixed a typo that caused an error reading bai file --- src/utils.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.rs b/src/utils.rs index d3841e5..a127bf0 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -34,7 +34,7 @@ pub fn check_files_exist(args: &crate::Cli) { } else { ".bai" }; - let index = format!("{}.{}", args.bam, index_extension); + let index = format!("{}{}", args.bam, index_extension); if !Path::new(&index).exists() { error!("Index file not found: {}", index); std::process::exit(1); @@ -48,4 +48,4 @@ pub fn check_files_exist(args: &crate::Cli) { error!("FASTA index file not found: {}", fai); std::process::exit(1); } -} \ No newline at end of file +}