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

print seqtk command

parent 00907053
No related branches found
No related tags found
No related merge requests found
......@@ -25,15 +25,19 @@ def subsample(json_path, fastq_path, opath, max_bases):
bases = json.load(handle)['bases']
if max_bases == "":
frac = 100
elif max_bases is None:
frac = 100
else:
frac = max_bases / float(bases)
frac = int(max_bases) / float(bases)
if frac > 1:
if frac >= 1:
cmd = "ln -s {0} {1}".format(fastq_path, opath)
else:
cmd = "seqtk sample -s100 {0} {1} | gzip -c > {2}".format(fastq_path,
frac,
opath)
print("executing")
print(cmd)
shell(cmd)
......
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