From 4a881d486bd76120418c86e2e16ef06de3f9b95f Mon Sep 17 00:00:00 2001 From: esteinig Date: Tue, 5 Oct 2021 15:10:33 +1100 Subject: [PATCH] fix stats bug [#24]; bump minor version --- Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 12 ++++++------ src/utils.rs | 8 ++++---- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index beef14e..e131242 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -302,7 +302,7 @@ dependencies = [ [[package]] name = "nanoq" -version = "0.8.1" +version = "0.8.2" dependencies = [ "anyhow", "assert_cmd", diff --git a/Cargo.toml b/Cargo.toml index fba4cba..83783a6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "nanoq" -version = "0.8.1" +version = "0.8.2" authors = ["esteinig ", "ljmcoin "] description = "Minimal but speedy quality control and summaries of nanopore reads" documentation = "https://github.com/esteinig/nanoq" diff --git a/README.md b/README.md index ec2d2ef..814571e 100644 --- a/README.md +++ b/README.md @@ -2,14 +2,14 @@ [![build](https://github.com/esteinig/nanoq/actions/workflows/rust-ci.yaml/badge.svg?branch=master)](https://github.com/esteinig/nanoq/actions/workflows/rust-ci.yaml) [![codecov](https://codecov.io/gh/esteinig/nanoq/branch/master/graph/badge.svg?token=1X04YD8YOE)](https://codecov.io/gh/esteinig/nanoq) -![](https://img.shields.io/badge/version-0.8.1-black.svg) +![](https://img.shields.io/badge/version-0.8.2-black.svg) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.3707754.svg)](https://doi.org/10.5281/zenodo.3707754) Ultra-fast quality control and summary reports for nanopore reads ## Overview -**`v0.8.1`** +**`v0.8.2`** - [Purpose](#purpose) - [Install](#install) @@ -38,7 +38,7 @@ nanoq -h #### `Conda` ``` -conda install -c bioconda nanoq=0.8.1 +conda install -c bioconda nanoq=0.8.2 nanoq -h ``` @@ -54,7 +54,7 @@ docker run esteinig/nanoq Precompiled binaries for Linux and MacOS are attached to the latest release. ``` -VERSION=0.8.1 +VERSION=0.8.2 RELEASE=nanoq-${VERSION}-x86_64-unknown-linux-musl.tar.gz wget https://github.com/esteinig/nanoq/releases/download/${VERSION}/${RELEASE} @@ -118,7 +118,7 @@ done ### Parameters ``` -nanoq 0.8.1 +nanoq 0.8.2 Read filters and summary reports for nanopore data @@ -221,7 +221,7 @@ Tools: * `nanostat=1.5.0` * `nanofilt=2.8.0` * `filtlong=0.2.1` -* `nanoq=0.8.1` +* `nanoq=0.8.2` Commands used for `stats` task: diff --git a/src/utils.rs b/src/utils.rs index dd91640..497b242 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -95,8 +95,8 @@ impl ReadSet { reads = self.reads(), bases = self.bases(), n50 = self.n50(), - longest = length_range[0], - shortest = length_range[1], + longest = length_range[1], + shortest = length_range[0], mean = self.mean_length(), median = self.median_length(), meanq = self.mean_quality(), @@ -122,8 +122,8 @@ impl ReadSet { reads = self.reads(), bases = self.bases(), n50 = self.n50(), - longest = length_range[0], - shortest = length_range[1], + longest = length_range[1], + shortest = length_range[0], mean = self.mean_length(), median = self.median_length(), meanq = self.mean_quality(),