Counting allele counts/frequencies from a vcf file with both cases and controls
1
0
Entering edit mode
4.1 years ago
tacrolimus ▴ 140

Dear Biostars members,

I a multi-sample vcf which has been annotated with VEP. The vcf has both cases and controls. I would like to know the allele counts and frequencies for cases vs controls.

I am able to use bcftools to pull the relevant fields but was wondering if there was a way of feeding it a case control label and it giving me a split of the results based from this rather than dividing the vcf into cases and controls and then running the analysis separately?

Many thanks for your time

bcftools allele count vep • 1.8k views
ADD COMMENT
0
Entering edit mode

You can create 2 one-sample-ID-per-line files of case IDs and control IDs and use them with the -S parameter available in many bcftools sub-tools.

ADD REPLY
0
Entering edit mode
2.7 years ago
Paolo • 0

This is the aim of https://pcingola.github.io/SnpEff/ss_casecontrol/

ADD COMMENT

Login before adding your answer.

Traffic: 2234 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6