masster 0.4.16__tar.gz → 0.4.18__tar.gz
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.
- {masster-0.4.16 → masster-0.4.18}/PKG-INFO +3 -2
- {masster-0.4.16 → masster-0.4.18}/README.md +2 -1
- {masster-0.4.16 → masster-0.4.18}/pyproject.toml +1 -1
- {masster-0.4.16 → masster-0.4.18}/src/masster/_version.py +1 -1
- {masster-0.4.16 → masster-0.4.18}/src/masster/study/defaults/merge_def.py +70 -6
- {masster-0.4.16 → masster-0.4.18}/src/masster/study/merge.py +637 -31
- {masster-0.4.16 → masster-0.4.18}/src/masster/study/plot.py +15 -1
- {masster-0.4.16 → masster-0.4.18}/src/masster/study/processing.py +0 -1
- {masster-0.4.16 → masster-0.4.18}/uv.lock +1 -1
- {masster-0.4.16 → masster-0.4.18}/.github/workflows/publish.yml +0 -0
- {masster-0.4.16 → masster-0.4.18}/.github/workflows/security.yml +0 -0
- {masster-0.4.16 → masster-0.4.18}/.github/workflows/test.yml +0 -0
- {masster-0.4.16 → masster-0.4.18}/.gitignore +0 -0
- {masster-0.4.16 → masster-0.4.18}/.pre-commit-config.yaml +0 -0
- {masster-0.4.16 → masster-0.4.18}/LICENSE +0 -0
- {masster-0.4.16 → masster-0.4.18}/Makefile +0 -0
- {masster-0.4.16 → masster-0.4.18}/TESTING.md +0 -0
- {masster-0.4.16 → masster-0.4.18}/demo/example_batch_process.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/demo/example_sample_process.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/__init__.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/chromatogram.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/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-0.4.16 → masster-0.4.18}/src/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-0.4.16 → masster-0.4.18}/src/masster/data/dda/20250530_VH_IQX_KW_RP_HSST3_100mm_12min_pos_v4_MS1_C-MiLUT_C008_v6_r38_01.sample5 +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/data/dda/20250530_VH_IQX_KW_RP_HSST3_100mm_12min_pos_v4_MS1_C-MiLUT_C008_v7_r37_01.sample5 +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/data/dda/20250530_VH_IQX_KW_RP_HSST3_100mm_12min_pos_v4_MS1_C-MiLUT_C017_v5_r99_01.sample5 +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/data/libs/ccm.csv +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/data/libs/urine.csv +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/data/wiff/2025_01_14_VW_7600_LpMx_DBS_CID_2min_TOP15_030msecMS1_005msecReac_CE35_DBS-ON_3.timeseries.data +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/data/wiff/2025_01_14_VW_7600_LpMx_DBS_CID_2min_TOP15_030msecMS1_005msecReac_CE35_DBS-ON_3.wiff +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/data/wiff/2025_01_14_VW_7600_LpMx_DBS_CID_2min_TOP15_030msecMS1_005msecReac_CE35_DBS-ON_3.wiff.scan +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/data/wiff/2025_01_14_VW_7600_LpMx_DBS_CID_2min_TOP15_030msecMS1_005msecReac_CE35_DBS-ON_3.wiff2 +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/lib/__init__.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/lib/lib.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/logger.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/sample/__init__.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/sample/adducts.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/sample/defaults/__init__.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/sample/defaults/find_adducts_def.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/sample/defaults/find_features_def.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/sample/defaults/find_ms2_def.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/sample/defaults/get_spectrum_def.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/sample/defaults/sample_def.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/sample/h5.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/sample/helpers.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/sample/lib.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/sample/load.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/sample/parameters.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/sample/plot.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/sample/processing.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/sample/quant.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/sample/sample.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/sample/sample5_schema.json +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/sample/save.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/sample/sciex.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/spectrum.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/study/__init__.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/study/defaults/__init__.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/study/defaults/align_def.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/study/defaults/export_def.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/study/defaults/fill_chrom_def.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/study/defaults/fill_def.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/study/defaults/find_consensus_def.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/study/defaults/find_ms2_def.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/study/defaults/identify_def.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/study/defaults/integrate_chrom_def.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/study/defaults/integrate_def.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/study/defaults/study_def.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/study/export.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/study/h5.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/study/helpers.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/study/id.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/study/load.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/study/parameters.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/study/save.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/study/study.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/study/study5_schema.json +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/wizard/README.md +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/wizard/__init__.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/wizard/example.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/wizard/test_structure.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/wizard/test_wizard.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/wizard/wizard.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/src/masster/wizard.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/tests/conftest.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/tests/test_chromatogram.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/tests/test_defaults.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/tests/test_imports.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/tests/test_integration.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/tests/test_logger.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/tests/test_parameters.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/tests/test_sample.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/tests/test_spectrum.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/tests/test_study.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/tests/test_version.py +0 -0
- {masster-0.4.16 → masster-0.4.18}/tox.ini +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: masster
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.18
|
|
4
4
|
Summary: Mass spectrometry data analysis package
|
|
5
5
|
Project-URL: homepage, https://github.com/zamboni-lab/masster
|
|
6
6
|
Project-URL: repository, https://github.com/zamboni-lab/masster
|
|
@@ -767,7 +767,8 @@ study.integrate()
|
|
|
767
767
|
# export results
|
|
768
768
|
study.export_mgf()
|
|
769
769
|
study.export_mztab()
|
|
770
|
-
study.
|
|
770
|
+
study.export_xlsx()
|
|
771
|
+
study.export_parquet()
|
|
771
772
|
|
|
772
773
|
# Save the study to .study5
|
|
773
774
|
study.save()
|
|
@@ -25,24 +25,36 @@ class merge_defaults:
|
|
|
25
25
|
link_ms2 (bool): Whether to link MS2 spectra to consensus features. Default is True.
|
|
26
26
|
"""
|
|
27
27
|
|
|
28
|
-
method: str = "
|
|
29
|
-
min_samples: int =
|
|
28
|
+
method: str = "qt"
|
|
29
|
+
min_samples: int = 2
|
|
30
30
|
rt_tol: float = 5.0
|
|
31
31
|
mz_tol: float = 0.01
|
|
32
|
-
chunk_size: int =
|
|
32
|
+
chunk_size: int = 500
|
|
33
33
|
nr_partitions: int = 1000
|
|
34
|
-
min_rel_cc_size: float = 0.
|
|
34
|
+
min_rel_cc_size: float = 0.1
|
|
35
35
|
max_pairwise_log_fc: float = -1.0
|
|
36
36
|
max_nr_conflicts: int = 0
|
|
37
37
|
link_ms2: bool = True
|
|
38
|
+
|
|
39
|
+
# KD-Strict specific parameters
|
|
40
|
+
optimize_rt_tol: bool = False
|
|
41
|
+
rt_tol_range: tuple = (0.5, 4.0)
|
|
42
|
+
rt_tol_steps: int = 7
|
|
43
|
+
secondary_merge_rt_tol: float = 1.0
|
|
44
|
+
secondary_merge_mz_tol: float = 0.005
|
|
45
|
+
min_sample_overlap: float = 0.8
|
|
46
|
+
max_rt_spread: float = 2.0 # Will default to 2x rt_tol
|
|
47
|
+
min_coherence: float = 0.0
|
|
38
48
|
|
|
39
49
|
_param_metadata: dict[str, dict[str, Any]] = field(
|
|
40
50
|
default_factory=lambda: {
|
|
41
51
|
"method": {
|
|
42
52
|
"dtype": str,
|
|
43
53
|
"description": "Merge method (algorithm) to use",
|
|
44
|
-
"default": "
|
|
45
|
-
"allowed_values": ["
|
|
54
|
+
"default": "quality",
|
|
55
|
+
"allowed_values": ["sensitivity", "qt", "nowarp", "chunked", "quality",
|
|
56
|
+
"kd", "kd-nowarp", "kd_nowarp", "kd-strict", "kd_strict",
|
|
57
|
+
"kd_chunked", "kd-chunked", "qt_chunked", "qt-chunked"],
|
|
46
58
|
},
|
|
47
59
|
"min_samples": {
|
|
48
60
|
"dtype": int,
|
|
@@ -103,6 +115,58 @@ class merge_defaults:
|
|
|
103
115
|
"description": "Whether to link MS2 spectra to consensus features",
|
|
104
116
|
"default": True,
|
|
105
117
|
},
|
|
118
|
+
# KD-Strict specific parameters
|
|
119
|
+
"optimize_rt_tol": {
|
|
120
|
+
"dtype": bool,
|
|
121
|
+
"description": "Enable RT tolerance optimization for kd-strict method",
|
|
122
|
+
"default": False,
|
|
123
|
+
},
|
|
124
|
+
"rt_tol_range": {
|
|
125
|
+
"dtype": tuple,
|
|
126
|
+
"description": "RT tolerance range for optimization (min, max) in seconds",
|
|
127
|
+
"default": (0.8, 2.0),
|
|
128
|
+
},
|
|
129
|
+
"rt_tol_steps": {
|
|
130
|
+
"dtype": int,
|
|
131
|
+
"description": "Number of steps for RT tolerance optimization",
|
|
132
|
+
"default": 5,
|
|
133
|
+
"min_value": 3,
|
|
134
|
+
"max_value": 20,
|
|
135
|
+
},
|
|
136
|
+
"secondary_merge_rt_tol": {
|
|
137
|
+
"dtype": float,
|
|
138
|
+
"description": "RT tolerance for secondary clustering in kd-strict (seconds)",
|
|
139
|
+
"default": 0.5,
|
|
140
|
+
"min_value": 0.1,
|
|
141
|
+
"max_value": 5.0,
|
|
142
|
+
},
|
|
143
|
+
"secondary_merge_mz_tol": {
|
|
144
|
+
"dtype": float,
|
|
145
|
+
"description": "m/z tolerance for secondary clustering in kd-strict (Da)",
|
|
146
|
+
"default": 0.005,
|
|
147
|
+
"min_value": 0.001,
|
|
148
|
+
"max_value": 0.1,
|
|
149
|
+
},
|
|
150
|
+
"min_sample_overlap": {
|
|
151
|
+
"dtype": float,
|
|
152
|
+
"description": "Minimum sample overlap ratio for merging features (0.0-1.0)",
|
|
153
|
+
"default": 0.8,
|
|
154
|
+
"min_value": 0.0,
|
|
155
|
+
"max_value": 1.0,
|
|
156
|
+
},
|
|
157
|
+
"max_rt_spread": {
|
|
158
|
+
"dtype": float,
|
|
159
|
+
"description": "Maximum allowed RT spread in seconds (None = 3x rt_tol)",
|
|
160
|
+
"default": None,
|
|
161
|
+
"min_value": 0.1,
|
|
162
|
+
},
|
|
163
|
+
"min_coherence": {
|
|
164
|
+
"dtype": float,
|
|
165
|
+
"description": "Minimum chromatographic coherence score (0.0 = disabled)",
|
|
166
|
+
"default": 0.0,
|
|
167
|
+
"min_value": 0.0,
|
|
168
|
+
"max_value": 1.0,
|
|
169
|
+
},
|
|
106
170
|
},
|
|
107
171
|
repr=False,
|
|
108
172
|
)
|