This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Annotate Ref/Alt for a list of rsIDs?

Hi,

I have a large list of rsIDs from dbSNP. I would like to get the ref/alt for each of the snps. What would be the best way of handling this? It's a VCF containing position and dbSNP id, but no ref/alt columns.

Thanks.

dbsnp snp

How large is large? Give us a number.

Also, I assume single species?

It's roughly 600k IDs. And yes, human.

1 answer

bcftools annotate -a dbsnp.vcf -c ID -o output.vcf input.vcf.compressed.indixed.vcf.gz should work

Log in to answer this question.