File size: 10,066 Bytes
6aa9f3d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
---
pretty_name: MSConsensus-186M
license: cc0-1.0
language:
  - en
size_categories:
  - 100M<n<1B
task_categories:
  - feature-extraction
  - other
tags:
  - proteomics
  - mass-spectrometry
  - tandem-mass-spectrometry
  - ms-ms
  - peptide-identification
  - de-novo-peptide-sequencing
  - fragment-intensity-prediction
  - spectral-embedding
  - batch-effect
  - consensus-spectra
  - biology
  - benchmark
source_datasets:
  - PRIDE
annotations_creators:
  - machine-generated
configs:
  - config_name: default
    data_files:
      - split: train
        path: train-*.parquet
      - split: validation
        path: validation-*.parquet
      - split: test
        path: test-*.parquet
dataset_info:
  features:
    - name: mz
      list: float32
    - name: intensity
      list: float32
    - name: charge
      dtype: int16
    - name: peptide
      dtype: string
  splits:
    - name: train
      num_examples: 182888542
    - name: validation
      num_examples: 1874483
    - name: test
      num_examples: 1851660
  download_size: 218789829259
---

# MSConsensus-186M

**A batch-effect-suppressed consensus MS/MS dataset for proteomics machine learning: every spectrum of MSConsensus v1.1, ready to train on.**

This repository holds all **186,614,685 consensus MS/MS spectra** of the MSConsensus **v1.1** release as ZSTD-compressed Parquet (about 219 GB), split into train / validation / test with **no peptide shared between splits**. Each row is one consensus spectrum with its peptide label and precursor charge.

The spectra were made by **Weighted-Score Binning (WSBIN)**, a consensus algorithm that produces *many* consensus spectra per precursor instead of one representative spectrum. This suppresses instrument-, lab- and protocol-specific batch effects while keeping biologically meaningful intensity structure and intra-cluster variance.

