Closed OlivierLangella closed 4 weeks ago
Hi! here are the instructions that should be in the documentation but are not yet (my mistake sorry):
A ProteoBench-compatible format is available in i2MassChroQ through the button “ProteoBench export”. It generates a tab-delimited file containing one row per quantified ion with all the information required for this module (column headers are: “rawfile”, “sequence”, “ProForma”, “charge”, “proteins” and “area”). Like with the other tools, the protein identifiers should be in the format “sp|P49327|FAS_HUMAN”. The ProteoBench export of i2MassChroQ also generates a single parameter file (.tsv) that is compatible with ProteoBench public upload. Link to the i2MassChroQ documentation here.
So what we did is that you should unzip the files, and first upload the quantified ions (this way you can visualise data locally without sending all the information publicly). Then, if you want to make the data public you can upload the parameter file as metadata and make you point public.
Does this make sense? Let me know if it is not clear and/or if it does not work :)
Hello ! ok thanks, as often, I didn't read the documentation ;) So trying to submit first the CSV file containing required columns, I get the error message below.
Perhaps the required code is not deployed.
Thanks for your help !
❌ Proteobench ran into a problem
FileNotFoundError: [Errno 2] No such file or directory: '/home/ubuntu/micromamba/envs/proteobench/lib/python3.12/site-packages/proteobench/io/parsing/io_parse_settings/parse_settings_i2masschroq.toml'
Traceback:
File "/mnt/data/git/ProteoBench/webinterface/pages/DDA_Quant_ion.py", line 238, in _run_proteobench
result_performance, all_datapoints, input_df = self.ionmodule.benchmarking(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/micromamba/envs/proteobench/lib/python3.12/site-packages/proteobench/modules/dda_quant_ion/module.py", line 36, in benchmarking
parse_settings = ParseSettingsBuilder().build_parser(input_format)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/micromamba/envs/proteobench/lib/python3.12/site-packages/proteobench/io/parsing/parse_settings_ion.py", line 34, in build_parser
parse_settings = toml.load(toml_file)
^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/micromamba/envs/proteobench/lib/python3.12/site-packages/toml/decoder.py", line 133, in load
with io.open(_getpath(f), encoding='utf-8') as ffile:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Yes, currently the build is failing and we are working on it...
Thank you for response, Sorry, but there is more or less the same error message when I try once more.
FileNotFoundError: [Errno 2] No such file or directory: '/home/ubuntu/micromamba/envs/proteobench/lib/python3.12/site-packages/proteobench/io/parsing/io_parse_settings/parse_settings_i2masschroq.toml'
Traceback:
File "/mnt/data/git/ProteoBench/webinterface/pages/DDA_Quant_ion.py", line 229, in _run_proteobench
result_performance, all_datapoints, input_df = self.ionmodule.benchmarking(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/micromamba/envs/proteobench/lib/python3.12/site-packages/proteobench/modules/dda_quant_ion/module.py", line 31, in benchmarking
parse_settings = ParseSettingsBuilder().build_parser(input_format)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/micromamba/envs/proteobench/lib/python3.12/site-packages/proteobench/io/parsing/parse_settings_ion.py", line 35, in build_parser
parse_settings = toml.load(toml_file)
^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/micromamba/envs/proteobench/lib/python3.12/site-packages/toml/decoder.py", line 133, in load
with io.open(_getpath(f), encoding='utf-8') as ffile:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The sample file is available here : https://cloud.cmb.ugent.be/index.php/s/zdGB3zZ7Fwed9gq?path=%2FModule_2_DDA_quantification%2Fsearch_results%2Fi2MassChroQ
as a zip file : proteobench_2pep_fdr01psm_fdr01prot_1_0_11.zip
it contains 2 tsv files called :
Perhaps I can get into the code, but I am not a first class python developer. I guess there must be all needed parsers because you have worked on it and this should work.
Many thanks for your help. I would be interested in giving a boost to proteobench at the next SMAP congress in Lille. It would be helpfull if i2MassChroQ DDA data could be shown.
Best wishes Olivier
Hi @OlivierLangella,
I think that it is working now, right? I get this plot (green dot = your test files).
Could you please try? And if the figure feels right to you, could you submit it publicly? Then you can submit as many runs as you'd like. Please let me know if you encounter any issue, I'd be happy to help out :)
@OlivierLangella we noticed that in old files, the column with the quantities was named "areanorm" and not "area". Does it mean that depending on the i2MassChroQ parameters it can be one or the other? Shall we be ready to parse both versions? Could it be that we have both "area" and "areanorm" in an output file?
Thank you very much @mlocardpaulet , it seems OK on the plot, so it should work, but I have this issue : `❌ Proteobench ran into a problem 🚨
Error parsing the inpu file: 'utf-8' codec can't decode byte 0xaf in position 12: invalid start byte`
when I try to upload my zip file proteobench_2pep_fdr01psm_fdr01prot_1_0_11.zip
No worry about the column name "area" vs "areanorm" : there will be only "area" for the proteobench export file in i2MassChroQ.
Hey! Great for the plot. For the public submission, I think that the issue is that we don't parse the zip file, but only the file Project parameters.tsv
. Is it OK with you? It works on my side.
We will try to make it clearer in the documentation.
So, when I upload the tsv file (proteobench_export.tsv) and fill in the parameter form by hand, I get this : `❌ Proteobench ran into a problem 🚨
'st.session_state has no key "12b0d448-b84e-4fce-b351-959d0df2e655". Did you forget to initialize it? More info: https://docs.streamlit.io/library/advanced-features/session-state#initialization'`
this issue was fixed.
Hello @mlocardpaulet and @enryH !
thank you very much for the i2MassChroQ support. I just tried to submit a newly produced zip archive from i2MassChroQ and I ran into troubles.
here is the error message once I press the "Parse and bench" button from https://proteobench.cubimed.rub.de/DDA%20Quant%20Ion%20Level%20-BETA-
I've chosen "i2MassChroq" as the software tool and uploaded my zip file by selecting it with "Browse files" button.
Do you have an idea of what is going wrong ?
Best wishes Olivier