bilalsm commited on
Commit
242e63c
·
verified ·
1 Parent(s): 561756f

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +76 -23
README.md CHANGED
@@ -8,6 +8,8 @@ tags:
8
  - DOM
9
  - formula-assignment
10
  - knn
 
 
11
  pretty_name: DOM Formula Assignment Dataset
12
  size_categories:
13
  - n<1K
@@ -15,11 +17,23 @@ size_categories:
15
 
16
  # DOM Formula Assignment Dataset
17
 
18
- This dataset contains training and testing data for Dissolved Organic Matter (DOM) formula assignment using K-Nearest Neighbors (KNN) machine learning models.
 
 
 
 
 
 
 
 
 
 
 
 
19
 
20
  ## Dataset Description
21
 
22
- The dataset includes mass spectrometry data from different sources and instruments used to train and evaluate KNN models for automated molecular formula assignment in DOM samples.
23
 
24
  ### Dataset Structure
25
 
@@ -50,10 +64,34 @@ The dataset includes mass spectrometry data from different sources and instrumen
50
  │ ├── PPFA/ # Pahokee Peat Fulvic Acid
51
  │ ├── SRFA2/ # Suwannee River Fulvic Acid 2
52
  │ └── SRFA3/ # Suwannee River Fulvic Acid 3
53
-
54
- └── knn_comparison_summary.csv # Model performance comparison results
55
  ```
56
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  ## Data Sources
58
 
59
  ### Training Data
@@ -90,9 +128,10 @@ Training and testing files contain:
90
 
91
  ### CSV Files
92
  - **Peaklists**: m/z, intensity, and spectral information
93
- - **Synthetic data**: Formula combinations with element counts
94
  - **Families tables**: Chemical family classifications
95
- - **Comparison summary**: Model performance metrics
 
96
 
97
  ## Usage
98
 
@@ -105,18 +144,35 @@ This dataset is designed to be used with the DOM KNN models available at:
105
  from huggingface_hub import hf_hub_download
106
  import pandas as pd
107
 
108
- # Download a specific file
109
  file_path = hf_hub_download(
110
  repo_id="bilalsm/dom-formula-assignment-data",
111
- filename="knn_comparison_summary.csv",
112
  repo_type="dataset"
113
  )
114
 
115
  # Load with pandas
116
- df = pd.read_csv(file_path)
117
  print(df.head())
118
  ```
119
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
120
  ### Download Entire Dataset
121
 
122
  ```python
@@ -130,6 +186,8 @@ data_path = snapshot_download(
130
  print(f"Dataset downloaded to: {data_path}")
131
  ```
132
 
 
 
133
  ## Statistics
134
 
135
  - **Total files**: ~82 files (17 Excel, 65 CSV)
@@ -141,30 +199,25 @@ print(f"Dataset downloaded to: {data_path}")
141
  - **Testing samples**: 3 independent DOM samples
142
  - **Peaklists**: 9 detailed acquisition files
143
 
144
- ## Model Performance
145
-
146
- The models trained on this dataset achieve:
147
-
148
- | Model Type | Assignment Rate | Accuracy |
149
- |-----------|----------------|----------|
150
- | Synthetic (synthetic_data) | 99.975% | 99.65% |
151
- | 7T-21T Ensemble (ver2 + ver3) | 95.355% | 99.84% |
152
- | 7T Only (ver2) | 81.815% | 99.84% |
153
- | 21T Only (ver3) | 81.815% | 99.84% |
154
-
155
- See `knn_comparison_summary.csv` for detailed results across all model variants.
156
 
157
  ## Citation
158
 
159
  This dataset supports research on automated formula assignment in DOM analysis using machine learning. A manuscript describing the methodology is currently under review.
160
 
 
 
161
  ## License
162
 
163
- This dataset is released under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License (CC BY-NC-ND 4.0).
 
 
164
 
165
  ## Contact
166
 
167
- For questions or issues with the dataset, please open an issue on the model repository or contact the authors.
 
 
168
 
169
  ## Related Resources
170
 
 
8
  - DOM
9
  - formula-assignment
10
  - knn
11
+ - dissolved-organic-matter
12
+ - molecular-formula
13
  pretty_name: DOM Formula Assignment Dataset
14
  size_categories:
15
  - n<1K
 
17
 
18
  # DOM Formula Assignment Dataset
19
 
