updating SNP names in VCF file
2
0
Entering edit mode
4.6 years ago
mel22 ▴ 100

Hello How can I update SNP names from position (chr1:xxxxxx) to rs name in VCF file ? I have a reference VCF file with rs names and want to update my own data VCF file.

Thanks for your help

SNP RS names VCF • 2.9k views
ADD COMMENT
0
Entering edit mode

intersect sample vcf with reference vcf with bedtools or annotate with bcftools

ADD REPLY
2
Entering edit mode
4.6 years ago

dbSNP annotation can be added in the ID filed using the VariantAnnotator tool from GATK.

gatk  --java-options '-Xmx4G' \
   VariantAnnotator \
   -R /userdata/arup/hpcc_test/genome/hg38/hg38.fa \
   -V input.vcf.gz \
   -O output.vcf.gz \
   --dbsnp dbsnp.vcf.gz
ADD COMMENT
0
Entering edit mode

Thank you very much

ADD REPLY
2
Entering edit mode
4.6 years ago
Jimbou ▴ 960

you can also use SnpSift from the SnpEff package http://snpeff.sourceforge.net/SnpSift.html#annotate

 java -jar SnpSift.jar annotate dbSnp132.vcf input.vcf > output_annotated.vcf

check ftp://ftp.ncbi.nih.gov/snp/organisms/ for other dbSNP builds

ADD COMMENT
0
Entering edit mode

Thank you very much

ADD REPLY

Login before adding your answer.

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