masster 0.4.3__py3-none-any.whl → 0.4.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of masster might be problematic. Click here for more details.
- masster/__init__.py +8 -8
- masster/_version.py +1 -1
- masster/chromatogram.py +1 -1
- masster/data/dda/20250530_VH_IQX_KW_RP_HSST3_100mm_12min_pos_v4_DDA_OT_C-MiLUT_QC_dil2_01_20250602151849.sample5 +0 -0
- masster/data/dda/20250530_VH_IQX_KW_RP_HSST3_100mm_12min_pos_v4_DDA_OT_C-MiLUT_QC_dil3_01_20250602150634.sample5 +0 -0
- masster/data/dda/20250530_VH_IQX_KW_RP_HSST3_100mm_12min_pos_v4_MS1_C-MiLUT_C008_v6_r38_01.sample5 +0 -0
- masster/data/dda/20250530_VH_IQX_KW_RP_HSST3_100mm_12min_pos_v4_MS1_C-MiLUT_C008_v7_r37_01.sample5 +0 -0
- masster/data/dda/20250530_VH_IQX_KW_RP_HSST3_100mm_12min_pos_v4_MS1_C-MiLUT_C017_v5_r99_01.sample5 +0 -0
- masster/data/libs/__pycache__/ccm.cpython-312.pyc +0 -0
- masster/data/libs/__pycache__/urine.cpython-312.pyc +0 -0
- masster/data/libs/ccm.csv +120 -0
- masster/data/libs/urine.csv +4693 -0
- masster/data/wiff/2025_01_14_VW_7600_LpMx_DBS_CID_2min_TOP15_030msecMS1_005msecReac_CE35_DBS-ON_3.timeseries.data +0 -0
- masster/data/wiff/2025_01_14_VW_7600_LpMx_DBS_CID_2min_TOP15_030msecMS1_005msecReac_CE35_DBS-ON_3.wiff +0 -0
- masster/data/wiff/2025_01_14_VW_7600_LpMx_DBS_CID_2min_TOP15_030msecMS1_005msecReac_CE35_DBS-ON_3.wiff.scan +0 -0
- masster/data/wiff/2025_01_14_VW_7600_LpMx_DBS_CID_2min_TOP15_030msecMS1_005msecReac_CE35_DBS-ON_3.wiff2 +0 -0
- masster/logger.py +11 -11
- masster/sample/__init__.py +1 -1
- masster/sample/adducts.py +338 -264
- masster/sample/defaults/find_adducts_def.py +21 -8
- masster/sample/h5.py +561 -282
- masster/sample/helpers.py +131 -75
- masster/sample/lib.py +4 -4
- masster/sample/load.py +31 -17
- masster/sample/parameters.py +1 -1
- masster/sample/plot.py +7 -7
- masster/sample/processing.py +117 -87
- masster/sample/sample.py +103 -90
- masster/sample/sample5_schema.json +196 -0
- masster/sample/save.py +35 -12
- masster/spectrum.py +1 -1
- masster/study/__init__.py +1 -1
- masster/study/defaults/align_def.py +5 -1
- masster/study/defaults/identify_def.py +3 -1
- masster/study/defaults/study_def.py +58 -25
- masster/study/export.py +360 -210
- masster/study/h5.py +560 -158
- masster/study/helpers.py +496 -203
- masster/study/helpers_optimized.py +1 -1
- masster/study/id.py +538 -349
- masster/study/load.py +233 -143
- masster/study/plot.py +71 -71
- masster/study/processing.py +456 -254
- masster/study/save.py +15 -5
- masster/study/study.py +213 -131
- masster/study/study5_schema.json +360 -0
- masster-0.4.5.dist-info/METADATA +131 -0
- masster-0.4.5.dist-info/RECORD +71 -0
- masster-0.4.3.dist-info/METADATA +0 -791
- masster-0.4.3.dist-info/RECORD +0 -56
- {masster-0.4.3.dist-info → masster-0.4.5.dist-info}/WHEEL +0 -0
- {masster-0.4.3.dist-info → masster-0.4.5.dist-info}/entry_points.txt +0 -0
- {masster-0.4.3.dist-info → masster-0.4.5.dist-info}/licenses/LICENSE +0 -0
- {masster-0.4.3.dist-info → masster-0.4.5.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
{
|
|
2
|
+
"consensus_df": {
|
|
3
|
+
"columns": {
|
|
4
|
+
"adduct_charge_top": {
|
|
5
|
+
"dtype": "pl.Int64"
|
|
6
|
+
},
|
|
7
|
+
"adduct_group": {
|
|
8
|
+
"dtype": "pl.Int64"
|
|
9
|
+
},
|
|
10
|
+
"adduct_mass_neutral_top": {
|
|
11
|
+
"dtype": "pl.Float64"
|
|
12
|
+
},
|
|
13
|
+
"adduct_mass_shift_top": {
|
|
14
|
+
"dtype": "pl.Float64"
|
|
15
|
+
},
|
|
16
|
+
"adduct_of": {
|
|
17
|
+
"dtype": "pl.Int64"
|
|
18
|
+
},
|
|
19
|
+
"adduct_top": {
|
|
20
|
+
"dtype": "pl.Utf8"
|
|
21
|
+
},
|
|
22
|
+
"adducts": {
|
|
23
|
+
"dtype": "pl.Object"
|
|
24
|
+
},
|
|
25
|
+
"bl": {
|
|
26
|
+
"dtype": "pl.Float64"
|
|
27
|
+
},
|
|
28
|
+
"charge_mean": {
|
|
29
|
+
"dtype": "pl.Float64"
|
|
30
|
+
},
|
|
31
|
+
"chrom_coherence_mean": {
|
|
32
|
+
"dtype": "pl.Float64"
|
|
33
|
+
},
|
|
34
|
+
"chrom_height_scaled_mean": {
|
|
35
|
+
"dtype": "pl.Float64"
|
|
36
|
+
},
|
|
37
|
+
"chrom_prominence_mean": {
|
|
38
|
+
"dtype": "pl.Float64"
|
|
39
|
+
},
|
|
40
|
+
"chrom_prominence_scaled_mean": {
|
|
41
|
+
"dtype": "pl.Float64"
|
|
42
|
+
},
|
|
43
|
+
"consensus_id": {
|
|
44
|
+
"dtype": "pl.Utf8"
|
|
45
|
+
},
|
|
46
|
+
"consensus_uid": {
|
|
47
|
+
"dtype": "pl.Int64"
|
|
48
|
+
},
|
|
49
|
+
"inty_mean": {
|
|
50
|
+
"dtype": "pl.Float64"
|
|
51
|
+
},
|
|
52
|
+
"iso_mean": {
|
|
53
|
+
"dtype": "pl.Float64"
|
|
54
|
+
},
|
|
55
|
+
"mz": {
|
|
56
|
+
"dtype": "pl.Float64"
|
|
57
|
+
},
|
|
58
|
+
"mz_end_mean": {
|
|
59
|
+
"dtype": "pl.Float64"
|
|
60
|
+
},
|
|
61
|
+
"mz_max": {
|
|
62
|
+
"dtype": "pl.Float64"
|
|
63
|
+
},
|
|
64
|
+
"mz_mean": {
|
|
65
|
+
"dtype": "pl.Float64"
|
|
66
|
+
},
|
|
67
|
+
"mz_min": {
|
|
68
|
+
"dtype": "pl.Float64"
|
|
69
|
+
},
|
|
70
|
+
"mz_start_mean": {
|
|
71
|
+
"dtype": "pl.Float64"
|
|
72
|
+
},
|
|
73
|
+
"number_ms2": {
|
|
74
|
+
"dtype": "pl.Int64"
|
|
75
|
+
},
|
|
76
|
+
"number_samples": {
|
|
77
|
+
"dtype": "pl.Int64"
|
|
78
|
+
},
|
|
79
|
+
"quality": {
|
|
80
|
+
"dtype": "pl.Float64"
|
|
81
|
+
},
|
|
82
|
+
"rt": {
|
|
83
|
+
"dtype": "pl.Float64"
|
|
84
|
+
},
|
|
85
|
+
"rt_delta_mean": {
|
|
86
|
+
"dtype": "pl.Float64"
|
|
87
|
+
},
|
|
88
|
+
"rt_end_mean": {
|
|
89
|
+
"dtype": "pl.Float64"
|
|
90
|
+
},
|
|
91
|
+
"rt_max": {
|
|
92
|
+
"dtype": "pl.Float64"
|
|
93
|
+
},
|
|
94
|
+
"rt_mean": {
|
|
95
|
+
"dtype": "pl.Float64"
|
|
96
|
+
},
|
|
97
|
+
"rt_min": {
|
|
98
|
+
"dtype": "pl.Float64"
|
|
99
|
+
},
|
|
100
|
+
"rt_start_mean": {
|
|
101
|
+
"dtype": "pl.Float64"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"consensus_mapping_df": {
|
|
106
|
+
"columns": {
|
|
107
|
+
"consensus_uid": {
|
|
108
|
+
"dtype": "pl.Int64"
|
|
109
|
+
},
|
|
110
|
+
"feature_uid": {
|
|
111
|
+
"dtype": "pl.Int64"
|
|
112
|
+
},
|
|
113
|
+
"sample_uid": {
|
|
114
|
+
"dtype": "pl.Int64"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"consensus_ms2": {
|
|
119
|
+
"columns": {
|
|
120
|
+
"consensus_uid": {
|
|
121
|
+
"dtype": "pl.Int64"
|
|
122
|
+
},
|
|
123
|
+
"energy": {
|
|
124
|
+
"dtype": "pl.Float64"
|
|
125
|
+
},
|
|
126
|
+
"feature_uid": {
|
|
127
|
+
"dtype": "pl.Int64"
|
|
128
|
+
},
|
|
129
|
+
"number_frags": {
|
|
130
|
+
"dtype": "pl.Int64"
|
|
131
|
+
},
|
|
132
|
+
"prec_coherence": {
|
|
133
|
+
"dtype": "pl.Float64"
|
|
134
|
+
},
|
|
135
|
+
"prec_inty": {
|
|
136
|
+
"dtype": "pl.Float64"
|
|
137
|
+
},
|
|
138
|
+
"prec_prominence_scaled": {
|
|
139
|
+
"dtype": "pl.Float64"
|
|
140
|
+
},
|
|
141
|
+
"sample_uid": {
|
|
142
|
+
"dtype": "pl.Int64"
|
|
143
|
+
},
|
|
144
|
+
"scan_id": {
|
|
145
|
+
"dtype": "pl.Int64"
|
|
146
|
+
},
|
|
147
|
+
"spec": {
|
|
148
|
+
"dtype": "pl.Object"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"features_df": {
|
|
153
|
+
"columns": {
|
|
154
|
+
"adduct": {
|
|
155
|
+
"dtype": "pl.Utf8"
|
|
156
|
+
},
|
|
157
|
+
"adduct_charge": {
|
|
158
|
+
"dtype": "pl.Int64"
|
|
159
|
+
},
|
|
160
|
+
"adduct_group": {
|
|
161
|
+
"dtype": "pl.Int64"
|
|
162
|
+
},
|
|
163
|
+
"adduct_mass_neutral": {
|
|
164
|
+
"dtype": "pl.Float64"
|
|
165
|
+
},
|
|
166
|
+
"adduct_mass_shift": {
|
|
167
|
+
"dtype": "pl.Float64"
|
|
168
|
+
},
|
|
169
|
+
"charge": {
|
|
170
|
+
"dtype": "pl.Int32"
|
|
171
|
+
},
|
|
172
|
+
"chrom": {
|
|
173
|
+
"dtype": "pl.Object"
|
|
174
|
+
},
|
|
175
|
+
"chrom_area": {
|
|
176
|
+
"dtype": "pl.Float64"
|
|
177
|
+
},
|
|
178
|
+
"chrom_coherence": {
|
|
179
|
+
"dtype": "pl.Float64"
|
|
180
|
+
},
|
|
181
|
+
"chrom_height_scaled": {
|
|
182
|
+
"dtype": "pl.Float64"
|
|
183
|
+
},
|
|
184
|
+
"chrom_prominence": {
|
|
185
|
+
"dtype": "pl.Float64"
|
|
186
|
+
},
|
|
187
|
+
"chrom_prominence_scaled": {
|
|
188
|
+
"dtype": "pl.Float64"
|
|
189
|
+
},
|
|
190
|
+
"feature_id": {
|
|
191
|
+
"dtype": "pl.Utf8"
|
|
192
|
+
},
|
|
193
|
+
"feature_uid": {
|
|
194
|
+
"dtype": "pl.Int64"
|
|
195
|
+
},
|
|
196
|
+
"filled": {
|
|
197
|
+
"dtype": "pl.Boolean"
|
|
198
|
+
},
|
|
199
|
+
"inty": {
|
|
200
|
+
"dtype": "pl.Float64"
|
|
201
|
+
},
|
|
202
|
+
"iso": {
|
|
203
|
+
"dtype": "pl.Int64"
|
|
204
|
+
},
|
|
205
|
+
"iso_of": {
|
|
206
|
+
"dtype": "pl.Int64"
|
|
207
|
+
},
|
|
208
|
+
"ms2_scans": {
|
|
209
|
+
"dtype": "pl.Object"
|
|
210
|
+
},
|
|
211
|
+
"ms2_specs": {
|
|
212
|
+
"dtype": "pl.Object"
|
|
213
|
+
},
|
|
214
|
+
"mz": {
|
|
215
|
+
"dtype": "pl.Float64"
|
|
216
|
+
},
|
|
217
|
+
"mz_end": {
|
|
218
|
+
"dtype": "pl.Float64"
|
|
219
|
+
},
|
|
220
|
+
"mz_start": {
|
|
221
|
+
"dtype": "pl.Float64"
|
|
222
|
+
},
|
|
223
|
+
"quality": {
|
|
224
|
+
"dtype": "pl.Float64"
|
|
225
|
+
},
|
|
226
|
+
"rt": {
|
|
227
|
+
"dtype": "pl.Float64"
|
|
228
|
+
},
|
|
229
|
+
"rt_delta": {
|
|
230
|
+
"dtype": "pl.Float64"
|
|
231
|
+
},
|
|
232
|
+
"rt_end": {
|
|
233
|
+
"dtype": "pl.Float64"
|
|
234
|
+
},
|
|
235
|
+
"rt_original": {
|
|
236
|
+
"dtype": "pl.Float64"
|
|
237
|
+
},
|
|
238
|
+
"rt_start": {
|
|
239
|
+
"dtype": "pl.Float64"
|
|
240
|
+
},
|
|
241
|
+
"sample_uid": {
|
|
242
|
+
"dtype": "pl.Int32"
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"id_df": {
|
|
247
|
+
"columns": {
|
|
248
|
+
"consensus_uid": {
|
|
249
|
+
"dtype": "pl.Int64"
|
|
250
|
+
},
|
|
251
|
+
"lib_uid": {
|
|
252
|
+
"dtype": "pl.Int64"
|
|
253
|
+
},
|
|
254
|
+
"matcher": {
|
|
255
|
+
"dtype": "pl.String"
|
|
256
|
+
},
|
|
257
|
+
"mz_delta": {
|
|
258
|
+
"dtype": "pl.Float64"
|
|
259
|
+
},
|
|
260
|
+
"rt_delta": {
|
|
261
|
+
"dtype": "pl.Null"
|
|
262
|
+
},
|
|
263
|
+
"score": {
|
|
264
|
+
"dtype": "pl.Float64"
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
"lib_df": {
|
|
269
|
+
"columns": {
|
|
270
|
+
"adduct": {
|
|
271
|
+
"dtype": "pl.String"
|
|
272
|
+
},
|
|
273
|
+
"cmpd_uid": {
|
|
274
|
+
"dtype": "pl.Int64"
|
|
275
|
+
},
|
|
276
|
+
"db": {
|
|
277
|
+
"dtype": "pl.String"
|
|
278
|
+
},
|
|
279
|
+
"db_id": {
|
|
280
|
+
"dtype": "pl.String"
|
|
281
|
+
},
|
|
282
|
+
"formula": {
|
|
283
|
+
"dtype": "pl.String"
|
|
284
|
+
},
|
|
285
|
+
"inchi": {
|
|
286
|
+
"dtype": "pl.String"
|
|
287
|
+
},
|
|
288
|
+
"inchikey": {
|
|
289
|
+
"dtype": "pl.String"
|
|
290
|
+
},
|
|
291
|
+
"lib_uid": {
|
|
292
|
+
"dtype": "pl.Int64"
|
|
293
|
+
},
|
|
294
|
+
"m": {
|
|
295
|
+
"dtype": "pl.Float64"
|
|
296
|
+
},
|
|
297
|
+
"mz": {
|
|
298
|
+
"dtype": "pl.Float64"
|
|
299
|
+
},
|
|
300
|
+
"name": {
|
|
301
|
+
"dtype": "pl.String"
|
|
302
|
+
},
|
|
303
|
+
"rt": {
|
|
304
|
+
"dtype": "pl.Null"
|
|
305
|
+
},
|
|
306
|
+
"smiles": {
|
|
307
|
+
"dtype": "pl.String"
|
|
308
|
+
},
|
|
309
|
+
"source_id": {
|
|
310
|
+
"dtype": "pl.Null"
|
|
311
|
+
},
|
|
312
|
+
"z": {
|
|
313
|
+
"dtype": "pl.Int64"
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
"samples_df": {
|
|
318
|
+
"columns": {
|
|
319
|
+
"map_id": {
|
|
320
|
+
"dtype": "pl.Int64"
|
|
321
|
+
},
|
|
322
|
+
"num_features": {
|
|
323
|
+
"dtype": "pl.Int64"
|
|
324
|
+
},
|
|
325
|
+
"num_ms1": {
|
|
326
|
+
"dtype": "pl.Int64"
|
|
327
|
+
},
|
|
328
|
+
"num_ms2": {
|
|
329
|
+
"dtype": "pl.Int64"
|
|
330
|
+
},
|
|
331
|
+
"sample_batch": {
|
|
332
|
+
"dtype": "pl.Int64"
|
|
333
|
+
},
|
|
334
|
+
"sample_color": {
|
|
335
|
+
"dtype": "pl.Utf8"
|
|
336
|
+
},
|
|
337
|
+
"sample_group": {
|
|
338
|
+
"dtype": "pl.Utf8"
|
|
339
|
+
},
|
|
340
|
+
"sample_name": {
|
|
341
|
+
"dtype": "pl.Utf8"
|
|
342
|
+
},
|
|
343
|
+
"sample_path": {
|
|
344
|
+
"dtype": "pl.Utf8"
|
|
345
|
+
},
|
|
346
|
+
"sample_sequence": {
|
|
347
|
+
"dtype": "pl.Int64"
|
|
348
|
+
},
|
|
349
|
+
"sample_source": {
|
|
350
|
+
"dtype": "pl.Utf8"
|
|
351
|
+
},
|
|
352
|
+
"sample_type": {
|
|
353
|
+
"dtype": "pl.Utf8"
|
|
354
|
+
},
|
|
355
|
+
"sample_uid": {
|
|
356
|
+
"dtype": "pl.Int64"
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: masster
|
|
3
|
+
Version: 0.4.5
|
|
4
|
+
Summary: Mass spectrometry data analysis package
|
|
5
|
+
Author: Zamboni Lab
|
|
6
|
+
License-Expression: AGPL-3.0-only
|
|
7
|
+
Project-URL: homepage, https://github.com/zamboni-lab/masster
|
|
8
|
+
Project-URL: repository, https://github.com/zamboni-lab/masster
|
|
9
|
+
Project-URL: documentation, https://github.com/zamboni-lab/masster#readme
|
|
10
|
+
Keywords: mass spectrometry,metabolomics,lc-ms,chromatography
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Intended Audience :: Science/Research
|
|
13
|
+
Classifier: Operating System :: OS Independent
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
|
|
19
|
+
Classifier: Topic :: Scientific/Engineering :: Chemistry
|
|
20
|
+
Requires-Python: >=3.11
|
|
21
|
+
Description-Content-Type: text/markdown
|
|
22
|
+
License-File: LICENSE
|
|
23
|
+
Requires-Dist: alpharaw>=0.4.8
|
|
24
|
+
Requires-Dist: bokeh>=3.7.3
|
|
25
|
+
Requires-Dist: datashader>=0.18.1
|
|
26
|
+
Requires-Dist: holoviews>=1.21.0
|
|
27
|
+
Requires-Dist: h5py>=3.14.0
|
|
28
|
+
Requires-Dist: hvplot>=0.11.3
|
|
29
|
+
Requires-Dist: loguru>=0.7.3
|
|
30
|
+
Requires-Dist: numpy>=2.0.0
|
|
31
|
+
Requires-Dist: marimo>=0.14.16
|
|
32
|
+
Requires-Dist: matplotlib>=3.8.0
|
|
33
|
+
Requires-Dist: pandas>=2.2.0
|
|
34
|
+
Requires-Dist: panel>=1.7.0
|
|
35
|
+
Requires-Dist: polars>=1.0.0
|
|
36
|
+
Requires-Dist: pyopenms>=3.3.0
|
|
37
|
+
Requires-Dist: pyteomics>=4.7.0
|
|
38
|
+
Requires-Dist: pythonnet>=3.0.0
|
|
39
|
+
Requires-Dist: scipy>=1.12.0
|
|
40
|
+
Requires-Dist: tqdm>=4.65.0
|
|
41
|
+
Requires-Dist: openpyxl>=3.1.5
|
|
42
|
+
Requires-Dist: cmap>=0.6.2
|
|
43
|
+
Requires-Dist: altair>=5.5.0
|
|
44
|
+
Requires-Dist: scikit-learn>=1.7.1
|
|
45
|
+
Requires-Dist: ipython>=9.4.0
|
|
46
|
+
Provides-Extra: dev
|
|
47
|
+
Requires-Dist: pytest>=7.0.0; extra == "dev"
|
|
48
|
+
Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
|
|
49
|
+
Requires-Dist: pytest-mock>=3.10.0; extra == "dev"
|
|
50
|
+
Requires-Dist: black>=23.0.0; extra == "dev"
|
|
51
|
+
Requires-Dist: flake8>=5.0.0; extra == "dev"
|
|
52
|
+
Requires-Dist: mypy>=1.0.0; extra == "dev"
|
|
53
|
+
Requires-Dist: pre-commit>=3.0.0; extra == "dev"
|
|
54
|
+
Requires-Dist: twine>=4.0.0; extra == "dev"
|
|
55
|
+
Requires-Dist: build>=0.10.0; extra == "dev"
|
|
56
|
+
Requires-Dist: safety>=2.0.0; extra == "dev"
|
|
57
|
+
Requires-Dist: bandit>=1.7.0; extra == "dev"
|
|
58
|
+
Requires-Dist: pyyaml>=6.0; extra == "dev"
|
|
59
|
+
Provides-Extra: docs
|
|
60
|
+
Requires-Dist: sphinx>=5.0.0; extra == "docs"
|
|
61
|
+
Requires-Dist: sphinx-rtd-theme>=1.2.0; extra == "docs"
|
|
62
|
+
Requires-Dist: sphinxcontrib-napoleon>=0.7; extra == "docs"
|
|
63
|
+
Provides-Extra: test
|
|
64
|
+
Requires-Dist: pytest>=7.0.0; extra == "test"
|
|
65
|
+
Requires-Dist: pytest-cov>=4.0.0; extra == "test"
|
|
66
|
+
Requires-Dist: pytest-mock>=3.10.0; extra == "test"
|
|
67
|
+
Requires-Dist: coverage>=7.0.0; extra == "test"
|
|
68
|
+
Dynamic: license-file
|
|
69
|
+
|
|
70
|
+
# MASSter
|
|
71
|
+
|
|
72
|
+
**MASSter** is a comprehensive Python package for mass spectrometry data analysis, designed for metabolomics and LC-MS data processing. It provides tools for feature detection, alignment, consensus building, and interactive visualization of mass spectrometry datasets. It is designed to deal with DDA, and hides functionalities for DIA and ZTScan DIA data.
|
|
73
|
+
|
|
74
|
+
This is a poorly documented, stable branch of the development codebase in use in the Zamboni lab.
|
|
75
|
+
|
|
76
|
+
Some of the core processing functions are derived from OpenMS. We use the same nomenclature and refer to their documentation for an explanation of the parameters. To a large extent, however, you should be able to use the defaults (=no parameters) when calling processing steps.
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
## Installation
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
pip install master
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Basic Workflow for analyzing LC-MS study with 2-... samples
|
|
86
|
+
|
|
87
|
+
```python
|
|
88
|
+
import master
|
|
89
|
+
|
|
90
|
+
# Initialize the Study object with the default folder
|
|
91
|
+
study = master.Study(default_folder=r'D:\...\mylcms')
|
|
92
|
+
|
|
93
|
+
# Load data from folder with raw data, here: WIFF
|
|
94
|
+
study.add(r'D:\...\...\...\*.wiff')
|
|
95
|
+
|
|
96
|
+
# Perform retention time correction
|
|
97
|
+
study.align(rt_max_diff=2.0)
|
|
98
|
+
study.plot_alignment()
|
|
99
|
+
|
|
100
|
+
# Find consensus features
|
|
101
|
+
study.merge(min_samples=3)
|
|
102
|
+
study.plot_consensus_2d()
|
|
103
|
+
|
|
104
|
+
# Retrieve missing data for quantification
|
|
105
|
+
study.fill()
|
|
106
|
+
|
|
107
|
+
# Integrate according to consensus metadata
|
|
108
|
+
study.integrate()
|
|
109
|
+
|
|
110
|
+
# export results
|
|
111
|
+
study.export_mgf()
|
|
112
|
+
study.export_mztab()
|
|
113
|
+
study.export_consensus()
|
|
114
|
+
|
|
115
|
+
# Save the study to .study5
|
|
116
|
+
study.save()
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
## Requirements
|
|
120
|
+
|
|
121
|
+
- Python ≥ 3.11
|
|
122
|
+
- Key dependencies: pandas, polars, numpy, scipy, matplotlib, bokeh, holoviews, panel
|
|
123
|
+
- See `pyproject.toml` for complete dependency list
|
|
124
|
+
|
|
125
|
+
## License
|
|
126
|
+
|
|
127
|
+
GNU Affero General Public License v3
|
|
128
|
+
|
|
129
|
+
## Citation
|
|
130
|
+
|
|
131
|
+
If you use Master in your research, please cite this repository.
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
masster/__init__.py,sha256=ew7NLZoNITjngEGNArMoSZ-pRZMNoKncfjrBr3hFOTw,730
|
|
2
|
+
masster/_version.py,sha256=VO89cZ_6MtW0W_P2yFvZpdGOhoWdoBYiY0efEf1SqsA,256
|
|
3
|
+
masster/chromatogram.py,sha256=JrlvhuH-jUkA6YLeytrs4DEx2MlbrUNcyHm_JYVuOzE,19304
|
|
4
|
+
masster/logger.py,sha256=XePn7BUOmfHjy936IlfCDzIsk2SBmVQNT0wOznf6GLI,14744
|
|
5
|
+
masster/spectrum.py,sha256=pYaRwurCcPCZ6JLUjhrNQtdfv5u9LVTPTzUGFaeokXs,47709
|
|
6
|
+
masster/data/dda/20250530_VH_IQX_KW_RP_HSST3_100mm_12min_pos_v4_DDA_OT_C-MiLUT_QC_dil2_01_20250602151849.sample5,sha256=LdJMF8uLoDm9ixZNHBoOzBH6hX7NGY7vTvqa2Pzetb8,6539174
|
|
7
|
+
masster/data/dda/20250530_VH_IQX_KW_RP_HSST3_100mm_12min_pos_v4_DDA_OT_C-MiLUT_QC_dil3_01_20250602150634.sample5,sha256=hWUfslGoOTiQw59jENSBXP4sa6DdkbOi40FJ68ep61Q,6956773
|
|
8
|
+
masster/data/dda/20250530_VH_IQX_KW_RP_HSST3_100mm_12min_pos_v4_MS1_C-MiLUT_C008_v6_r38_01.sample5,sha256=dSd2cIgYYdRcNSzkhqlZCeWKi3x8Hhhcx8BFMuiVG4c,11382948
|
|
9
|
+
masster/data/dda/20250530_VH_IQX_KW_RP_HSST3_100mm_12min_pos_v4_MS1_C-MiLUT_C008_v7_r37_01.sample5,sha256=wER8CHSBz54Yx1kwmU7ghPPWVwYvxv_lXGB8-8a1xpQ,9508434
|
|
10
|
+
masster/data/dda/20250530_VH_IQX_KW_RP_HSST3_100mm_12min_pos_v4_MS1_C-MiLUT_C017_v5_r99_01.sample5,sha256=h2OOAWWTwKXzTNewhiYeL-cMYdp_JYLPya8Q9Nv9Lvw,12389587
|
|
11
|
+
masster/data/libs/ccm.csv,sha256=Q6nylV1152uTpX-ydqWeGrc6L9kgv45xN_fBZ4f7Tvo,12754
|
|
12
|
+
masster/data/libs/urine.csv,sha256=iRrR4N8Wzb8KDhHJA4LqoQC35pp93FSaOKvXPrgFHis,653736
|
|
13
|
+
masster/data/libs/__pycache__/ccm.cpython-312.pyc,sha256=krce-0iqL50kmK1hItP4KWHGCs6M5T10-rgRZynP01w,18597
|
|
14
|
+
masster/data/libs/__pycache__/urine.cpython-312.pyc,sha256=yz16lRCULWE-FDWkkVQCWfJLDKpN6906vm6emeDxu6A,10921
|
|
15
|
+
masster/data/wiff/2025_01_14_VW_7600_LpMx_DBS_CID_2min_TOP15_030msecMS1_005msecReac_CE35_DBS-ON_3.timeseries.data,sha256=01vC6m__Qqm2rLvlTMZoeKIKowFvovBTUnrNl8Uav3E,24576
|
|
16
|
+
masster/data/wiff/2025_01_14_VW_7600_LpMx_DBS_CID_2min_TOP15_030msecMS1_005msecReac_CE35_DBS-ON_3.wiff,sha256=go5N9gAM1rn4PZAVaoCmdteY9f7YGEM9gyPdSmkQ8PE,1447936
|
|
17
|
+
masster/data/wiff/2025_01_14_VW_7600_LpMx_DBS_CID_2min_TOP15_030msecMS1_005msecReac_CE35_DBS-ON_3.wiff.scan,sha256=ahi1Y3UhAj9Bj4Q2MlbgPekNdkJvMOoMXVOoR6CeIxc,13881220
|
|
18
|
+
masster/data/wiff/2025_01_14_VW_7600_LpMx_DBS_CID_2min_TOP15_030msecMS1_005msecReac_CE35_DBS-ON_3.wiff2,sha256=TFB0HW4Agkig6yht7FtgjUdbXax8jjKaHpSZSvuU5vs,3252224
|
|
19
|
+
masster/lib/__init__.py,sha256=TcePNx3SYZHz6763TL9Sg4gUNXaRWjlrOtyS6vsu-hg,178
|
|
20
|
+
masster/lib/lib.py,sha256=seAOqzat74iF6YnbNakU3rF5MN5t9WABIpcIPTvU1q8,24987
|
|
21
|
+
masster/sample/__init__.py,sha256=nZ7wqDRqYVFnm9fvTJXnlTbxSMqulQC1RKR7WwDaSoY,169
|
|
22
|
+
masster/sample/adducts.py,sha256=SIJsPI-3dtnoo2wA4E75kg8uiBVrVDTX6J0VW_Dawlw,32589
|
|
23
|
+
masster/sample/h5.py,sha256=2UnPspkn2v0_iZS_aZsb-JjlxTld2Ts2DGpzqrqBDSw,111882
|
|
24
|
+
masster/sample/helpers.py,sha256=JhzFpNh7j7YVUibIMuPQ50hBcGDEBCaBbmwA3Z5OhgM,41336
|
|
25
|
+
masster/sample/lib.py,sha256=nBbSD6W68NuR-Xfd9LKFMY_L_oQnVwb8KyJEbasDJSE,33753
|
|
26
|
+
masster/sample/load.py,sha256=CrwUwmBaC6sn78MGS0r3s13pC2aKicJZUsdOdt4HAEk,50978
|
|
27
|
+
masster/sample/parameters.py,sha256=pxWYqMKFvU-MreDZAF9Ey7_Z0Y6PaG0F8VHrfIUy3SI,4455
|
|
28
|
+
masster/sample/plot.py,sha256=uM6RlgWK-IURdC0jUvu0jheYvQYKFtWom0dzrYNRqfU,82755
|
|
29
|
+
masster/sample/processing.py,sha256=KMRNrXLcvvD4NmGjDjsMqV6qgHqIWlhsk5Du-4xcm3M,49769
|
|
30
|
+
masster/sample/quant.py,sha256=tHNjvUFTdehKR31BXBZnVsBxMD9XJHgaltITOjr71uE,7562
|
|
31
|
+
masster/sample/sample.py,sha256=p5lgs7GMf94Uqmog6YKshuoWAy-yrk9gf-zxncYwzog,18267
|
|
32
|
+
masster/sample/sample5_schema.json,sha256=EKHVKXhqMqsavO34A4AJLPpysW0s2iLuLwjeTJP9R_8,3916
|
|
33
|
+
masster/sample/save.py,sha256=gaENxcrPDU5W3XoyROaDUWCKae468H-Np1-_LMO6s1Q,32499
|
|
34
|
+
masster/sample/sciex.py,sha256=vnbxsq_qnAQVuzcpziP1o3IC4kM5amGBcPmC2TAuDLw,46319
|
|
35
|
+
masster/sample/defaults/__init__.py,sha256=A09AOP44cxD_oYohyt7XFUho0zndRcrzVD4DUaGnKH4,447
|
|
36
|
+
masster/sample/defaults/find_adducts_def.py,sha256=Bu2KiBJRxD0SAnOPNMm_Nk-6fx6QYoRXjFNGzz-0_o0,13570
|
|
37
|
+
masster/sample/defaults/find_features_def.py,sha256=Bcd39uav1BniwKgrsB-I1maF3ljf4Wb1f5yv0pDYfts,17745
|
|
38
|
+
masster/sample/defaults/find_ms2_def.py,sha256=KTELMAnioGLYbhzAwOgK14TZqboPEvzeBN0HC-v0Z5A,9872
|
|
39
|
+
masster/sample/defaults/get_spectrum_def.py,sha256=o62p31PhGd-LiIkTOzKQhwPtnO2AtQDHcPu-O-YoQPs,11460
|
|
40
|
+
masster/sample/defaults/sample_def.py,sha256=keoXyMyrm_iLgbYqfIbqCpJ3XHBVlNwCNmb5iMQL0iY,14579
|
|
41
|
+
masster/study/__init__.py,sha256=OoxY1JtskLSWNL2zzieQb-xW4vWEGpE3nz5fkQyVMsU,165
|
|
42
|
+
masster/study/export.py,sha256=CGiKT-lPBAS-qRt_vosIgFM-pdE6DhCv38wS8aZYKaw,54809
|
|
43
|
+
masster/study/h5.py,sha256=wG9A2mbHdbhkWCfW1J5xRatnwW_lflgmvAdBt_eQTIQ,84057
|
|
44
|
+
masster/study/helpers.py,sha256=Lt3tLRf5yEmUKL5_NqdNIp6lAFCXe_0yEhmQ65ihLfw,152446
|
|
45
|
+
masster/study/helpers_optimized.py,sha256=kKKvcUjRSfvcJBqYyqnCcVvXvVYgffV2mxQgxJRYmsI,13926
|
|
46
|
+
masster/study/id.py,sha256=3mFP2HymkQJ6Hf3oep1P5ti2zgMbimGBLW3ezEnvNzc,44719
|
|
47
|
+
masster/study/load.py,sha256=reIkcM7zDeKK-KkfcOzy2c1Bp2g1h1K1uGaDr04Zvbw,70457
|
|
48
|
+
masster/study/parameters.py,sha256=0elaF7YspTsB7qyajWAbRNL2VfKlGz5GJLifmO8IGkk,3276
|
|
49
|
+
masster/study/plot.py,sha256=Ivc5eaWQklr_bXD4LHNKdBxQBbq0grJh_Z6RVxucKZA,93852
|
|
50
|
+
masster/study/processing.py,sha256=d6CxAyIqwWUJhpxgFwnNCd7jSz13swAFTOfpi4h2fxs,73932
|
|
51
|
+
masster/study/save.py,sha256=xCXPw9g_l4Ox9RHNP76c6Z26v1cg4wgP-hQ2-RU74E8,6703
|
|
52
|
+
masster/study/study.py,sha256=7PZYkwi8pZsWoW2rrROPfM0E_Uy-E4MIpX0qibSYydA,34748
|
|
53
|
+
masster/study/study5_schema.json,sha256=06cB473eo_IzzbsT1Q9W4-svNTdgNJhCS86NVpuyySI,7246
|
|
54
|
+
masster/study/defaults/__init__.py,sha256=m3Z5KXGqsTdh7GjYzZoENERt39yRg0ceVRV1DeCt1P0,610
|
|
55
|
+
masster/study/defaults/align_def.py,sha256=hHQbGgsOqMRHHr0Wn8Onr8XeaRz3-fFE0qGE-OMst80,20324
|
|
56
|
+
masster/study/defaults/export_def.py,sha256=eXl3h4aoLX88XkHTpqahLd-QZ2gjUqrmjq8IJULXeWo,1203
|
|
57
|
+
masster/study/defaults/fill_chrom_def.py,sha256=hB6-tyC9bhx-IpGj2HC8FinQdW4VLYj_pn5t1rlj-Ew,8887
|
|
58
|
+
masster/study/defaults/fill_def.py,sha256=TdDqOt-fva44JptLvxOy7GNUCR5isOKz1jR2xj_V8sQ,8869
|
|
59
|
+
masster/study/defaults/find_consensus_def.py,sha256=uWB4NKCXDMQgNp4BaQUExkDofnXz0ZDffsxH1tvH2_Q,8599
|
|
60
|
+
masster/study/defaults/find_ms2_def.py,sha256=RL0DFG41wQ05U8UQKUGr3vzSl3mU0m0knQus8DpSoJE,5070
|
|
61
|
+
masster/study/defaults/identify_def.py,sha256=96rxoCAPQj_yX-3mRoD2LTkTLJgG27eJQqwarLv5jL0,10580
|
|
62
|
+
masster/study/defaults/integrate_chrom_def.py,sha256=0MNIWGTjty-Zu-NTQsIweuj3UVqEY3x1x8pK0mPwYak,7264
|
|
63
|
+
masster/study/defaults/integrate_def.py,sha256=Vf4SAzdBfnsSZ3IRaF0qZvWu3gMDPHdgPfMYoPKeWv8,7246
|
|
64
|
+
masster/study/defaults/merge_def.py,sha256=EBsKE3hsAkTEzN9dpdRD5W3_suTKy_WZ_96rwS0uBuE,8572
|
|
65
|
+
masster/study/defaults/study_def.py,sha256=h8dYbi9xv0sesCSQik49Z53IkskMmNtW6ixl7it5pL0,16033
|
|
66
|
+
masster-0.4.5.dist-info/licenses/LICENSE,sha256=bx5iLIKjgAdYQ7sISn7DsfHRKkoCUm1154sJJKhgqnU,35184
|
|
67
|
+
masster-0.4.5.dist-info/METADATA,sha256=cfxWTY5LDYX3xcgC2oMHjE8W8v3Ljvika5HcKheEY7k,4585
|
|
68
|
+
masster-0.4.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
69
|
+
masster-0.4.5.dist-info/entry_points.txt,sha256=ZHguQ_vPmdbpqq2uGtmEOLJfgP-DQ1T0c07Lxh30wc8,58
|
|
70
|
+
masster-0.4.5.dist-info/top_level.txt,sha256=MPZokk6zWIP_UhQ_VkKxSTG63eM4WGu9oTcMpQXp7NI,8
|
|
71
|
+
masster-0.4.5.dist-info/RECORD,,
|