20
+ [![GitHub](https://img.shields.io/badge/GitHub-pcdslab/dom--formula--assignment--using--ml-blue?logo=github)](https://github.com/pcdslab/dom-formula-assignment-using-ml)
21
+
22
+ **Training and Testing Data for Machine Learning-Based Molecular Formula Assignment in Fulvic Acid DOM Mass Spectra**
23
+
24
+ > **Paper**: Under review
25
+
26
+ ---
27
+
28
+ ## Abstract
29
+
30
+ Dissolved organic matter (DOM) is a critical component of aquatic ecosystems, with the fulvic acid fraction (FA-DOM) exhibiting high mobility and ready bioavailability to microbial communities. While understanding the molecular composition is a vital area of study, the heterogeneity of the material, with a vast number of diverse compounds, makes this task challenging. Existing methods often struggle with incomplete formula assignment or reduced coverage highlighting the need for a better approach. In this study, we developed a machine learning approach using the k-nearest neighbors (KNN) algorithm to predict molecular formulas from ultra-high-resolution mass spectrometry data. The model was trained on chemical formulas assigned to multiple DOM samples using 7 Tesla(7T) and a 21 Tesla(21T) Fourier transform ion cyclotron resonance mass spectrometry (FT-ICR MS) system, and tested on an independent 9.4 T FT-ICR MS Fulvic Acid dataset. A synthetic dataset of plausible elemental combinations (C, H, O, N, S) was also generated to enhance generalization. Our approach achieved a 99.9% assignment rate on the labeled test set and assigned a total of 13,605 formulas for unlabeled peaks compared to the existing approach, which assigned 5914 formulas, achieving up to a 2.3X improvement in formula assignment coverage compared to existing methods.
31
+
32
+ ---
33
 
34
  ## Dataset Description
35
 
36
+ This dataset contains training and testing data for Dissolved Organic Matter (DOM) formula assignment using K-Nearest Neighbors (KNN) machine learning models. The dataset includes mass spectrometry data from different sources and instruments (7T, 21T FT-ICR MS) used to train and evaluate KNN models for automated molecular formula assignment in DOM samples.
37
 
38
  ### Dataset Structure
39
 
 
64
  │ ├── PPFA/ # Pahokee Peat Fulvic Acid
65
  │ ├── SRFA2/ # Suwannee River Fulvic Acid 2
66
  │ └── SRFA3/ # Suwannee River Fulvic Acid 3
 
 
67
  ```
68
 
69
+ ---
70
+
71
+ ## Data Preview
72
+
73
+ ### Synthetic Data (formula_combinations_100-110.csv)
74
+ ```csv
75
+ Formula,Mass_Daltons
76
+ CH9OS2,100.0023
77
+ CHO2N4,100.0027
78
+ C3H3O3N,100.0041
79
+ C2H3O2N3,100.0153
80
+ ...
81
+ ```
82
+
83
+ ### Testing Set Peaklists (SRFA3_neg_8M_0.5s_5ppm_aFTk_PeakList_Rec.csv)
84
+ ```csv
85
+ m/z Exp.,Intensity
86
+ 101.0410446,0.002990723
87
+ 101.045957,0.006607056
88
+ 101.0480263,0.003494263
89
+ 101.0494431,0.006072998
90
+ ...
91
+ ```
92
+
93
+ ---
94
+
95
  ## Data Sources
96
 
97
  ### Training Data
 
128
 
129
  ### CSV Files
130
  - **Peaklists**: m/z, intensity, and spectral information
131
+ - **Synthetic data**: Formula combinations with element counts and mass values
132
  - **Families tables**: Chemical family classifications
133
+
134
+ ---
135
 
136
  ## Usage
137
 
 
144
  from huggingface_hub import hf_hub_download
145
  import pandas as pd
146
 
147
+ # Download a specific training file
148
  file_path = hf_hub_download(
149
  repo_id="bilalsm/dom-formula-assignment-data",
150
+ filename="DOM_training_set_ver2/Table_Harney_River_1.xlsx",
151
  repo_type="dataset"
152
  )
153
 
154
  # Load with pandas
155
+ df = pd.read_excel(file_path)
156
  print(df.head())
157
  ```
158
 
159
+ ### Download Synthetic Data
160
+
161
+ ```python
162
+ from huggingface_hub import hf_hub_download
163
+ import pandas as pd
164
+
165
+ # Download synthetic formula combinations
166
+ file_path = hf_hub_download(
167
+ repo_id="bilalsm/dom-formula-assignment-data",
168
+ filename="synthetic_data/formula_combinations_200-210.csv",
169
+ repo_type="dataset"
170
+ )
171
+
172
+ df = pd.read_csv(file_path)
173
+ print(f"Loaded {len(df)} synthetic formulas")
174
+ ```
175
+
176
  ### Download Entire Dataset
177
 
178
  ```python
 
186
  print(f"Dataset downloaded to: {data_path}")
187
  ```
188
 
189
+ ---
190
+
191
  ## Statistics
192
 
193
  - **Total files**: ~82 files (17 Excel, 65 CSV)
 
199
  - **Testing samples**: 3 independent DOM samples
200
  - **Peaklists**: 9 detailed acquisition files
201
 
202
+ ---
 
 
 
 
 
 
 
 
 
 
 
203
 
204
  ## Citation
205
 
206
  This dataset supports research on automated formula assignment in DOM analysis using machine learning. A manuscript describing the methodology is currently under review.
207
 
208
+ ---
209
+
210
  ## License
211
 
212
+ This model and associated code are released under the CC-BY-NC-ND 4.0 license and may only be used for non-commercial, academic research purposes with proper attribution. Any commercial use, sale, or other monetization of this model and its derivatives, which include models trained on outputs from the model or datasets created from the model, is prohibited and requires prior approval. Downloading the model requires prior registration on Hugging Face and agreeing to the terms of use. By downloading this model, you agree not to distribute, publish or reproduce a copy of the model. If another user within your organization wishes to use the model, they must register as an individual user and agree to comply with the terms of use. Users may not attempt to re-identify the deidentified data used to develop the underlying model. If you are a commercial entity, please contact the corresponding author.
213
+
214
+ ---
215
 
216
  ## Contact
217
 
218
+ For any additional questions or comments, contact Fahad Saeed (fsaeed@fiu.edu).
219
+
220
+ ---
221
 
222
  ## Related Resources
223