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

ValueError: could not convert string to float: X #3

Closed
stanedav opened this issue Mar 1, 2017 · 5 comments
Closed

ValueError: could not convert string to float: X #3

stanedav opened this issue Mar 1, 2017 · 5 comments

Comments

@stanedav
Copy link

stanedav commented Mar 1, 2017

Hello, I am trying to run your tool with this command:
./InterVar.py -b hg19 --table_annovar='/annovar/table_annovar.pl' --convert2annovar='/annovar/convert2annovar.pl' --annotate_variation='/annovar/annotate_variation.pl' -i '/vcf_wes/sample.vcf' --input_type=VCF -o '/vcf_wes/sample_output'

After few moment I am getting this error:
``
NOTICE: Multianno output file is written to /home/lab/galaxy-Win-Lin/David/vcf_wes/6788_output.hg19_multianno.txt
Notice: Begin the variants interpretation by InterVar

Traceback (most recent call last):

File "./InterVar.py", line 2022, in
main()

File "./InterVar.py", line 1996, in main
sum2=my_inter_var(annovar_outfile)

File "./InterVar.py", line 1771, in my_inter_var
intervar_bp=assign(BP,line,Freqs_flgs,Funcanno_flgs,Allels_flgs)

File "./InterVar.py", line 1599, in assign
PM2=check_PM2(line,Freqs_flgs,Allels_flgs,Funcanno_flgs,mim2gene_dict,mim2gene_dict2)

File "./InterVar.py", line 1055, in check_PM2
if(cls[Freqs_flgs[key]]!='.' and float(cls[Freqs_flgs[key]])>=cutoff_maf):
ValueError: could not convert string to float: X
``

In attachment you can see few lines of my vcf,
error_intervar.txt

Can you help? Thank you in advancei

@quanliustc
Copy link
Collaborator

quanliustc commented Mar 1, 2017 via email

@quanliustc
Copy link
Collaborator

please update the intervar. The value error has been fixed for this issue.

@stanedav
Copy link
Author

stanedav commented Mar 1, 2017 via email

@yinbinqiu
Copy link

Hello, I am using intervar (2021-8-update), annovar (Version: $Date: 2020-06-07), but the above error still occurs, how can I solve it?

@WhiteKnightZMA
Copy link

please update the intervar. The value error has been fixed for this issue.

Hello, I have the same error with the latest Intervar version.

Notice: Begin the variants interpretation by InterVar
Traceback (most recent call last):
File "./Intervar.py", line 2126, in
main()
File "./Intervar.py", line 2095, in main
sum2=my_inter_var(annovar_outfile)
File "./Intervar.py", line 1844, in my_inter_var
intervar_bp=assign(BP,line,Freqs_flgs,Funcanno_flgs,Allels_flgs)
File "./Intervar.py", line 1715, in assign
BP7=check_BP7(line,Funcanno_flgs,Allels_flgs)
File "./Intervar.py", line 1627, in check_BP7
if float(cls[Funcanno_flgs['dbscSNV_RF_SCORE']])<0.6 and float(cls[Funcanno_flgs['dbscSNV_ADA_SCORE']])<0.6:
ValueError: could not convert string to float: X

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

4 participants