From f8515e2205f563655612df46537315aec07ec37a Mon Sep 17 00:00:00 2001 From: angelovangel Date: Sat, 4 Dec 2021 12:39:56 +0100 Subject: [PATCH] bump to v0.1.2 --- Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 2 +- src/main.rs | 5 +++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 71b3baa..505b7f0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -291,7 +291,7 @@ dependencies = [ [[package]] name = "fastkmers" -version = "0.1.1" +version = "0.1.2" dependencies = [ "assert_cmd", "bio", diff --git a/Cargo.toml b/Cargo.toml index f933a10..f15ed43 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fastkmers" -version = "0.1.1" +version = "0.1.2" authors = ["Angel Angelov "] repository = "https://github.com/angelovangel/fastkmers" diff --git a/README.md b/README.md index 44b1176..0f038e6 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ fastkmers -k 4 -a -j file.fasta fastkmers -k 5 -q "AATTG" file.fastq.gz # query with regex is also supported -# this example would match k-mers whose last 4 bases are: not T| A | T or G | A +# this example would match all 5-mers whose last 4 bases are: not T| A | T or G | A fastkmers -k 5 -q "[^T]A[T|G]A$" file.fastq.gz ``` diff --git a/src/main.rs b/src/main.rs index 2711223..01bb782 100644 --- a/src/main.rs +++ b/src/main.rs @@ -21,6 +21,7 @@ fn get_fastq_reader(path: &String) -> Box { fn main() { let matches = App::new("fastkmers") + .version("0.1.2") .author("https://github.com/angelovangel") .about("get k-mer counts and multiplicity frequency from a fastq file") @@ -95,7 +96,7 @@ fn main() { for result in reader.records(){ reads += 1; - let record = result.expect("Error"); + let record = result.expect("Error reading records in file. Use '-a' if file is fasta"); let seq = record.seq(); let seq_str = str::from_utf8(seq).unwrap().to_string(); //println!("{:?}", seq); @@ -113,7 +114,7 @@ fn main() { for result in reader.records(){ reads += 1; - let record = result.expect("Error"); + let record = result.expect("Error reading records in file. Use '-a' if file is fasta."); let seq = record.seq(); let seq_str = str::from_utf8(seq).unwrap().to_string(); //println!("{:?}", seq);