Bcftools allele frequency
1
0
Entering edit mode
3.9 years ago
switch.reem ▴ 40

Dear all

Can you please help me analysing a VCF file. I want to use bcftools isec option to check the difference in values in allele frequency for two VCF files at common locations. So can you please help me with the parameters?

vcf bcftools allel isec • 2.7k views
ADD COMMENT
1
Entering edit mode
3.9 years ago
 join -t, -1 1 -2 1  \
           <(bcftools query -f '%CHROM-%POS-%REF-%ALT,%INFO/AF\n' input1.vcf | sort -t, -k1,1)  \
           <(bcftools query -f '%CHROM-%POS-%REF-%ALT,%INFO/AF\n' input2.vcf | sort -t, -k1,1)
ADD COMMENT
0
Entering edit mode

Thank you so much. So this will extract the allele frequency in the two vcf files based on matching positions? But how do I find if their values are different?

ADD REPLY
1
Entering edit mode
awk -F, '($2!=$3)'
ADD REPLY
0
Entering edit mode

Thank you so much. This is very useful

ADD REPLY
0
Entering edit mode

It it answered your question , please validate (green mark on the left) to close the question.

ADD REPLY

Login before adding your answer.

Traffic: 1763 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