Skip to content
Snippets Groups Projects
Commit aeb6fb29 authored by Sander Bollen's avatar Sander Bollen
Browse files

shorten if statement

parent ba6326e9
No related branches found
No related tags found
1 merge request!2Review comments
......@@ -23,9 +23,7 @@ from snakemake import shell
def subsample(json_path, fastq_path, opath, max_bases):
with open(json_path) as handle:
bases = json.load(handle)['bases']
if max_bases == "":
frac = 100
elif max_bases is None:
if max_bases == "" or max_bases is None:
frac = 100
else:
frac = int(max_bases) / float(bases)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment