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
|
@@ -54,13 +54,15 @@ class find_adducts_defaults:
|
|
|
54
54
|
charge_span_max: int = 2
|
|
55
55
|
|
|
56
56
|
# Retention time constraints (in seconds - final confirmed unit)
|
|
57
|
-
retention_max_diff: float = 1.0 # 1 second - precise RT grouping
|
|
57
|
+
retention_max_diff: float = 1.0 # 1 second - precise RT grouping
|
|
58
58
|
retention_max_diff_local: float = 1.0 # 1 second - precise RT grouping
|
|
59
|
-
|
|
59
|
+
|
|
60
60
|
# Mass tolerance constraints
|
|
61
|
-
mass_max_diff: float =
|
|
61
|
+
mass_max_diff: float = (
|
|
62
|
+
0.01 # 0.01 Da - strict mass tolerance for chemical specificity
|
|
63
|
+
)
|
|
62
64
|
unit: str = "Da" # Mass tolerance unit: "Da" or "ppm"
|
|
63
|
-
|
|
65
|
+
|
|
64
66
|
# Probability filtering
|
|
65
67
|
min_probability: float = 0.03 # Minimum probability to consider adducts (filters low-probability adducts)
|
|
66
68
|
|
|
@@ -181,7 +183,7 @@ class find_adducts_defaults:
|
|
|
181
183
|
return all(isinstance(item, str) for item in value)
|
|
182
184
|
else:
|
|
183
185
|
return False
|
|
184
|
-
|
|
186
|
+
|
|
185
187
|
# Handle unit parameter
|
|
186
188
|
if param_name == "unit":
|
|
187
189
|
if isinstance(value, str):
|
|
@@ -348,16 +350,27 @@ class find_adducts_defaults:
|
|
|
348
350
|
|
|
349
351
|
if adducts is None or adducts in ["pos", "positive"]:
|
|
350
352
|
return [
|
|
351
|
-
"+H:1:0.65",
|
|
353
|
+
"+H:1:0.65",
|
|
354
|
+
"+Na:1:0.15",
|
|
355
|
+
"+NH4:1:0.15",
|
|
356
|
+
"+K:1:0.05",
|
|
357
|
+
"-H2O:0:0.15",
|
|
352
358
|
]
|
|
353
359
|
elif adducts in ["neg", "negative"]:
|
|
354
360
|
return [
|
|
355
|
-
"-H:-1:0.9",
|
|
361
|
+
"-H:-1:0.9",
|
|
362
|
+
"+Cl:-1:0.1",
|
|
363
|
+
"+CH2O2:0:0.15",
|
|
364
|
+
"-H2O:0:0.15",
|
|
356
365
|
]
|
|
357
366
|
elif isinstance(adducts, list):
|
|
358
367
|
return adducts
|
|
359
368
|
else:
|
|
360
369
|
# Fallback to positive mode if unexpected format
|
|
361
370
|
return [
|
|
362
|
-
"+H:1:0.65",
|
|
371
|
+
"+H:1:0.65",
|
|
372
|
+
"+Na:1:0.15",
|
|
373
|
+
"+NH4:1:0.15",
|
|
374
|
+
"+K:1:0.05",
|
|
375
|
+
"-H2O:0:0.2",
|
|
363
376
|
]
|