Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Klinische Genetica
capture-lumc
hutspot
Commits
aeb6fb29
Commit
aeb6fb29
authored
Feb 26, 2018
by
Sander Bollen
Browse files
shorten if statement
parent
ba6326e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/seqtk.py
View file @
aeb6fb29
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment