Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with MSFragger interface with Koina Server #1775

Open
BenSamy2020 opened this issue Sep 9, 2024 · 22 comments
Open

Issue with MSFragger interface with Koina Server #1775

BenSamy2020 opened this issue Sep 9, 2024 · 22 comments
Assignees

Comments

@BenSamy2020
Copy link

BenSamy2020 commented Sep 9, 2024

Greetings @fcyu,

I am experiancing the error of: {"error":"in ensemble 'Prosit_2020_intensity_HCD', Failed to process the request(s) for model instance 'Prosit_Preprocess_charge', message: IndexError: index 6 is out of bounds for axis 0 with size 6\n\nAt:\n /models/repo/Prosit_Preprocess_charge/1/model.py(14): indices_to_one_hot\n /models/repo/Prosit_Preprocess_charge/1/model.py(18): \n /models/repo/Prosit_Preprocess_charge/1/model.py(18): to_on_hot\n /models/repo/Prosit_Preprocess_charge/1/model.py(37): execute\n"}

Have attatched the log files here for your reference.
log_2024-09-09_08-42-57.txt

Please do advise me on how to troubleshoot, thank you.

I am not sure if I should post this issues here, if its need to be reported to Koina Server team, please do let me know.

@fcyu
Copy link
Member

fcyu commented Sep 9, 2024

I will let Kevin @yangkl96 answer the Koina question.

Best,

Fengchao

@BenSamy2020
Copy link
Author

Thank you @fcyu.

Regards,
Ben

@yangkl96
Copy link
Member

yangkl96 commented Sep 9, 2024

Hi Ben,

This error is caused by peptides with charges higher than 6 not being properly filtered out during Prosit's NCE calibration. This error is fixed in the newest MSBooster here: https://www.dropbox.com/scl/fo/sioaysait4lkbdkvk5bn6/AKGomsKTlP6fSup8nnL43YE?rlkey=3k61o6l0o2wsg3m5ml2buv4f1&st=uo0bx12v&dl=0

Please let me know if this fixes the error.

Thanks for your bug reporting,
Kevin

@BenSamy2020
Copy link
Author

Greetings @yangkl96,

I am still facing issues with MSBooster.

Error: Could not find or load main class Features.MainClass
Caused by: java.lang.ClassNotFoundException: Features.MainClass
Process 'MSBooster' finished, exit code: 1
Process returned non-zero exit code, stopping

log_2024-09-11_12-59-55.txt

@yangkl96
Copy link
Member

My apologies, I forgot the newest MSBooster is only compatible with the newest FragPipe prerelease. I've added the new FragPipe to the Dropbox folder above. Just copy MSBooster-1.2.52.jar to the tools folder

@BenSamy2020
Copy link
Author

Can I delete the older MSBooster version?

@yangkl96
Copy link
Member

Yes

@BenSamy2020
Copy link
Author

BenSamy2020 commented Sep 12, 2024

I am having issues with the3 step of:

2024-09-12 12:26:56 [ERROR] - {"error":"in ensemble 'Prosit_2019_intensity', Failed to process the request(s) for model instance 'Prosit_Preprocess_peptide', message: TypeError: object of type 'NoneType' has no len()\n\nAt:\n /models/repo/Prosit_Preprocess_peptide/1/sequence_conversion.py(72): character_to_array\n /models/repo/Prosit_Preprocess_peptide/1/model.py(25): \n /models/repo/Prosit_Preprocess_peptide/1/model.py(25): execute\n"}
2024-09-12 12:26:56 [ERROR] - D:\MSFragger_Temp\Healthy_Pre_Post_Exercise\Output_LFQ-MBR_MOD_1\SLAS1_UNKNOWN_CANCER_FEMALE_272\best_model\Pr
log_2024-09-12_12-32-27.txt

@BenSamy2020
Copy link
Author

Can the Koina serve models handle these modification:
image

@yangkl96
Copy link
Member

