compomics / DeepLC

DeepLC: Retention time prediction for (modified) peptides using Deep Learning.
https://iomics.ugent.be/deeplc
Apache License 2.0
52 stars 18 forks source link

I cannot run it on website when my file getting bigger #55

Closed hetaofan closed 1 year ago

hetaofan commented 1 year ago

When I only read the first 100 lines of the file, it ran smoothly, but when I read all the file data, an error occurred.

this is traceback: KeyError: 'Se' Traceback: File "/deeplc/deeplc_streamlit.py", line 173, in _run_deeplc preds = dlc.make_preds(seq_df=config["input_df"], calibrate=calibrate) File "/usr/local/lib/python3.10/site-packages/deeplc/deeplc.py", line 634, in make_preds X = self.do_f_extraction_psm_list_parallel(psm_list) File "/usr/local/lib/python3.10/site-packages/deeplc/deeplc.py", line 443, in do_f_extraction_psm_list_parallel all_feats = self.do_f_extraction_psm_list(psm_list) File "/usr/local/lib/python3.10/site-packages/deeplc/deeplc.py", line 409, in do_f_extraction_psm_list return self.f_extractor.full_feat_extract(psm_list) File "/usr/local/lib/python3.10/site-packages/deeplc/feat_extractor.py", line 664, in full_feat_extract X_cnn = self.encode_atoms( # X_sum, X_cnn_pos, X_cnn_count, X_hc File "/usr/local/lib/python3.10/site-packages/deeplc/feat_extractor.py", line 525, in encode_atoms matrix_pos[pn, dict_index_pos[atom]] = val

RobbinBouwmeester commented 1 year ago

Hi @hetaofan,

The issue likely has to do with modifications not properly being encoded. Can you maybe extract the line with the "Se" (selenium?) modification?

I also suspect it is indicated as an amino acid instead of a modification because of the place where it crashed.

Kind regards,

Robbin

RobbinBouwmeester commented 1 year ago

Hi,

I will close this issue for now.

Do not hesitate to reach out for additional help to: robbin.bouwmeester@ugent.be

Kind regards,

Robbin