diff --git a/src/utils.rs b/src/utils.rs index fbe0bd0..3d5b786 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);