Repository navigation
Labels
Description
Description of the bug
@daichengxin the following file is given an error in the DeepLC step:
2025-05-09 11:18:25,783 ERROR Failed to apply DeepLC annotation: need at least one array to stack
Traceback (most recent call last):
File "/usr/local/bin/rescoring", line 10, in <module>
sys.exit(main())
^^^^^^
File "/usr/local/lib/python3.11/site-packages/quantmsrescore/rescoring.py", line 28, in main
cli()
File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1161, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1082, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1697, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1443, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/click/core.py", line 788, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/click/decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/quantmsrescore/ms2rescore.py", line 195, in msrescore2feature
annotator.annotate()
File "/usr/local/lib/python3.11/site-packages/quantmsrescore/annotator.py", line 184, in annotate
self._run_deeplc_annotation()
File "/usr/local/lib/python3.11/site-packages/quantmsrescore/annotator.py", line 354, in _run_deeplc_annotation
deeplc_annotator = self._determine_optimal_deeplc_model()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/quantmsrescore/annotator.py", line 412, in _determine_optimal_deeplc_model
retrained_model.add_features(retrained_psms)
File "/usr/local/lib/python3.11/site-packages/quantmsrescore/deeplc.py", line 63, in add_features
self.deeplc_predictor.calibrate_preds(
File "/usr/local/lib/python3.11/site-packages/deeplc/deeplc.py", line 1185, in calibrate_preds
models = deeplcretrainer.retrain(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/deeplcretrainer/deeplcretrainer.py", line 308, in retrain
) = cnn_functions.get_feat_matrix(df_valid)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/deeplcretrainer/cnn_functions.py", line 1066, in get_feat_matrix
X = np.stack(df["matrix"])
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/numpy/_core/shape_base.py", line 456, in stack
raise ValueError('need at least one array to stack')
ValueError: need at least one array to stack
File attached.
Fetal_Heart_bRP_Elite_19_f24.mzML.gz
Command used and terminal output
rescoring msrescore2feature \
--idxml Fetal_Heart_bRP_Elite_19_f24_msgf.idXML \
--mzml Fetal_Heart_bRP_Elite_19_f24.mzML \
--ms2_tolerance 0.05 \
--output Fetal_Heart_bRP_Elite_19_f24_msgf_ms2rescore.idXML \
--ms2pip_model_dir /hps/nobackup/juan/pride/reanalysis/ms2pip_model/ \
--processes 48 \
--find_best_model \
\
--ms2pip_model HCD2021 --calibration_set_size 0.15 --feature_generators deeplc,ms2pip \
2>&1 | tee Fetal_Heart_bRP_Elite_19_f24_msgf_ms2rescore.log
cat <<-END_VERSIONS > versions.yml
"BIGBIO_QUANTMS:QUANTMS:LFQ:ID:PSMRESCORING:MS2RESCORE":
quantms-rescoring: $(rescoring --version 2>&1 | grep -Eo '[0-9].[0-9].[0-9]')
ms2pip: $(ms2pip --version 2>&1 | grep -Eo '[0-9].[0-9].[0-9]')
deeplc: $(deeplc --version 2>&1 | grep -Eo '[0-9].[0-9].[0-9]')
MS2Rescore: $(ms2rescore --version 2>&1 | grep -Eo '[0-9].[0-9].[0-9]' | head -n 1)
END_VERSIONS
Relevant files
No response
System information
No response
Activity
daichengxin commentedon May 11, 2025
Can you share the idXML file so that I can reproduce this error locally? @ypriverol
ypriverol commentedon May 12, 2025
Here it is.
Fetal_Heart_bRP_Elite_19_f24_msgf.idXML.gz