Skip to content

Commit

Permalink
Fix error in genome length
Browse files Browse the repository at this point in the history
Scope of variable wrong in 267b913
  • Loading branch information
johnlees committed Jun 27, 2019
1 parent 267b913 commit 1ff2903
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PopPUNK/mash.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def constructDatabase(assemblyList, klist, sketch, oPrefix, ignoreLengthOutliers
input_genome_length = 0
for line in exampleAssembly:
if line[0] != ">":
genome_length += len(line.rstrip())
input_genome_length += len(line.rstrip())
input_lengths.append(input_genome_length)
input_names.append(assembly)

Expand Down

0 comments on commit 1ff2903

Please sign in to comment.