bcftools – How can I retrieve the GRCh38 coordinates of a list of rsids?

I have a list of about 100,000 rsids and I want to get their genomic coordinates on the GRCh38 genome build. Is there a command line tool that allows me to do this? If yes, which one?

I have tried bcftools but, given the error message I got, I believe that it does not support search by rsid:

bcftools view -R rsids_chr1_subset.txt -f PASS -v snps dbSNP_v156_GRCh38.p14.vcf.gz > rsids_chr1.vcf
[E::bcf_sr_regions_init] Could not parse 1-th line of file rsids_chr1_subset.txt, using the columns 1,2[,-1]
Failed to read the regions: rsids_chr1_subset.txt

Read more here: Source link