lordim commited on
Commit
5370e5d
·
verified ·
1 Parent(s): 7d9ce48

Add dataset card (README)

Browse files
Files changed (1) hide show
  1. README.md +132 -0
README.md CHANGED
@@ -1,3 +1,135 @@
1
  ---
2
  license: mit
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: mit
3
+ pretty_name: BenchRep-T
4
+ size_categories:
5
+ - 1K<n<10K
6
+ tags:
7
+ - immunology
8
+ - t-cell-receptor
9
+ - tcr-beta
10
+ - immune-repertoire
11
+ - AIRR
12
+ - immunoseq
13
+ - repertoire-classification
14
  ---
15
+
16
+ # BenchRep-T
17
+
18
+ **BenchRep-T** is a benchmark for **TCRβ (T-cell receptor β-chain) immune-repertoire classification**.
19
+ It bundles the multi-disease **Mal-ID** cohort together with four external disease cohorts
20
+ (sequenced on the Adaptive Biotechnologies **immunoSEQ** platform), providing per-specimen
21
+ repertoire files, harmonized sample metadata, and auxiliary files used for the
22
+ sequencing-depth *scaling-law* and *driver-sequence* experiments.
23
+
24
+ Each **specimen** (one sequenced repertoire) is one example; the classification target is the
25
+ specimen-level `disease` label.
26
+
27
+ ## Dataset structure
28
+
29
+ ```
30
+ BenchRep-T/
31
+ ├── Mal-ID/
32
+ │ ├── metadata.tsv # 550 specimen annotations + labels
33
+ │ ├── repertoires/ # 550 per-specimen TCRβ rearrangement tables (.tsv.gz)
34
+ │ ├── scaling_exp_depth_indices_max75k.json.gz # sampling indices for the depth scaling-law experiment
35
+ │ └── vdjdb_minervina_driver_seq_matches.csv # repertoire ↔ public/driver-clone matches (driver-seq experiment)
36
+ └── immunoSEQ/
37
+ ├── Savola_RA/ # Rheumatoid Arthritis
38
+ │ ├── metadata.tsv
39
+ │ └── repertoires/ # 91 .tsv.gz
40
+ ├── Musvosvi_TB/ # Tuberculosis (progression)
41
+ │ ├── metadata.tsv
42
+ │ └── repertoires/ # 140 .tsv.gz
43
+ ├── Rawat_T1D/ # Type 1 Diabetes
44
+ │ ├── metadata.tsv
45
+ │ └── repertoires/ # 614 .tsv.gz
46
+ └── Mitchell_T1D/ # Type 1 Diabetes
47
+ ├── metadata.tsv
48
+ └── repertoires/ # 196 .tsv.gz
49
+ ```
50
+
51
+ ## Cohorts
52
+
53
+ | Group | Path | Classification task | Repertoires | Label composition | Repertoire format | Source study |
54
+ |---|---|---|---|---|---|---|
55
+ | Mal-ID | `Mal-ID/` | Multi-disease vs. Healthy/Background | 550 | Healthy/Background 197, HIV 98, Lupus 64, Covid19 58, Influenza 37, T1D 96 | AIRR-style rearrangement table | Zaslavsky et al. 2025 |
56
+ | Savola_RA | `immunoSEQ/Savola_RA/` | Rheumatoid Arthritis vs. Healthy | 91 | RA 71, Healthy 20 | immunoSEQ export | Savola et al. 2017 |
57
+ | Musvosvi_TB | `immunoSEQ/Musvosvi_TB/` | TB Progressor vs. Controller | 140 | Progressor 63, Controller 77 | immunoSEQ export | Musvosvi et al. 2023 |
58
+ | Rawat_T1D | `immunoSEQ/Rawat_T1D/` | Type 1 Diabetes vs. Control | 614 | T1D 426, Healthy/Background 188 | immunoSEQ export (reduced) | Rawat et al. 2026 |
59
+ | Mitchell_T1D | `immunoSEQ/Mitchell_T1D/` | Type 1 Diabetes vs. Healthy | 196 | T1D 171, Healthy/Background 25 | immunoSEQ export | Mitchell et al. 2022 |
60
+
61
+ ## Files
62
+
63
+ - **`repertoires/*.tsv.gz`** — one gzip-compressed, tab-separated file per specimen; each row is a TCRβ
64
+ clone/rearrangement. The file stem is the specimen identifier (for the immunoSEQ cohorts it matches the
65
+ `specimen_label`/`sample_name`/`filename` column in that cohort's `metadata.tsv`; Rawat_T1D file names carry a `_TCRB` suffix).
66
+ - **`metadata.tsv`** — one row per specimen with the classification label and per-cohort annotations
67
+ (schemas differ across cohorts — see below).
68
+ - **`Mal-ID/scaling_exp_depth_indices_max75k.json.gz`** — precomputed read-sampling indices (up to 75k reads/specimen)
69
+ defining the subsampled repertoires used in the sequencing-depth scaling-law experiment.
70
+ - **`Mal-ID/vdjdb_minervina_driver_seq_matches.csv`** — matches between repertoire clones and known
71
+ public / antigen-specific "driver" TCRs (VDJdb + Minervina et al.), used for the driver-sequence experiment.
72
+ Columns: `disease, sample_cdr3, sample_vgene, sample_jgene, public_clone_cdr3, public_clone_vgene, public_clone_jgene, similarity, score, filename`.
73
+
74
+ ## Repertoire schemas
75
+
76
+ **Mal-ID** (AIRR-style, ~120 columns) — key fields: `sequence_id, repertoire_id, locus, v_call, d_call, j_call,
77
+ cdr3, cdr3_aa, junction, junction_aa, productive, participant_label, specimen_time_point`, plus full
78
+ nucleotide alignment / insertion-deletion columns.
79
+
80
+ **immunoSEQ cohorts** (Savola_RA, Musvosvi_TB, Mitchell_T1D; Adaptive immunoSEQ export, ~54 columns) — key fields:
81
+ `nucleotide, cdr3_aa, count (templates/reads), frequencyCount (%), v_call, j_call, vGeneName, jGeneName,
82
+ sequenceStatus, estimatedNumberGenomes, sequence, num_reads, repertoire_id, participant_label`.
83
+
84
+ **Rawat_T1D** (reduced immunoSEQ-derived, 17 columns): `cdr3_aa, count (templates/reads), frequency, nucleotide,
85
+ v_call, d_gene, j_call, sequenceStatus, v_family, d_family, j_family, v_resolved, d_resolved, j_resolved,
86
+ sequence, num_reads`.
87
+
88
+ ## Metadata schemas
89
+
90
+ All `metadata.tsv` files share `participant_label`, `specimen_label`, and `disease` (the classification target).
91
+ Cross-validation fold assignments are provided per cohort (`CV_fold` / `fold` /
92
+ `malid_cross_validation_fold_id_when_in_test_set`). Additional per-cohort columns:
93
+
94
+ - **Mal-ID / Mitchell_T1D**: `specimen_time_point, study_name, available_gene_loci, disease_subtype, age, sex, ancestry`.
95
+ - **Savola_RA / Musvosvi_TB**: immunoSEQ sample statistics (`total_templates, productive_templates,
96
+ fraction_productive, productive_simpson_clonality, sample_tags, sku, test_name`, …).
97
+ - **Rawat_T1D**: subject clinical/HLA fields (`diabetes_status, sex, age, duration, HLA A/B/C/DPB1/DQB1/DRB1…,
98
+ hla_high_risk_type, autoantibody statuses, ML_class`).
99
+
100
+ ## Usage
101
+
102
+ ```python
103
+ from huggingface_hub import snapshot_download
104
+ import pandas as pd, glob, os
105
+
106
+ # Download one cohort (metadata + repertoires)
107
+ local = snapshot_download(
108
+ repo_id="lordim/BenchRep-T",
109
+ repo_type="dataset",
110
+ allow_patterns="immunoSEQ/Savola_RA/*",
111
+ )
112
+
113
+ meta = pd.read_csv(f"{local}/immunoSEQ/Savola_RA/metadata.tsv", sep="\t")
114
+ rep_files = glob.glob(f"{local}/immunoSEQ/Savola_RA/repertoires/*.tsv.gz")
115
+ rep = pd.read_csv(rep_files[0], sep="\t") # pandas reads .gz transparently
116
+ ```
117
+
118
+ ## License
119
+
120
+ Released under the **MIT License**.
121
+
122
+ ## References
123
+
124
+ Source studies for each cohort:
125
+
126
+ - **Mal-ID** — Zaslavsky, Maxim E., et al. "Disease diagnostics using machine learning of B cell and T cell receptor sequences." *Science* 387.6736 (2025): eadp2407.
127
+ - **Savola_RA** — Savola, Paula, et al. "Somatic mutations in clonally expanded cytotoxic T lymphocytes in patients with newly diagnosed rheumatoid arthritis." *Nature Communications* 8.1 (2017): 15869.
128
+ - **Musvosvi_TB** — Musvosvi, Munyaradzi, et al. "T cell receptor repertoires associated with control and disease progression following Mycobacterium tuberculosis infection." *Nature Medicine* 29.1 (2023): 258-269.
129
+ - **Rawat_T1D** — Rawat, Puneet, et al. "Identification of a type 1 diabetes–associated T cell receptor repertoire signature from the human peripheral blood." *Science Advances* 12.7 (2026): eadx7448.
130
+ - **Mitchell_T1D** — Mitchell, Angela M., et al. "Temporal development of T cell receptor repertoires during childhood in health and disease." *JCI Insight* 7.18 (2022): e161885.
131
+
132
+ ## Citation
133
+
134
+ This dataset accompanies a manuscript currently under **double-blind peer review**.
135
+ Author and citation details will be added once the review process is complete.