Created
February 7, 2020 17:56
-
-
Save danielecook/f73345461bc6e6535ab0505906ddc125 to your computer and use it in GitHub Desktop.
vcf makefile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(patsubst %.vcf,%.vcf.gz,$(wildcard */*.vcf)) \ | |
$(patsubst %.vcf.gz,%.vcf.gz.csi,$(wildcard */*.vcf.gz)) | |
# Gzip VCFs and index if not present | |
%.vcf.gz: %.vcf | |
# gzipping $< | |
bcftools view --output-type z $< > $@ | |
%.vcf.gz.csi: %.vcf.gz | |
bcftools index $< |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment