File tree Expand file tree Collapse file tree 3 files changed +17
-3
lines changed
fermo_core/data_analysis/score_assigner Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
10
10
11
11
N/A
12
12
13
+ ## [ 0.3.3] 06-06-2024
14
+
15
+ ### Fixed
16
+
17
+ - Added exception for fail of Sample Scores calculation in case of lack of spectral similarity networking data (e.g. no MS/MS data provided)
18
+
13
19
## [ 0.3.2] 05-06-2024
14
20
15
21
### Fixed
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ def collect_sample_spec_networks(self: Self):
96
96
RuntimeError: no networks detected
97
97
"""
98
98
if self .stats .networks is None or len (self .stats .networks ) == 0 :
99
- RuntimeError (
99
+ raise RuntimeError (
100
100
"'ScoreAssigner': no networks detected - cannot assign Sample "
101
101
"scores - SKIP"
102
102
)
@@ -124,7 +124,15 @@ def collect_sample_spec_networks(self: Self):
124
124
125
125
def assign_sample_scores (self : Self ):
126
126
"""Assign scores to sample objects"""
127
- self .collect_sample_spec_networks ()
127
+ try :
128
+ self .collect_sample_spec_networks ()
129
+ except Exception as e :
130
+ logger .warning (str (e ))
131
+ logger .warning (
132
+ "'ScoreAssigner': Could not assign sample score, possibly due "
133
+ "lack of spectral networking information - SKIP"
134
+ )
135
+ return
128
136
129
137
for s_id in self .stats .samples :
130
138
sample = self .samples .get (s_id )
Original file line number Diff line number Diff line change 1
1
[project ]
2
2
name = " fermo_core"
3
- version = " 0.3.2 "
3
+ version = " 0.3.3 "
4
4
description = " Data processing/analysis functionality of metabolomics dashboard FERMO"
5
5
readme = " README.md"
6
6
requires-python = " >=3.11,<3.12"
You can’t perform that action at this time.
0 commit comments