Skip to content

Commit

Permalink
remove commas while parsing floats
Browse files Browse the repository at this point in the history
  • Loading branch information
dfornika committed Sep 9, 2024
1 parent 2ab0a84 commit 99c850b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/qualimap_bamqc_genome_results_to_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def parse_coverage_section(report_path):
key = key.strip().replace(' ', '_').replace('coverageData', 'coverage').lower()
value = value.strip()
if key in float_x_keys:
value = value.replace('X', '')
value = value.replace('X', '').replace(',', '')
value = float(value)
coverage_section[key] = value

Expand Down

0 comments on commit 99c850b

Please sign in to comment.