| | |
|---|---|
| **Primary hosting** | Harvard Dataverse — [doi:10.7910/DVN/NUCT4N](https://doi.org/10.7910/DVN/NUCT4N) (the `v1.1/` folder, Dataverse version 2.0) |
| **Previous release** | [`Gaolaboratory/MSConsensus-100M`](https://huggingface.co/datasets/Gaolaboratory/MSConsensus-100M) — 102M spectra sampled from MSConsensus v1.0 |
| **Leaderboard** | [msconsensus-leaderboard.netlify.app](https://msconsensus-leaderboard.netlify.app) |
| **Paper** | *MSConsensus: A Hundred-Million-Scale, Batch-Effect–Suppressed Dataset and Benchmark for Proteomics Machine Learning* (under review, NeurIPS 2026) |
| **License** | CC0 1.0 |

---

## What's in v1.1

| | MSConsensus v1.0 | MSConsensus v1.1 (this repo) |
|---|---|---|
| Consensus spectra | 110,209,043 | **186,614,685** |
| Published on Hugging Face | 102M-row sample ([MSConsensus-100M](https://huggingface.co/datasets/Gaolaboratory/MSConsensus-100M)) | **every spectrum** |
| Clusters (unique modified peptide + charge) | — | 832,111 |
| Distinct peptides (modified forms / base sequences) | — | 573,036 / 480,808 |
| Source PSMs (Percolator q ≤ 0.01, rank 1) | — | 510,589,474 |
| Contributing runs / projects | — | 86,395 / 1,425 (PRIDE v10 + PRIDE expansion + BioPlex) |
| Splits | random rows | **peptide-disjoint** |
| Mean peaks per spectrum | 257 | 160 |

---

## Usage

```python
from datasets import load_dataset

# Stream to avoid downloading about 219 GB up front
ds = load_dataset("Gaolaboratory/MSConsensus-186M", split="train", streaming=True)
ex = next(iter(ds))
print(ex["peptide"], ex["charge"], len(ex["mz"]))

# The evaluation splits are small enough to download in full (about 2.2 GB each)
val = load_dataset("Gaolaboratory/MSConsensus-186M", split="validation")
```

---

## Dataset Structure

### Data instances

Each row is one **consensus MS/MS spectrum** made by WSBIN from a cluster of identified spectra sharing a (modified peptide, charge) key. An example from the `validation` split, with the arrays truncated:

```python
{
  "mz":        [101.071, 102.055, 110.07, ...],         # 90 peaks, sorted ascending
  "intensity": [22874.9023, 72238.6641, 41087.2695, ...], # 90 values, aligned with mz
  "charge":    2,
  "peptide":   "ELEAEIYR"
}
```

### Data fields

| Field | Type | Description |
|---|---|---|
| `mz` | `list<float32>` | Consensus fragment-peak m/z values in Da (Th), sorted ascending. |
| `intensity` | `list<float32>` | Consensus peak intensities, the same length as `mz` and aligned with it. Values are **not normalized** and stay on the original detector scale. Normalize them yourself, for example to unit max or with L2 or sqrt. |
| `charge` | `int16` | Precursor charge state, 1–7. Most spectra are 2+ (50%) or 3+ (39%); the mean is 2.59. |
| `peptide` | `string` | Peptide sequence. Modifications are written inline as bracketed monoisotopic mass shifts, e.g. `C[57.0215]` for carbamidomethyl and `M[15.9949]` for oxidation. Sequences are 7–49 residues long; the strings, including modification brackets, have a median length of 17 characters. |

None of the columns are nullable. Spectra contain between 1 and 5,463 peaks, with a median of 141 and a mean of 160.

The schema is identical to [MSConsensus-100M](https://huggingface.co/datasets/Gaolaboratory/MSConsensus-100M), so code written for v1 runs unchanged.

**Available only in the full Dataverse release, not in this repository:** the remaining per-spectrum columns (`cluster_id`, `draw_index`, `precursor_mz`, `n_peaks`, draw statistics, PSM scores, `rt_pct_median`, `total_intensity_log10`) and the **provenance chain**. Each consensus row lists its member PSM uids, which the `v1.1/assign/` tables map to (PXD, run, scan) in PRIDE, so any spectrum can be regenerated or audited from the raw data.

### Data splits

| Split | Rows | Share | Base peptides | Shards | Size on disk |
|---|---|---|---|---|---|
| `train` | 182,888,542 | 98.00% | 471,353 | 732 | 214.4 GB |
| `validation` | 1,874,483 | 1.00% | 4,735 | 8 | 2.2 GB |
| `test` | 1,851,660 | 0.99% | 4,720 | 8 | 2.2 GB |
| **Total** | **186,614,685** | | **480,808** | 748 | 218.8 GB |

**The splits are peptide-disjoint.** Each *base peptide* (the sequence with bracketed modifications removed) is assigned as a whole to one split, so every charge state and every modified form of a sequence lands in the same split, and no base peptide occurs in more than one split. The assignment hashes each base peptide with seeded BLAKE2b (seed 42) and sends 1/102 of base peptides to validation, 1/102 to test and the rest to train — the same 100 : 1 : 1 ratio as MSConsensus-100M. Because whole peptides move together, the split sizes differ slightly from an exact 100 : 1 : 1 row ratio.

Within each split, rows are physically shuffled (seeded) and written as shards of 250,000 rows; the last shard of each split is shorter. `manifest.json` records the build parameters, a fingerprint of the 1,024 source shards, and the row count and SHA-256 of every shard, so you can verify downloads.

The splits were built with MSConsensus-Split `v1.1`.

---

## Dataset Creation

### Source data and consensus generation (v1.1)

1. **Uniform reanalysis** of 86,395 runs from 1,425 public projects (PRIDE v10, a PRIDE expansion set and BioPlex), keeping rank-1 PSMs at Percolator q ≤ 0.01: 510,589,474 PSMs.
2. **Clustering** by (modified peptide sequence, charge). Clusters with fewer than 20 PSMs were excluded; this drops 72% of peptide-charge combinations but only 1.7% of PSMs. 832,111 clusters remain.
3. **WSBIN consensus aggregation** with 225 draws per cluster, at most 50 member PSMs per draw (drawn with multiplicity), a bin width of 0.02 Th and a minimum peak-retention fraction of 0.25. Each draw produces one consensus spectrum.

The exact parameters are recorded in `v1.1/consensus/_consensus_ident.json` on Dataverse, and `v1.1/RELEASE_NOTES.md` describes the full layout.

### Annotations

Peptide labels are **machine-generated** by database search and Percolator rescoring. No manual labeling was done.

---

## Benchmark results (MSConsensus v1.0)

The three-task benchmark — spectral embedding retrieval, fragment-intensity prediction and de novo peptide identification — and its reported results are described in the paper and on the [leaderboard](https://msconsensus-leaderboard.netlify.app). **Those results were obtained with MSConsensus v1.0** and have not yet been re-run on v1.1; see the [MSConsensus-100M card](https://huggingface.co/datasets/Gaolaboratory/MSConsensus-100M) for the v1.0 numbers.

---

## Considerations for Using the Data

### Known limitations and biases

- **Consensus truth, not absolute truth.** Labels come from database search engines with Percolator rescoring at 1% FDR, so they inherit those tools' limitations. At this scale a marginal fraction of false-positive spectra may remain.
- **Many spectra per precursor.** Every cluster contributes up to 225 consensus spectra, so rows within a split are highly correlated. Account for this when estimating effective sample size, and evaluate at the peptide level where possible.
- **Rarely identified peptides are excluded.** Clustering requires at least 20 PSMs per (modified peptide, charge), so the dataset favours peptides that are identified often across public data.
- **Instrument and project coverage** follows what is deposited in public repositories. Rare platforms and acquisition modes are underrepresented.

---

## Licensing Information

MSConsensus-186M is released under **[CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/)**, matching the MSConsensus v1.1 release on Harvard Dataverse. Attribution to the original data depositors is appreciated: the project (PXD) of every contributing run is listed in `v1.1/assign/runs.parquet` on Dataverse.

## Citation

```bibtex
@inproceedings{msconsensus2026,
  title     = {{MSConsensus}: A Hundred-Million-Scale, Batch-Effect--Suppressed Dataset and Benchmark for Proteomics Machine Learning},
  author    = {Anonymous},
  booktitle = {Advances in Neural Information Processing Systems (NeurIPS)},
  year      = {2026},
  note      = {Under review},
  doi       = {10.7910/DVN/NUCT4N}
}
```