Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error for annotating chromosome and bp by rsID #250

Open
ruuhsu opened this issue Aug 15, 2024 · 1 comment
Open

Error for annotating chromosome and bp by rsID #250

ruuhsu opened this issue Aug 15, 2024 · 1 comment

Comments

@ruuhsu
Copy link

ruuhsu commented Aug 15, 2024

Hello,

I recently encountered an error when trying to use 'convert2annovar.pl' to find CHR and POS by a list of rsID. The script I used showing below:

perl convert2annovar.pl -format rsid sID.txt -dbsnpfile humandb/hg38_avsnp151.txt > snplist.avinput

The error showing below:
NOTICE: Scanning dbSNP file humandb/hg38_avsnp151.txt...
Use of uninitialized value $class in string eq at convert2annovar.pl line 1048, line 1.

Wondering if there's an error in the convert2annovar.pl file. I made sure my rsID list in the same formate as the example rsID file.

Thank you!

@wangwpi
Copy link
Collaborator

wangwpi commented Oct 13, 2024

Hi, you can try to use -avsnpfile instead of -dbsnpfile since you are searching the avsnp database.
So the command could be: perl convert2annovar.pl -format rsid sID.txt -avsnpfile humandb/hg38_avsnp151.txt > snplist.avinput

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants