Closed liliblu closed 11 months ago
The issue is that when 'alleles' parameter is a dict then the values must be lists of alleles not strings. So this should work:
predictions = predictor.predict(
peptides=['LAMDEFIERY'],
alleles={'samp_0': ['HLA-A01:01']},
sample_names=['samp_0'],
)
or, simpler:
predictions = predictor.predict(
peptides=['LAMDEFIERY'],
alleles=['HLA-A01:01'],
)
This is a very confusing error though and we should fix it to throw a better error message.
That explains it! Thank you so much!
Hello,
I'm getting a very confusing error that probably has something to do with my configuration, since it is such a basic thing I am trying to run and I couldn't find any previous similar issues. I was hoping that you might be able to point me in the right direction.
When submitting alleles to the Class1PresentationPredictor.predict() method, the HLAs are not parsing correctly. E.g.:
Here is the traceback I get:
However, when I just directly try to parse the exact same string with mhcgnomes, it works fine:
Result:
Any guidance or help you could provide would be very appreciated, thank you!