File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
alphadia/transferlearning Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -241,7 +241,13 @@ def __init__(
241
241
if set (self .charged_frag_types ) != set (
242
242
self .ms2_model .model .supported_charged_frag_types
243
243
):
244
- self .reinitialize_ms2_model (charged_frag_types = self .charged_frag_types )
244
+ try :
245
+ self .reinitialize_ms2_model (charged_frag_types = self .charged_frag_types )
246
+ except AttributeError :
247
+ # TODO this is just a patch for the E2E tests, remove after peptdeep version bump
248
+ logger .warning (
249
+ "Found custom charged frag types, but the MS2 model does not support them. This functionality requires peptdeep>=1.5.0"
250
+ )
245
251
self .load_installed_models ()
246
252
247
253
def _reset_frag_idx (self , df ):
Original file line number Diff line number Diff line change 4
4
alpharaw >= 0.3.1
5
5
alphatims >= 1.0.8
6
6
alphabase >= 1.5.0
7
- peptdeep >= 1.3.0
7
+ peptdeep >= 1.3.0 # TODO: remove try-execept in transferlearning/train.py:244 after bump to 1.5.0
8
8
directlfq >= 0.2.19
9
9
# others
10
10
argparse
You can’t perform that action at this time.
0 commit comments