Only AlphaPeptDeep will be able to support the modifications such as C-terminal PTMs and carbamidomethylation of noncysteine amino acids, since it attempts to predict all PTMs in UniMod. I have previously not tested MSBooster for C-terminal modifications, hence the errors. Do you mind sharing with me one mzml and its associated pin file? I can make the necessary changes and send you a working version.

@BenSamy2020
Copy link
Author

Hi, please share dropbox link. thanks

@BenSamy2020
Copy link
Author

Also, I suggest adding a warning or stop message upon clicking the start run button of the GUI to remind users that mods that are not trained on prosit cannot be utilised.

@fcyu
Copy link
Member

fcyu commented Sep 13, 2024

It can. I think MSBooster will strip the PTMs that the model doesn't support and shift the peaks after getting the predicted spectra.

Best,

Fengchao

@yangkl96
Copy link
Member

Here is the request link: https://www.dropbox.com/request/c9sgqiJOUG1EqZb0AYx0

Thanks for the suggestion, I can add a warning or documentation.

@BenSamy2020
Copy link
Author

Hi @yangkl96,

Done thank you.

@BenSamy2020
Copy link
Author

Hi can I get an update on this thank you.

@yangkl96
Copy link
Member

I am making some final changes and should have a new version for you by tomorrow

@yangkl96
Copy link
Member

Hi Ben,

Thanks for your patience. Can you try out the newest version 1.2.56 here?

@fcyu fcyu closed this as completed Sep 29, 2024
@BenSamy2020
Copy link
Author

Greeting @yangkl96 ,

Please share the file again, thank you.

Regards,
Ben

@yangkl96
Copy link
Member

@BenSamy2020
Copy link
Author

log_2024-10-22_00-29-18.txt

Greetings @yangkl96,

I am still facing issue with MSBooster.

Operating on slice 10 of 10:
Fragment index slice generated in 77.54 s
001. SLAS2_1845_DIABETES-MELLITUS.mzBIN_calibrated 0.2 s
[progress: 31545/31669 (100%) - 3140 spectra/s]​
[progress: 31669/31669 (100%) - 2988 spectra/s] 10.6s
Building spectral index for the mzBIN_calibrated file 34.3 s
Rescoring with peak tracing 7.4 s
Picking top PSMs for each precursor 0.1 s
Rescoring 1.2 s
Writing results 0.6 s
MAIN SEARCH DONE IN 16.080 MIN

