Releases: scholl-lab/sm-vcf-annotation
v1.2.2
Bug Fixes
-
Fix PeriodicWildcardError in scatter mode (#21, #22): Remove
.from thesamplewildcard constraint ([A-Za-z0-9_.-]+→[A-Za-z0-9_-]+). The dot allowed scattered filenames likesample.0000-scattered.annotated.vcf.gzto ambiguously match{sample}.annotated.vcf.gz, triggering infinite wildcard recursion during DAG resolution. This was the true root cause of the previously reported OOM failures — concat now completes in ~67 s using ~2 GB RAM. -
Fix empty Ts/Tv values in QC report (#23): Convert
snpsift_tstvandannotation_completenessfromrun:blocks withshell(read=True)toscript:directives usingsubprocess.run(capture_output=True). The old approach only captured stdout, but SnpSift may write results to stderr, producing empty values. The new scripts capture both streams with a stderr fallback, and also gain proper conda environment isolation. -
Clean up orphaned .tbi index files after scatter/gather (#24): Declare the
.tbiauto-created by GATK SelectVariants as a namedtemp()output onscatter_vcf, preventing ~1 GB of orphaned index files per cohort from persisting after concatenation.
v1.2.1
Bug Fixes
- Fix QC rules failing on SLURM (#19, #20): Replace
subprocess.run()/subprocess.Popen()with Snakemake'sshell(read=True)insnpsift_tstvandannotation_completenessrules. The subprocess calls spawned a/bin/shthat did not inherit the conda-activated PATH, causingSnpSift: command not foundandbcftools: command not founderrors when running via the SLURM executor.