masster 0.2.1__tar.gz → 0.2.2__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.
Potentially problematic release.
This version of masster might be problematic. Click here for more details.
- {masster-0.2.1 → masster-0.2.2}/PKG-INFO +31 -55
- {masster-0.2.1 → masster-0.2.2}/README.md +30 -54
- {masster-0.2.1 → masster-0.2.2}/pyproject.toml +1 -1
- {masster-0.2.1 → masster-0.2.2}/src/masster/_version.py +1 -1
- {masster-0.2.1 → masster-0.2.2}/src/masster/study/h5.py +317 -137
- {masster-0.2.1 → masster-0.2.2}/src/masster/study/load.py +23 -134
- {masster-0.2.1 → masster-0.2.2}/src/masster/study/study.py +3 -3
- {masster-0.2.1 → masster-0.2.2}/uv.lock +1 -1
- {masster-0.2.1 → masster-0.2.2}/.github/workflows/publish.yml +0 -0
- {masster-0.2.1 → masster-0.2.2}/.github/workflows/security.yml +0 -0
- {masster-0.2.1 → masster-0.2.2}/.github/workflows/test.yml +0 -0
- {masster-0.2.1 → masster-0.2.2}/.gitignore +0 -0
- {masster-0.2.1 → masster-0.2.2}/.pre-commit-config.yaml +0 -0
- {masster-0.2.1 → masster-0.2.2}/LICENSE +0 -0
- {masster-0.2.1 → masster-0.2.2}/Makefile +0 -0
- {masster-0.2.1 → masster-0.2.2}/TESTING.md +0 -0
- {masster-0.2.1 → masster-0.2.2}/demo/example_batch_process.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/demo/example_sample_process.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/__init__.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/chromatogram.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/data/examples/2025_01_14_VW_7600_LpMx_DBS_CID_2min_TOP15_030msecMS1_005msecReac_CE35_DBS-ON_3.mzML +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/data/examples/2025_01_14_VW_7600_LpMx_DBS_CID_2min_TOP15_030msecMS1_005msecReac_CE35_DBS-ON_3.timeseries.data +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/data/examples/2025_01_14_VW_7600_LpMx_DBS_CID_2min_TOP15_030msecMS1_005msecReac_CE35_DBS-ON_3.wiff +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/data/examples/2025_01_14_VW_7600_LpMx_DBS_CID_2min_TOP15_030msecMS1_005msecReac_CE35_DBS-ON_3.wiff.scan +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/data/examples/2025_01_14_VW_7600_LpMx_DBS_CID_2min_TOP15_030msecMS1_005msecReac_CE35_DBS-ON_3.wiff2 +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/logger.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/sample/__init__.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/sample/defaults/__init__.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/sample/defaults/find_adducts_def.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/sample/defaults/find_features_def.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/sample/defaults/find_ms2_def.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/sample/defaults/get_spectrum_def.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/sample/defaults/sample_def.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/sample/h5.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/sample/helpers.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/sample/load.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/sample/parameters.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/sample/plot.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/sample/processing.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/sample/sample.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/sample/sample5_schema.json +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/sample/save.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/spectrum.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/study/__init__.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/study/defaults/__init__.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/study/defaults/align_def.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/study/defaults/export_def.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/study/defaults/fill_chrom_def.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/study/defaults/find_consensus_def.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/study/defaults/find_ms2_def.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/study/defaults/integrate_chrom_def.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/study/defaults/study_def.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/study/export.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/study/helpers.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/study/parameters.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/study/plot.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/study/processing.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/study/save.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/src/masster/study/study5_schema.json +0 -0
- {masster-0.2.1 → masster-0.2.2}/tests/conftest.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/tests/test_chromatogram.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/tests/test_defaults.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/tests/test_imports.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/tests/test_integration.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/tests/test_logger.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/tests/test_parameters.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/tests/test_sample.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/tests/test_spectrum.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/tests/test_study.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/tests/test_version.py +0 -0
- {masster-0.2.1 → masster-0.2.2}/tox.ini +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: masster
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
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
|
|
@@ -730,10 +730,12 @@ Description-Content-Type: text/markdown
|
|
|
730
730
|
|
|
731
731
|
# MASSter
|
|
732
732
|
|
|
733
|
-
**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.
|
|
733
|
+
**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.
|
|
734
734
|
|
|
735
735
|
Most 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.
|
|
736
736
|
|
|
737
|
+
This is a poorly documented, stable branch of the development codebase in use in the Zamboni lab. Novel functionalities will be added based on need and requests.
|
|
738
|
+
|
|
737
739
|
## Features
|
|
738
740
|
|
|
739
741
|
- **Mass spectrometry data processing**: Support for multiple file formats (.wiff, .mzML, .raw, .mzpkl)
|
|
@@ -751,7 +753,7 @@ pip install masster
|
|
|
751
753
|
|
|
752
754
|
## Quick Start
|
|
753
755
|
|
|
754
|
-
### Basic Workflow
|
|
756
|
+
### Basic Workflow for analyzing LC-MS study with 2-... samples
|
|
755
757
|
|
|
756
758
|
```python
|
|
757
759
|
import masster
|
|
@@ -769,21 +771,33 @@ study.align(rt_max_diff=2.0)
|
|
|
769
771
|
study.find_consensus(min_samples=3)
|
|
770
772
|
|
|
771
773
|
# Retrieve missing data for quantification
|
|
772
|
-
study.
|
|
774
|
+
study.fill_chrom(abs_)
|
|
773
775
|
|
|
774
776
|
# Integrate according to consensus metadata
|
|
775
777
|
study.integrate_chrom()
|
|
776
778
|
|
|
777
|
-
# link MS2 across the whole study
|
|
779
|
+
# link MS2 across the whole study and export them
|
|
778
780
|
study.find_ms2()
|
|
779
|
-
|
|
780
|
-
# Export MGF file
|
|
781
781
|
study.export_mgf()
|
|
782
782
|
|
|
783
|
-
# Save the study
|
|
783
|
+
# Save the study to .study5
|
|
784
784
|
study.save()
|
|
785
785
|
```
|
|
786
786
|
|
|
787
|
+
### Study-Level Plots
|
|
788
|
+
|
|
789
|
+
```python
|
|
790
|
+
# Plot features from multiple samples
|
|
791
|
+
study.plot_samples_2d()
|
|
792
|
+
|
|
793
|
+
# Plot consensus features
|
|
794
|
+
study.plot_consensus_2d()
|
|
795
|
+
|
|
796
|
+
# Plot overlaid chromatograms for specific consensus features (use their uid)
|
|
797
|
+
study.plot_chrom(uids=[1, 2, 3])
|
|
798
|
+
```
|
|
799
|
+
|
|
800
|
+
|
|
787
801
|
### Single Sample Processing
|
|
788
802
|
|
|
789
803
|
```python
|
|
@@ -801,15 +815,13 @@ sample.find_adducts()
|
|
|
801
815
|
# Find MS2 spectra
|
|
802
816
|
sample.find_ms2()
|
|
803
817
|
|
|
804
|
-
# Save results
|
|
818
|
+
# Save results to .sample5
|
|
805
819
|
sample.save()
|
|
806
820
|
```
|
|
807
821
|
|
|
808
|
-
## Visualization Examples
|
|
809
|
-
|
|
810
822
|
Masster provides extensive plotting capabilities for data exploration and quality control:
|
|
811
823
|
|
|
812
|
-
###
|
|
824
|
+
### Single sample visualization
|
|
813
825
|
|
|
814
826
|
```python
|
|
815
827
|
# Plot 2D overview of MS data with detected features
|
|
@@ -822,35 +834,14 @@ sample.plot_2d(
|
|
|
822
834
|
|
|
823
835
|
# Plot with feature filtering
|
|
824
836
|
sample.plot_2d(
|
|
825
|
-
filename="features_ms2_only.html"
|
|
826
|
-
show_only_features_with_ms2=True,
|
|
827
|
-
markersize=8
|
|
837
|
+
filename="features_ms2_only.html"
|
|
828
838
|
)
|
|
829
|
-
```
|
|
830
839
|
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
samples=None, # Use all samples
|
|
837
|
-
filename="multi_sample_overview.html",
|
|
838
|
-
markersize=3,
|
|
839
|
-
alpha_max=0.8
|
|
840
|
-
)
|
|
841
|
-
|
|
842
|
-
# Plot consensus features
|
|
843
|
-
study.plot_consensus_2d(
|
|
844
|
-
filename="consensus_features.html",
|
|
845
|
-
colorby="number_samples",
|
|
846
|
-
sizeby="inty_mean"
|
|
847
|
-
)
|
|
848
|
-
|
|
849
|
-
# Plot chromatograms for specific features
|
|
850
|
-
study.plot_chrom(
|
|
851
|
-
uids=[1, 2, 3], # Feature UIDs
|
|
852
|
-
filename="chromatograms.html",
|
|
853
|
-
aligned=True
|
|
840
|
+
# Plot extracted ion chromatogram
|
|
841
|
+
sample.plot_eic(
|
|
842
|
+
feature_uid=123,
|
|
843
|
+
rt_tol=10,
|
|
844
|
+
mz_tol=0.005
|
|
854
845
|
)
|
|
855
846
|
```
|
|
856
847
|
|
|
@@ -883,14 +874,6 @@ sample.plot_ms2_cycle(
|
|
|
883
874
|
filename="ms2_cycle.html",
|
|
884
875
|
centroid=True
|
|
885
876
|
)
|
|
886
|
-
|
|
887
|
-
# Plot extracted ion chromatogram
|
|
888
|
-
sample.plot_eic(
|
|
889
|
-
feature_uid=123,
|
|
890
|
-
rt_tol=10,
|
|
891
|
-
mz_tol=0.005,
|
|
892
|
-
filename="eic.html"
|
|
893
|
-
)
|
|
894
877
|
```
|
|
895
878
|
|
|
896
879
|
## File Format Support
|
|
@@ -919,13 +902,6 @@ python -m masster.demo.example_batch_process input_directory --recursive --dest
|
|
|
919
902
|
|
|
920
903
|
GNU Affero General Public License v3
|
|
921
904
|
|
|
922
|
-
## Contributing
|
|
923
|
-
|
|
924
|
-
Contributions are welcome! Please see our contributing guidelines and code of conduct.
|
|
925
|
-
|
|
926
905
|
## Citation
|
|
927
906
|
|
|
928
|
-
If you use Masster in your research, please cite
|
|
929
|
-
```
|
|
930
|
-
[Citation details to be added]
|
|
931
|
-
```
|
|
907
|
+
If you use Masster in your research, please cite this repository.
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
# MASSter
|
|
2
2
|
|
|
3
|
-
**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.
|
|
3
|
+
**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.
|
|
4
4
|
|
|
5
5
|
Most 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.
|
|
6
6
|
|
|
7
|
+
This is a poorly documented, stable branch of the development codebase in use in the Zamboni lab. Novel functionalities will be added based on need and requests.
|
|
8
|
+
|
|
7
9
|
## Features
|
|
8
10
|
|
|
9
11
|
- **Mass spectrometry data processing**: Support for multiple file formats (.wiff, .mzML, .raw, .mzpkl)
|
|
@@ -21,7 +23,7 @@ pip install masster
|
|
|
21
23
|
|
|
22
24
|
## Quick Start
|
|
23
25
|
|
|
24
|
-
### Basic Workflow
|
|
26
|
+
### Basic Workflow for analyzing LC-MS study with 2-... samples
|
|
25
27
|
|
|
26
28
|
```python
|
|
27
29
|
import masster
|
|
@@ -39,21 +41,33 @@ study.align(rt_max_diff=2.0)
|
|
|
39
41
|
study.find_consensus(min_samples=3)
|
|
40
42
|
|
|
41
43
|
# Retrieve missing data for quantification
|
|
42
|
-
study.
|
|
44
|
+
study.fill_chrom(abs_)
|
|
43
45
|
|
|
44
46
|
# Integrate according to consensus metadata
|
|
45
47
|
study.integrate_chrom()
|
|
46
48
|
|
|
47
|
-
# link MS2 across the whole study
|
|
49
|
+
# link MS2 across the whole study and export them
|
|
48
50
|
study.find_ms2()
|
|
49
|
-
|
|
50
|
-
# Export MGF file
|
|
51
51
|
study.export_mgf()
|
|
52
52
|
|
|
53
|
-
# Save the study
|
|
53
|
+
# Save the study to .study5
|
|
54
54
|
study.save()
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
+
### Study-Level Plots
|
|
58
|
+
|
|
59
|
+
```python
|
|
60
|
+
# Plot features from multiple samples
|
|
61
|
+
study.plot_samples_2d()
|
|
62
|
+
|
|
63
|
+
# Plot consensus features
|
|
64
|
+
study.plot_consensus_2d()
|
|
65
|
+
|
|
66
|
+
# Plot overlaid chromatograms for specific consensus features (use their uid)
|
|
67
|
+
study.plot_chrom(uids=[1, 2, 3])
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
|
|
57
71
|
### Single Sample Processing
|
|
58
72
|
|
|
59
73
|
```python
|
|
@@ -71,15 +85,13 @@ sample.find_adducts()
|
|
|
71
85
|
# Find MS2 spectra
|
|
72
86
|
sample.find_ms2()
|
|
73
87
|
|
|
74
|
-
# Save results
|
|
88
|
+
# Save results to .sample5
|
|
75
89
|
sample.save()
|
|
76
90
|
```
|
|
77
91
|
|
|
78
|
-
## Visualization Examples
|
|
79
|
-
|
|
80
92
|
Masster provides extensive plotting capabilities for data exploration and quality control:
|
|
81
93
|
|
|
82
|
-
###
|
|
94
|
+
### Single sample visualization
|
|
83
95
|
|
|
84
96
|
```python
|
|
85
97
|
# Plot 2D overview of MS data with detected features
|
|
@@ -92,35 +104,14 @@ sample.plot_2d(
|
|
|
92
104
|
|
|
93
105
|
# Plot with feature filtering
|
|
94
106
|
sample.plot_2d(
|
|
95
|
-
filename="features_ms2_only.html"
|
|
96
|
-
show_only_features_with_ms2=True,
|
|
97
|
-
markersize=8
|
|
107
|
+
filename="features_ms2_only.html"
|
|
98
108
|
)
|
|
99
|
-
```
|
|
100
109
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
samples=None, # Use all samples
|
|
107
|
-
filename="multi_sample_overview.html",
|
|
108
|
-
markersize=3,
|
|
109
|
-
alpha_max=0.8
|
|
110
|
-
)
|
|
111
|
-
|
|
112
|
-
# Plot consensus features
|
|
113
|
-
study.plot_consensus_2d(
|
|
114
|
-
filename="consensus_features.html",
|
|
115
|
-
colorby="number_samples",
|
|
116
|
-
sizeby="inty_mean"
|
|
117
|
-
)
|
|
118
|
-
|
|
119
|
-
# Plot chromatograms for specific features
|
|
120
|
-
study.plot_chrom(
|
|
121
|
-
uids=[1, 2, 3], # Feature UIDs
|
|
122
|
-
filename="chromatograms.html",
|
|
123
|
-
aligned=True
|
|
110
|
+
# Plot extracted ion chromatogram
|
|
111
|
+
sample.plot_eic(
|
|
112
|
+
feature_uid=123,
|
|
113
|
+
rt_tol=10,
|
|
114
|
+
mz_tol=0.005
|
|
124
115
|
)
|
|
125
116
|
```
|
|
126
117
|
|
|
@@ -153,14 +144,6 @@ sample.plot_ms2_cycle(
|
|
|
153
144
|
filename="ms2_cycle.html",
|
|
154
145
|
centroid=True
|
|
155
146
|
)
|
|
156
|
-
|
|
157
|
-
# Plot extracted ion chromatogram
|
|
158
|
-
sample.plot_eic(
|
|
159
|
-
feature_uid=123,
|
|
160
|
-
rt_tol=10,
|
|
161
|
-
mz_tol=0.005,
|
|
162
|
-
filename="eic.html"
|
|
163
|
-
)
|
|
164
147
|
```
|
|
165
148
|
|
|
166
149
|
## File Format Support
|
|
@@ -189,13 +172,6 @@ python -m masster.demo.example_batch_process input_directory --recursive --dest
|
|
|
189
172
|
|
|
190
173
|
GNU Affero General Public License v3
|
|
191
174
|
|
|
192
|
-
## Contributing
|
|
193
|
-
|
|
194
|
-
Contributions are welcome! Please see our contributing guidelines and code of conduct.
|
|
195
|
-
|
|
196
175
|
## Citation
|
|
197
176
|
|
|
198
|
-
If you use Masster in your research, please cite
|
|
199
|
-
```
|
|
200
|
-
[Citation details to be added]
|
|
201
|
-
```
|
|
177
|
+
If you use Masster in your research, please cite this repository.
|