Skip to content

Commit fdf5811

Browse files
committed
Merge branch 'documentation' into 'master'
Documentation See merge request mass-spectrometry/corems!68
2 parents 04f3079 + ee9e235 commit fdf5811

File tree

129 files changed

+133155
-1477
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+133155
-1477
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 2.5.3
2+
current_version = 2.0.0
33
commit = False
44
tag = False
55

.bumpversion.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tool.bumpversion]
2-
current_version = "2.5.3-1005"
2+
current_version = "2.0.0-1005"
33
parse = '(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(?:-(?P<build>\d+))?'
44
serialize = ["{major}.{minor}.{patch}-{build}",
55
"{major}.{minor}.{patch}"]

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ build:
9595
# KUBERNETES_CPU_LIMIT: "2"
9696
# KUBERNETES_MEMORY_REQUEST: 2Gi
9797
# KUBERNETES_MEMORY_LIMIT: 8Gi
98-
# CONTAINER_TAG: "2.5.3-1005"
98+
# CONTAINER_TAG: "2.0.0-1005"
9999

100100
# deployment:
101101

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ CoreMS aims to provide
4949

5050
## Current Version
5151

52-
`2.5.3.beta`
52+
`2.0`
5353

5454
## Main Developers/Contact
5555
- [Yuri. E. Corilo](mailto:[email protected])
@@ -104,11 +104,10 @@ CoreMS aims to provide
104104
- Peak picking using apex quadratic fitting
105105
- Experimental resolving power calculation
106106
- Frequency and m/z domain calibration functions:
107-
- LedFord equation [ref]
107+
- LedFord equation
108108
- Linear equation
109109
- Quadratic equation
110110
- Automatic search most abundant **Ox** homologue series
111-
- Step fit ('walking calibration") based on the LedFord equation [ref]
112111
- Automatic local (SQLite) or external (PostgreSQL) database check, generation, and search
113112
- Automatic molecular formulae assignments algorithm for ESI(-) MS for natural organic matter analysis
114113
- Automatic fine isotopic structure calculation and search for all isotopes
@@ -302,11 +301,11 @@ UML (unified modeling language) diagrams for Direct Infusion FT-MS and GC-MS cla
302301
## Citing CoreMS
303302
304303
If you use CoreMS in your work, please use the following citation:
305-
Version [1.0.0 Release on GitHub](https://github.com/EMSL-Computing/CoreMS/releases/tag/v1.0.0), archived on Zenodo:
304+
Version [2.0.0 Release on GitHub](https://github.com/EMSL-Computing/CoreMS/releases/tag/v2.0.0), archived on Zenodo:
306305
307306
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4641553.svg)](https://doi.org/10.5281/zenodo.4641553)
308307
```
309-
Yuri E. Corilo, William R. Kew, Lee Ann McCue (2021, March 27). EMSL-Computing/CoreMS: CoreMS 1.0.0 (Version v1.0.0), as developed on Github. Zenodo. http://doi.org/10.5281/zenodo.4641553
308+
Yuri E. Corilo, William R. Kew, Lee Ann McCue (2021, March 27). EMSL-Computing/CoreMS: CoreMS 2.0.0 (Version v2.0.0), as developed on Github. Zenodo. http://doi.org/10.5281/zenodo.4641553
310309
```
311310
## Disclaimer
312311

corems-k8s-debug.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ spec:
1414
spec:
1515
containers:
1616
- name: corems-debug-container
17-
image: code-registry.emsl.pnl.gov/mass-spectrometry/corems/corems-base-310-dotnet6:2.5.3-1003
17+
image: code-registry.emsl.pnl.gov/mass-spectrometry/corems/corems-base-310-dotnet6:2.0.0-1003
1818
command: ["/bin/sh"] # Specify the shell as the command
1919
args: ["-c", "sleep infinity"] # Run a command that keeps the container running
2020
stdin: true

corems/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = 'Yuri E. Corilo'
2-
__version__ = '2.5.3.beta'
2+
__version__ = '2.0.0'
33
__doc__ = '''
44
[![DOI](https://zenodo.org/badge/265072913.svg)](https://zenodo.org/badge/latestdoi/265072913)
55

corems/encapsulation/factory/parameters.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ class LCMSParameters:
7373

7474
def default_parameters(file_location): # pragma: no cover
7575
"""Generate parameters dictionary with the default parameters for data processing
76+
To gather parameters from instrument data during the data parsing step, a parameters dictionary with the default parameters needs to be generated.
77+
This dictionary acts as a placeholder and is later used as an argument for all the class constructor methods during instantiation.
78+
The data gathered from the instrument is added to the class properties.
7679
7780
Parameters
7881
----------

corems/encapsulation/factory/processingSetting.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class TransientSetting:
1616
implemented_apodization_function : tuple
1717
Available apodization functions
1818
apodization_method : str
19-
Apodization function to use. Hanning is a good default. For absorption mode processing, Half-Sine or Half-Kaiser may be more appropriate.
19+
Apodization function to use. Hanning is a good default for Fourier transform magnitude mode. For absorption mode processing, Half-Sine or Half-Kaiser may be more appropriate.
2020
number_of_truncations : int
2121
How many times to truncate the transient prior to Fourier transform
2222
number_of_zero_fills : int
@@ -120,15 +120,15 @@ class LiquidChromatographSetting:
120120
peak_max_prominence_percent : float, optional
121121
1-100 % used for baseline detection. Default is 1.
122122
peak_derivative_threshold : float, optional
123-
Default is 0.0005.
123+
Threshold for defining derivative crossing. Default is 0.0005.
124124
min_peak_datapoints : float, optional
125-
Default is 5.
125+
minimum data point to define a chromatografic peak. Default is 5.
126126
noise_threshold_method : str, optional
127127
Method for detecting noise threshold. Default is 'manual_relative_abundance'.
128128
noise_threshold_methods_implemented : tuple, optional
129129
Methods for detected noise threshold that can be implemented. Default is ('auto_relative_abundance', 'manual_relative_abundance', 'second_derivative').
130130
std_noise_threshold : int, optional
131-
Default is 3.
131+
the amount of standard deviations used to calculate noise thresould, average + (std_noise_threshold * noise). Default is 3.
132132
peak_height_min_percent : float, optional
133133
0-100 % used for peak detection. Default is 0.1.
134134
eic_signal_threshold : float, optional

corems/encapsulation/output/parameter_to_json.py

Lines changed: 69 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,17 @@
66
from corems.encapsulation.output import parameter_to_dict
77

88
def dump_all_settings_json(filename='SettingsCoreMS.json', file_path=None):
9+
"""
10+
Write JSON file into current directory with all the default settings for the CoreMS package.
11+
12+
Parameters:
13+
----------
14+
filename : str, optional
15+
The name of the JSON file to be created. Default is 'SettingsCoreMS.json'.
16+
file_path : str or Path, optional
17+
The path where the JSON file will be saved. If not provided, the file will be saved in the current working directory.
18+
"""
919

10-
'''Write JSON file into current directory
11-
'''
1220
data_dict_all = parameter_to_dict.get_dict_all_default_data()
1321

1422
if not file_path:
@@ -24,17 +32,22 @@ def dump_all_settings_json(filename='SettingsCoreMS.json', file_path=None):
2432
outfile.write(output)
2533

2634
def dump_ms_settings_json(filename='SettingsCoreMS.json', file_path=None):
27-
28-
'''Write JSON file into current directory
29-
'''
30-
data_dict = parameter_to_dict.get_dict_ms_default_data()
35+
"""
36+
Write JSON file into current directory with all the mass spectrum default settings for the CoreMS package.
37+
38+
Parameters
39+
----------
40+
filename : str, optional
41+
The name of the JSON file to be created. Default is 'SettingsCoreMS.json'.
42+
file_path : str or Path, optional
43+
The path where the JSON file will be saved. If not provided, the file will be saved in the current working directory.
3144
45+
"""
46+
data_dict = parameter_to_dict.get_dict_ms_default_data()
3247
if not file_path:
33-
3448
file_path = Path.cwd() / filename
3549

3650
with open(file_path, 'w', encoding='utf8', ) as outfile:
37-
3851
import re
3952
#pretty print
4053
output = json.dumps(data_dict, sort_keys=False, indent=4, separators=(',', ': '))
@@ -43,72 +56,98 @@ def dump_ms_settings_json(filename='SettingsCoreMS.json', file_path=None):
4356
outfile.write(output)
4457

4558
def dump_gcms_settings_json(filename='SettingsCoreMS.json', file_path=None):
46-
'''Write JSON file into current directory
47-
'''
59+
"""
60+
Write JSON file into current directory containing the default GCMS settings data.
61+
62+
Parameters
63+
----------
64+
filename : str, optional
65+
The name of the JSON file to be created. Default is 'SettingsCoreMS.json'.
66+
file_path : str or Path-like object, optional
67+
The path where the JSON file will be saved. If not provided, the file will be saved in the current working directory.
68+
"""
69+
4870
from pathlib import Path
4971
import json
5072

5173
data_dict = parameter_to_dict.get_dict_gcms_default_data()
5274

5375
if not file_path:
54-
5576
file_path = Path.cwd() / filename
5677

5778
with open(file_path, 'w', encoding='utf8', ) as outfile:
58-
5979
import re
6080
#pretty print
6181
output = json.dumps(data_dict, sort_keys=False, indent=4, separators=(',', ': '))
6282
output = re.sub(r'",\s+', '", ', output)
6383

64-
outfile.write(output)
84+
outfile.write(output)
6585

6686
def dump_all_settings_toml(filename='SettingsCoreMS.toml', file_path=None):
67-
87+
"""
88+
Write TOML file into the specified file path or the current directory with all the default settings for the CoreMS package.
89+
90+
Parameters
91+
----------
92+
filename : str, optional
93+
The name of the TOML file. Defaults to 'SettingsCoreMS.toml'.
94+
file_path : str or Path, optional
95+
The path where the TOML file will be saved. If not provided, the file will be saved in the current directory.
96+
97+
"""
6898
from pathlib import Path
6999

70-
'''Write TOML file into current directory
71-
'''
72100
data_dict_all = parameter_to_dict.get_dict_all_default_data()
73101

74102
if not file_path:
75-
file_path = Path.cwd() / filename
103+
file_path = Path.cwd() / filename
76104

77105
with open(file_path, 'w', encoding='utf8', ) as outfile:
78-
79106
import re
80-
#pretty print
81107
output = toml.dumps(data_dict_all)
82108
outfile.write(output)
83109

84110
def dump_ms_settings_toml(filename='SettingsCoreMS.toml', file_path=None):
85-
86-
'''Write TOML file into current directory
87-
'''
111+
"""
112+
Write TOML file into the current directory with all the mass spectrum default settings for the CoreMS package.
113+
114+
Parameters
115+
----------
116+
filename : str, optional
117+
The name of the TOML file to be created. Default is 'SettingsCoreMS.toml'.
118+
file_path : str or Path, optional
119+
The path where the TOML file should be saved. If not provided, the file will be saved in the current working directory.
120+
121+
"""
88122
data_dict = parameter_to_dict.get_dict_ms_default_data()
89123

90124
if not file_path:
91-
92125
file_path = Path.cwd() / filename
93126

94127
with open(file_path, 'w', encoding='utf8', ) as outfile:
95-
96128
import re
97-
#pretty print
129+
# pretty print
98130
output = toml.dumps(data_dict)
99131
outfile.write(output)
100132

101133
def dump_gcms_settings_toml(filename='SettingsCoreMS.toml', file_path=None):
102-
'''Write TOML file into current directory
103-
'''
134+
"""
135+
Write TOML file into current directory containing the default GCMS settings data.
136+
137+
Parameters
138+
----------
139+
filename : str, optional
140+
The name of the TOML file. Defaults to 'SettingsCoreMS.toml'.
141+
file_path : str or Path, optional
142+
The path where the TOML file will be saved. If not provided, the file will be saved in the current working directory.
104143
144+
"""
145+
105146
data_dict = parameter_to_dict.get_dict_gcms_default_data()
106147

107148
if not file_path:
108-
109149
file_path = Path.cwd() / filename
110150

111151
with open(file_path, 'w', encoding='utf8', ) as outfile:
112-
113152
output = toml.dumps(data_dict)
114-
outfile.write(output)
153+
outfile.write(output)

0 commit comments

Comments
 (0)