how to extract unique snps in a vcf file by comparing with multiple vcf files
1
0
Entering edit mode
8 months ago
nikhil ▴ 20

how to extract unique snps in a vcf file by comparing with multiple vcf files and make a file with unique snps


EDIT by Ram

OP created anotehr post a couple of hours later with this information:

I want to extract unique SNPs in a single vcf file (IA.vcf.gz) compared with other 19 vcf files by following the command

bcftools isec -c snps -C IA.vcf.gz 502.vcf.gz 505.vcf.gz 90G.vcf.gz 91B.vcf.gz 93K.vcf.gz 93L.vcf.gz 98M.vcf.gz DM.vcf.gz Dw.vcf.gz IA.vcf.gz LE.vcf.gz MT.vcf.gz P10.vcf.gz PI34vcf.gz PI.vcf.gz PI3.vcf.gz PL.vcf.gz PLYGma-PI.vcf.gz R2.vcf.gz R.vcf.gz -p new100IACunique

Am I doing it right?

Thanks

bcftools SNP GATK VCF • 549 views
ADD COMMENT
0
Entering edit mode
8 months ago

use bcftools isec

ADD COMMENT
0
Entering edit mode

thank you, bcftools isec is working well.

ADD REPLY
0
Entering edit mode

so validate the answer to close the question please (Green tick on the left).

ADD REPLY

Login before adding your answer.

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