Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am merrbii on github.
  • I am siimoo (https://keybase.io/siimoo) on keybase.
  • I have a public key ASBrYh8wuYD7vWGNzLLPlg4D8Fhq3GFt4grGPJGyVozJ5Ao

To claim this, I am signing this object:

@merrbii
merrbii / BCFtools cheat sheet
Created October 28, 2021 23:40 — forked from elowy01/BCFtools cheat sheet
BCFtools cheat sheet
*bcftools filter
*Filter variants per region (in this example, print out only variants mapped to chr1 and chr2)
qbcftools filter -r1,2 ALL.chip.omni_broad_sanger_combined.20140818.snps.genotypes.hg38.vcf.gz
*printing out info for only 2 samples:
bcftools view -s NA20818,NA20819 filename.vcf.gz
*printing stats only for variants passing the filter:
bcftools view -f PASS filename.vcf.gz