From e129ca78a2b5bc814932d49edf843ef6adc1092c Mon Sep 17 00:00:00 2001 From: "kathleen.moriarty" <kathleen.moriarty@unibas.ch> Date: Wed, 8 Dec 2021 21:43:12 +0100 Subject: [PATCH] fixed: bug in line 85 --- src/read_sequencing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/read_sequencing.py b/src/read_sequencing.py index 2382f51..dfd7da9 100644 --- a/src/read_sequencing.py +++ b/src/read_sequencing.py @@ -82,7 +82,7 @@ def read_sequencing( if len(frag) < read_len: # Calculate number of random nucleotides to add to the end of the read - diff = read_len - read_len + diff = read_len - len(frag) # Select random nucleotides from list of possible rand_samp = choices(nucleotides, k=diff) -- GitLab