ddiem-ri-4D / epiTCR

epiTCR: a highly sensitive predictor for TCR–peptide binding
https://github.com/ddiem-ri-4D/epiTCR
MIT License
8 stars 4 forks source link

Describe the input file #7

Open ssuthram-gilead opened 7 months ago

ssuthram-gilead commented 7 months ago

I am trying to use this tool to predict whether a specific CDR3b sequence binds to an antigen. However, when I run the pedict.py with just this information, it throws an error. I don't have MHC or HLA information.

ssuthram-gilead commented 7 months ago

I am trying to run the prediction method and am getting the following error: File "/home/ssuthram/epiTCR/predict.py", line 35, in model_rf = pickle.load(open(modelfile, 'rb')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _pickle.UnpicklingError: A load persistent id instruction was encountered, but no persistent_load function was specified.

ddiem-ri-4D commented 7 months ago

The error you are encountering (_pickle.UnpicklingError: A load persistent id instruction was encountered, but no persistent_load function was specified.) suggests that there might be an issue with the pickled object that you are trying to load. This could be due to several reasons, including version mismatches or corruption of the pickled file.

Here are a few suggestions to debug and fix the issue:

from joblib import load
# Load model
model_rf = load(open(modelfile, 'rb'))

Hope this is helpful for you.

Best regards, Diễm

ilovegreentea commented 1 month ago

I am trying to use this tool to predict whether a specific CDR3b sequence binds to an antigen. However, when I run the pedict.py with just this information, it throws an error. I don't have MHC or HLA information.

how did you solve this? I' don't have MHC or HLA information too.

and can i use this with scTCR-seq?

ddiem-ri-4D commented 1 month ago

Hi @ilovegreentea

Has your issue been resolved?

ilovegreentea commented 1 month ago

@ddiem-ri-4D Thank you for asking.

I still haven't solved it

ddiem-ri-4D commented 1 month ago

Hi @ilovegreentea Could you show me the details of the error you are encountering?

ilovegreentea commented 1 month ago

@ddiem-ri-4D I didn't run yet, but when i see test data, there are CDR3b,epitope,HLA,binder,MHC but my data have only CDR3 sequence among them... is it possible to run this?

Colnames of my data below : "barcode" "sample" "TCR1" "cdr3_aa1" "cdr3_nt1" "TCR2" "cdr3_aa2" "cdr3_nt2" "CTgene" "CTnt" "CTaa" "CTstrict" "cellType"

Thank you for making great tool..

ddiem-ri-4D commented 1 month ago

Hi @ilovegreentea Sorry, but my input must include CDR3b, epitope, with or without HLA. If your input only includes TCR information, you can use other tools like TCRdist, ImmunoMap, TCRMatch, etc. Sorry, I haven't researched the scTCR-seq tool yet, so I can't recommend it to you. You might want to look into it; it might be suitable for you. In that case, your problem isn't really about predicting TCR-peptide binding anymore, is it? ^^

ilovegreentea commented 1 month ago

@ddiem-ri-4D I got it. Thank you for answering my stupid question.