From 7f7f2f983f6664f9878e31f27ce34c6f92aa0b58 Mon Sep 17 00:00:00 2001 From: Remi-Andre Olsen Date: Fri, 16 Feb 2024 10:37:19 +0100 Subject: [PATCH 1/3] Fixed bug in lenient mode selection of best orientation --- anglerfish/anglerfish.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anglerfish/anglerfish.py b/anglerfish/anglerfish.py index 5a2014a..006c158 100755 --- a/anglerfish/anglerfish.py +++ b/anglerfish/anglerfish.py @@ -128,7 +128,7 @@ def run_demux(args): adaptors_sorted[key], fragments, args.max_distance, **rev ) flipped[flip] = (rc_matches, rc_no_matches, len(rc_matches)) - best_flip = max(zip(flipped.values(), flipped.keys()))[1] + best_flip = max(flipped, key=lambda k: flipped[k][2]) # There are no barcode flips with unambiguously more matches, so we abort if ( From b6f3861a1ead11152ca14f8055c7cefa6451048d Mon Sep 17 00:00:00 2001 From: Remi-Andre Olsen Date: Fri, 16 Feb 2024 12:44:06 +0100 Subject: [PATCH 2/3] Change to mambauser last --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 53aad9f..3e20f62 100644 --- a/Dockerfile +++ b/Dockerfile @@ -55,5 +55,5 @@ RUN eval "$(micromamba shell hook --shell bash)" && python -m pip install -e .[d # Main ##### FROM base as main -USER $MAMBA_USER -RUN eval "$(micromamba shell hook --shell bash)" && python -m pip install .[dev] \ No newline at end of file +RUN eval "$(micromamba shell hook --shell bash)" && python -m pip install .[dev] +USER $MAMBA_USER \ No newline at end of file From 991b3d2469a335b3d8bdcd5da79c0abfbb477f6e Mon Sep 17 00:00:00 2001 From: Remi-Andre Olsen Date: Fri, 16 Feb 2024 12:46:28 +0100 Subject: [PATCH 3/3] Change version to release --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3cf86dd..3102168 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ this_directory = Path(__file__).parent long_description = (this_directory / "README.md").read_text() -version = "0.6.1-dev" +version = "0.6.1" setup( name="bio-anglerfish",