Skip to content

Commit a826236

Browse files
committed
add hint about indexing bam file if missing.
1 parent 735b284 commit a826236

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ struct Cli {
8484
fn connect_indexed_bam(path: &std::path::PathBuf) -> bam::IndexedReader {
8585
bam::IndexedReader::from_path(path)
8686
.ok()
87-
.expect("Cannot read bam file")
87+
.expect("Cannot read bam file. Ensure an index is present (samtools index <bamfile>).")
8888
}
8989

9090
/// if path is - set prefix to ""

0 commit comments

Comments
 (0)