Skip to content

Instantly share code, notes, and snippets.

@liangyy
Created February 25, 2020 16:50
Show Gist options
  • Save liangyy/ef98ff7fd5701ee40ef4f05a0121c2df to your computer and use it in GitHub Desktop.
Save liangyy/ef98ff7fd5701ee40ef4f05a0121c2df to your computer and use it in GitHub Desktop.
Floating around script to convert VCF to PrediXcan format (for the old repo)
bcftools query -f query -f chr%CHROM\\t%ID\\t%POS\\t%REF\\t%ALT\\t%QUAL[\\t%DS]\\n test3_vcf.vcf.gz | gzip > test3_to_predixcan_format.gz
bcftools query -l test3_vcf.vcf.gz | tr '_' '\t' > test3_to_predixcan_format.sample
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment