Closed toddknutson closed 3 months ago
Hi @toddknutson,
As for the AlleleNotFoundError
issue, I'm not able to replicate it:
(fuc) sbslee@Seung-beens-MacBook-Air ~ % pypgx -v
pypgx 0.25.0
(fuc) sbslee@Seung-beens-MacBook-Air ~ % python
Python 3.10.14 | packaged by conda-forge | (main, Mar 20 2024, 12:53:34) [Clang 16.0.6 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pypgx
>>> pypgx.get_function('CYP2D6', '*1')
'Normal Function'
>>> pypgx.get_function('NAT2', '*12')
'Unknown Function'
>>> pypgx.get_function('NAT2', 'THIS_ALLELE_DOES_NOT_EXIST')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/anaconda3/envs/fuc/lib/python3.10/site-packages/pypgx/api/core.py", line 483, in get_function
raise sdk.utils.AlleleNotFoundError(gene, allele)
pypgx.sdk.utils.AlleleNotFoundError: ('NAT2', 'THIS_ALLELE_DOES_NOT_EXIST')
Which pypgx
version are you currently using? As you can see above, I've used the latest version (v0.25.0) for the example.
And if I understood your question correctly, you have successfully run the PyPGx pipeline on the same samples before and the issue suddenly appeared, right? This tells me that you or someone in your team may have (accidentally) modified the allele-table.csv
file, specifically NAT2*12
. Check the last modified time for the file.
Thank you for informing me of the recent change in the NAT2 nomenclature. I will take a look at this and try to reflect this change to PyPGx ASAP. However, please note that this change is not related to the issue at hand, unless as I mentioned above the local copy of the allele-table.csv
file was modified somehow.
Hope this helps.
Hi @sbslee
Thanks for your quick reply! I will investigate my allele-table.csv. Yes, it just started happening without any changes to my code, so I think your suggestion is probably correct. I am using version 0.25.0 (for both tool and bundle). I'll test later today. Since you cannot reproduce it, I'll close this issue and just add a comment if I realize my problem. Thanks again!
Yes, you were correct! The allele-table.csv was modified and that caused the issue. I restored the original table and it works as expected. 👏
Hi,
I have been running the
pypgx run-ngs-pipeline
in a loop for many genes, including NAT2. I have processed the same samples multiple times (for testing purposes) and I have not had a problem with NAT2. Today, I am getting the error below. Have you seen this before? I'm not really sure how to troubleshoot the issue?I also noticed that the nomenclature for NAT2 has changed (the Reference allele 12 has been reassigned to 1). Could this have any possible impact? I still see *12 in the allele-table.csv within pypgx. https://nat.mbg.duth.gr/Human_NAT2_alleles.htm https://www.pharmgkb.org/gene/PA18
Thanks a lot for your helpful tool!!
FYI, below is a list of the consolidated variants: