From b5bed0e414cb2b1bea6d4924beedd7776f3e70ee Mon Sep 17 00:00:00 2001 From: wdecoster Date: Mon, 29 Jul 2024 10:22:35 +0200 Subject: [PATCH] fix checking for remote alignment file --- Cargo.toml | 2 +- src/utils.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 65097c5..189718f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "STRdust" -version = "0.8.7" +version = "0.8.8" edition = "2021" diff --git a/src/utils.rs b/src/utils.rs index 3d5b786..c6c458c 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -25,7 +25,7 @@ pub fn reader(filename: &str) -> Box { } pub fn check_files_exist(args: &crate::Cli) { - if !Path::new(&args.bam).exists() { + if !Path::new(&args.bam).exists() && !args.bam.starts_with("s3") && !args.bam.starts_with("https://") { error!("Alignment file not found: {}", args.bam); std::process::exit(1); }