Skip to content

Instantly share code, notes, and snippets.

@danielecook
Created February 7, 2020 17:56
Show Gist options
  • Save danielecook/f73345461bc6e6535ab0505906ddc125 to your computer and use it in GitHub Desktop.
Save danielecook/f73345461bc6e6535ab0505906ddc125 to your computer and use it in GitHub Desktop.
vcf makefile
$(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