From a826236a5e85da07db0aedecaec77276f83652b5 Mon Sep 17 00:00:00 2001 From: snystrom Date: Fri, 22 Oct 2021 00:07:39 -0400 Subject: [PATCH] add hint about indexing bam file if missing. --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 16b851e..bd9464c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -84,7 +84,7 @@ struct Cli { fn connect_indexed_bam(path: &std::path::PathBuf) -> bam::IndexedReader { bam::IndexedReader::from_path(path) .ok() - .expect("Cannot read bam file") + .expect("Cannot read bam file. Ensure an index is present (samtools index ).") } /// if path is - set prefix to ""