TOTAL TIME 17.322 MIN*
Process 'MSFragger' finished, exit code: 0
MSFragger move pepxml
D:\FragPipe-jre-22.0\jre\bin\java.exe -cp D:\FragPipe-jre-22.0\lib\fragpipe-22.0.jar;/D:/FragPipe-jre-22.0/lib/commons-io-2.15.1.jar com.github.chhh.utils.FileMove --no-err D:\MSFragger_Temp\Healthy_Pre_Post_Exercise\SLAS2_1845_DIABETES-MELLITUS_rank1.pepXML D:\MSFragger_Temp\Healthy_Pre_Post_Exercise\Output_LFQ-MBR_OpenProt_2\SLAS2_NON_CANCER_282\SLAS2_1845_DIABETES-MELLITUS_rank1.pepXML
Process 'MSFragger move pepxml' finished, exit code: 0
MSFragger move pepxml
D:\FragPipe-jre-22.0\jre\bin\java.exe -cp D:\FragPipe-jre-22.0\lib\fragpipe-22.0.jar;/D:/FragPipe-jre-22.0/lib/commons-io-2.15.1.jar com.github.chhh.utils.FileMove --no-err D:\MSFragger_Temp\Healthy_Pre_Post_Exercise\SLAS2_1845_DIABETES-MELLITUS_rank2.pepXML D:\MSFragger_Temp\Healthy_Pre_Post_Exercise\Output_LFQ-MBR_OpenProt_2\SLAS2_NON_CANCER_282\SLAS2_1845_DIABETES-MELLITUS_rank2.pepXML
Process 'MSFragger move pepxml' finished, exit code: 0
MSFragger move pepxml
D:\FragPipe-jre-22.0\jre\bin\java.exe -cp D:\FragPipe-jre-22.0\lib\fragpipe-22.0.jar;/D:/FragPipe-jre-22.0/lib/commons-io-2.15.1.jar com.github.chhh.utils.FileMove --no-err D:\MSFragger_Temp\Healthy_Pre_Post_Exercise\SLAS2_1845_DIABETES-MELLITUS_rank3.pepXML D:\MSFragger_Temp\Healthy_Pre_Post_Exercise\Output_LFQ-MBR_OpenProt_2\SLAS2_NON_CANCER_282\SLAS2_1845_DIABETES-MELLITUS_rank3.pepXML
Process 'MSFragger move pepxml' finished, exit code: 0
MSFragger move pepxml
D:\FragPipe-jre-22.0\jre\bin\java.exe -cp D:\FragPipe-jre-22.0\lib\fragpipe-22.0.jar;/D:/FragPipe-jre-22.0/lib/commons-io-2.15.1.jar com.github.chhh.utils.FileMove --no-err D:\MSFragger_Temp\Healthy_Pre_Post_Exercise\SLAS2_1845_DIABETES-MELLITUS_rank4.pepXML D:\MSFragger_Temp\Healthy_Pre_Post_Exercise\Output_LFQ-MBR_OpenProt_2\SLAS2_NON_CANCER_282\SLAS2_1845_DIABETES-MELLITUS_rank4.pepXML
Process 'MSFragger move pepxml' finished, exit code: 0
MSFragger move pepxml
D:\FragPipe-jre-22.0\jre\bin\java.exe -cp D:\FragPipe-jre-22.0\lib\fragpipe-22.0.jar;/D:/FragPipe-jre-22.0/lib/commons-io-2.15.1.jar com.github.chhh.utils.FileMove --no-err D:\MSFragger_Temp\Healthy_Pre_Post_Exercise\SLAS2_1845_DIABETES-MELLITUS_rank5.pepXML D:\MSFragger_Temp\Healthy_Pre_Post_Exercise\Output_LFQ-MBR_OpenProt_2\SLAS2_NON_CANCER_282\SLAS2_1845_DIABETES-MELLITUS_rank5.pepXML
Process 'MSFragger move pepxml' finished, exit code: 0
MSFragger move pin
D:\FragPipe-jre-22.0\jre\bin\java.exe -cp D:\FragPipe-jre-22.0\lib\fragpipe-22.0.jar;/D:/FragPipe-jre-22.0/lib/commons-io-2.15.1.jar com.github.chhh.utils.FileMove --no-err D:\MSFragger_Temp\Healthy_Pre_Post_Exercise\SLAS2_1845_DIABETES-MELLITUS.pin D:\MSFragger_Temp\Healthy_Pre_Post_Exercise\Output_LFQ-MBR_OpenProt_2\SLAS2_NON_CANCER_282\SLAS2_1845_DIABETES-MELLITUS.pin
Process 'MSFragger move pin' finished, exit code: 0
MSBooster [Work dir: D:\MSFragger_Temp\Healthy_Pre_Post_Exercise\Output_LFQ-MBR_OpenProt_2]
D:\FragPipe-jre-22.0\jre\bin\java.exe -Xmx120G -cp D:\FragPipe-jre-22.0\tools\MSBooster-1.2.59.jar;D:\FragPipe-jre-22.0\tools\batmass-io-1.33.4.jar Features.MainClass --paramsList D:\MSFragger_Temp\Healthy_Pre_Post_Exercise\Output_LFQ-MBR_OpenProt_2\msbooster_params.txt
Error: Could not find or load main class Features.MainClass
Caused by: java.lang.ClassNotFoundException: Features.MainClass
Process 'MSBooster' finished, exit code: 1
Process returned non-zero exit code, stopping

Cancelling 2063 remaining tasks

@yangkl96
Copy link
Member

@yangkl96 yangkl96 reopened this Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants