Skip to content
Snippets Groups Projects
Commit 5d52f9cf authored by Floreal Cabanettes's avatar Floreal Cabanettes
Browse files

Fix genotype svtyper rule

parent fab1d9a0
No related branches found
No related tags found
1 merge request!7Svtyper parallel
......@@ -36,7 +36,8 @@ def launch(bamlist, input_vcf, output_vcf, threads):
vcf_in=input_vcf,
vcf_out=vcf_out,
cores=threads)
if run("bcftools sort -O z -o {ovcf} {ivcf}".format(ivcf=vcf_out, ovcf=output_vcf)).returncode == 0:
if run("bcftools sort -O z -o {ovcf} {ivcf}".format(ivcf=vcf_out, ovcf=output_vcf), shell=True)\
.returncode == 0:
os.remove(vcf_out)
tabix_index(output_vcf, force=True, preset="vcf")
else:
......
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