From 8701a22fe6ac688cd4b2f47ab3a29b43bb2d0168 Mon Sep 17 00:00:00 2001 From: Blaise Li <blaise.li__git@nsup.org> Date: Tue, 6 Oct 2020 09:55:25 +0200 Subject: [PATCH] Wrong string type. --- smwrappers/explore_mapping_parameters/wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smwrappers/explore_mapping_parameters/wrapper.py b/smwrappers/explore_mapping_parameters/wrapper.py index 0cebcfc..75a8236 100644 --- a/smwrappers/explore_mapping_parameters/wrapper.py +++ b/smwrappers/explore_mapping_parameters/wrapper.py @@ -67,7 +67,7 @@ with NamedTemporaryFile() as fastq, NamedTemporaryFile() as rates_record: (best_rate, best_settings) = max( (float(rate), settings) for (rate, settings) - in map(str.split, rates_record)) + in map(bytes.split, rates_record)) with open(snakemake.output.mapping_params, "w") as fh: fh.write(f"{best_params}\t({best_rate}%%)\n") -- GitLab