From 2f91a2f9f7afb64bb6f17135403bc7b26271a1ad Mon Sep 17 00:00:00 2001 From: Pierre Peterlongo Date: Wed, 26 Jun 2024 12:06:59 +0200 Subject: [PATCH] v0.6.6 - corrected a bug when using multiple input files --- Cargo.toml | 2 +- README.md | 2 +- VERSIONS.md | 2 ++ src/cli.rs | 2 +- src/main.rs | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c8e3bda..08ebb56 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "back_to_sequences" -version = "0.6.5" +version = "0.6.6" edition = "2021" authors = [ diff --git a/README.md b/README.md index b96fd10..c48e161 100644 --- a/README.md +++ b/README.md @@ -195,7 +195,7 @@ Say you have three input read files `1.fa`, `2.fa`, `3.fa` to which you wish to 1. create an input and an output files: ```bash ls 1.fa 2.fa 3.fa > in.fof -echo 1_out.fa 2_out.fa 3_out.fa > out.fof +echo "1_out.fa\n2_out.fa\n3_out.fa" > out.fof ``` 2. run `back_to_sequences` ```bash diff --git a/VERSIONS.md b/VERSIONS.md index 4690bf2..0e90014 100644 --- a/VERSIONS.md +++ b/VERSIONS.md @@ -50,4 +50,6 @@ * Fixed a filtering bug: As percentage of shared kmers were rounded to 2 decimals, and as we exclude the min-threshold value, some reads with shared kmers were discarded while they contained shared kmers. Now the tset is made before to round values + output values are rounded to 5 decimals. +* 0.6.6 26/06/2024 + * Corrected a bug related to the usage of --in-filelist when querying multiple input files \ No newline at end of file diff --git a/src/cli.rs b/src/cli.rs index 051adb5..c2744bd 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -113,7 +113,7 @@ pub fn validate_non_empty_file(in_file: String) -> anyhow::Result<()> { anyhow::bail!("{:#} exists, but it's not a file.", in_file) } } else { - anyhow::bail!("{:#} exists, but it's not a file.", in_file) + anyhow::bail!("{:#} is not a file.", in_file) } Ok(()) diff --git a/src/main.rs b/src/main.rs index 8d6b0ae..e74f34a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -25,7 +25,7 @@ fn main() -> anyhow::Result<()> { env::set_var("RAYON_NUM_THREADS", args.threads.to_string()); // If out_sequences and out_kmers are not provided, we do nothing, we can quit - if args.out_sequences.is_empty() && args.out_kmers.is_empty() { + if args.out_sequences.is_empty() && args.out_filelist.is_empty() && args.out_kmers.is_empty() { anyhow::bail!("no output file provided, nothing to do"); }