Skip to content
Snippets Groups Projects

Merge testing into master

Merged van den Berg requested to merge testing into devel
All threads resolved!
Files
4
+ 3
3
@@ -35,11 +35,11 @@ from .gcoverage import RefRecord, region_coverages
@click.option("-s", "--stats", type=click.Path(writable=True),
help="Path to output stats json file")
@click.option("-dvcf", "--discordant-vcf", type=click.Path(writable=True),
help="Path to output discordant VCF file",
help="Path to output gzipped discordant vcf file",
required=False)
@click.option("-mq", "--min-qual", type=float,
help="Minimum quality of variants to consider", default=30)
@click.option("-md", "--min-depth", type=float,
@click.option("-md", "--min-depth", type=int,
help="Minimum depth of variants to consider", default=0)
def evaluate_cli(call_vcf, positive_vcf, call_samples, positive_samples,
min_qual, min_depth, stats, discordant_vcf):
@@ -52,7 +52,7 @@ def evaluate_cli(call_vcf, positive_vcf, call_samples, positive_samples,
print(json.dumps(st))
else:
with click.open_file(stats, 'w') as fout:
print(json.dumps(st), file=fout)
fout.write(json.dumps(st))
# If there were discordand records, and a discordant-vcf should be written
if len(disc) > 0 and discordant_vcf:
Loading