Fix the issue if the [transcript_support_level] provided to int could not be parsed as an integer#1248
Conversation
…nt() with base 10:]
|
@yiwen0823-dovey thank you for this pull request. I'm trying to understand the context of the error your encountered. Can you please provide more information about what command you tried to run when you encountered this error? Also, the error message seems to be cut off. Can you please provide the full error message? |
|
Thanks for getting back. The issue occurs when I was trying to run the Top Score Filter function within the pVACsplice, the complete error message are:
It seems the error is caused by some Transcript Support Level values being formatted as decimal numbers (e.g., '1.0') instead of integers (e.g., '1'). To prevent this issue, it might help to convert the value to a float before to an integer. |
|
I would like to investigate why this field is formatted as a float in your input file to begin with. I checked our test data and I don't see any decimals in this field. Has your input file been edited in some way from what pVACsplice produced? For example, loaded into Excel or pandas and then saved. Both of those could potentially edit the format of this field. A similar issue was reported here, for example, and was resolved by correctly reading in this field as a string. |
|
Closing this PR in favor of #1369 |
Top_score_filter.py Line 408:
ValueError: invalid literal for int() with base 10: ".
Solution: change the string to float fist then int.