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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-nc-nd-4.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- other
|
| 5 |
+
tags:
|
| 6 |
+
- chemistry
|
| 7 |
+
- mass-spectrometry
|
| 8 |
+
- DOM
|
| 9 |
+
- formula-assignment
|
| 10 |
+
- knn
|
| 11 |
+
pretty_name: DOM Formula Assignment Dataset
|
| 12 |
+
size_categories:
|
| 13 |
+
- n<1K
|
| 14 |
+
---
|
| 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 |
+
|
| 26 |
+
```
|
| 27 |
+
βββ DOM_training_set_ver2/ # 7T FT-ICR MS training data
|
| 28 |
+
β βββ Table_Harney_River_*.xlsx # Harney River samples (5 files)
|
| 29 |
+
β βββ Table_Pantanal_*.xlsx # Pantanal samples (2 files)
|
| 30 |
+
β βββ Table_Suwannee_River_Fulvic_Acid_2.xlsx
|
| 31 |
+
β βββ Families_Tables/ # Chemical family classifications
|
| 32 |
+
β βββ Families-Short-hr1.csv
|
| 33 |
+
β βββ Families-Short-hr5.csv
|
| 34 |
+
β βββ Families-Short-pantanal.csv
|
| 35 |
+
β βββ Families-Short-srfa.csv
|
| 36 |
+
β
|
| 37 |
+
βββ DOM_training_set_ver3/ # 21T FT-ICR MS training data
|
| 38 |
+
β βββ Table_Harney_River_*_21T.xlsx # 21T Harney River samples (5 files)
|
| 39 |
+
β βββ Table_Suwannee_River_Fulvic_Acid_2_21T.xlsx
|
| 40 |
+
β
|
| 41 |
+
βββ synthetic_data/ # Synthetic formula combinations
|
| 42 |
+
β βββ formula_combinations_*.csv # 51 files covering m/z ranges 100-610
|
| 43 |
+
β
|
| 44 |
+
βββ DOM_testing_set/ # Testing samples
|
| 45 |
+
β βββ Table_Pahokee_River_Fulvic_Acid.xlsx
|
| 46 |
+
β βββ Table_Suwannee_River_Fulvic_Acid_2_v2.xlsx
|
| 47 |
+
β βββ Table_Suwannee_River_Fulvic_Acid_3.xlsx
|
| 48 |
+
β
|
| 49 |
+
βββ DOM_testing_set_Peaklists/ # Detailed peaklists for testing
|
| 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
|
| 60 |
+
|
| 61 |
+
- **7T FT-ICR MS Data (ver2)**: High-resolution mass spectrometry data from a 7 Tesla instrument
|
| 62 |
+
- 8 Excel files with assigned formulas
|
| 63 |
+
- Chemical family classification tables
|
| 64 |
+
|
| 65 |
+
- **21T FT-ICR MS Data (ver3)**: Ultra-high resolution data from a 21 Tesla instrument
|
| 66 |
+
- 6 Excel files with assigned formulas
|
| 67 |
+
- Higher mass accuracy and resolution
|
| 68 |
+
|
| 69 |
+
- **Synthetic Data**: Computationally generated formula combinations
|
| 70 |
+
- 51 CSV files covering m/z range 100-610 Da
|
| 71 |
+
- Used to expand training coverage for underrepresented m/z regions
|
| 72 |
+
|
| 73 |
+
### Testing Data
|
| 74 |
+
|
| 75 |
+
- **DOM Testing Set**: Independent samples for model validation
|
| 76 |
+
- Pahokee Peat Fulvic Acid (PPFA)
|
| 77 |
+
- Suwannee River Fulvic Acid standards (SRFA2, SRFA3)
|
| 78 |
+
|
| 79 |
+
- **Peaklists**: Detailed peak information with multiple acquisition methods
|
| 80 |
+
- Different pulse sequences (aFTk, aFTsk, dmFTk)
|
| 81 |
+
- CSV format with m/z and intensity data
|
| 82 |
+
|
| 83 |
+
## Data Format
|
| 84 |
+
|
| 85 |
+
### Excel Files (.xlsx)
|
| 86 |
+
Training and testing files contain:
|
| 87 |
+
- m/z values (mass-to-charge ratios)
|
| 88 |
+
- Assigned molecular formulas (C, H, O, N, S counts)
|
| 89 |
+
- Additional metadata depending on the sample
|
| 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 |
+
|
| 99 |
+
This dataset is designed to be used with the DOM KNN models available at:
|
| 100 |
+
[bilalsm/dom-formula-assignment-using-knn](https://huggingface.co/bilalsm/dom-formula-assignment-using-knn)
|
| 101 |
+
|
| 102 |
+
### Loading the Dataset
|
| 103 |
+
|
| 104 |
+
```python
|
| 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
|
| 123 |
+
from huggingface_hub import snapshot_download
|
| 124 |
+
|
| 125 |
+
# Download all data
|
| 126 |
+
data_path = snapshot_download(
|
| 127 |
+
repo_id="bilalsm/dom-formula-assignment-data",
|
| 128 |
+
repo_type="dataset"
|
| 129 |
+
)
|
| 130 |
+
print(f"Dataset downloaded to: {data_path}")
|
| 131 |
+
```
|
| 132 |
+
|
| 133 |
+
## Statistics
|
| 134 |
+
|
| 135 |
+
- **Total files**: ~82 files (17 Excel, 65 CSV)
|
| 136 |
+
- **Total size**: ~73 MB
|
| 137 |
+
- **Training samples**:
|
| 138 |
+
- 8 files (7T data)
|
| 139 |
+
- 6 files (21T data)
|
| 140 |
+
- 51 synthetic files
|
| 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 |
+
|
| 171 |
+
- **Model Repository**: [bilalsm/dom-formula-assignment-using-knn](https://huggingface.co/bilalsm/dom-formula-assignment-using-knn)
|
| 172 |
+
- **GitHub Repository**: [pcdslab/dom-formula-assignment-using-ml](https://github.com/pcdslab/dom-formula-assignment-using-ml)
|