onurborasahin MaziyarPanahi commited on
Commit
b6fe300
·
verified ·
0 Parent(s):

Duplicate from OpenMed/agab-db

Browse files

Co-authored-by: Maziyar Panahi <MaziyarPanahi@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.lz4 filter=lfs diff=lfs merge=lfs -text
12
+ *.mds filter=lfs diff=lfs merge=lfs -text
13
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
14
+ *.model filter=lfs diff=lfs merge=lfs -text
15
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
16
+ *.npy filter=lfs diff=lfs merge=lfs -text
17
+ *.npz filter=lfs diff=lfs merge=lfs -text
18
+ *.onnx filter=lfs diff=lfs merge=lfs -text
19
+ *.ot filter=lfs diff=lfs merge=lfs -text
20
+ *.parquet filter=lfs diff=lfs merge=lfs -text
21
+ *.pb filter=lfs diff=lfs merge=lfs -text
22
+ *.pickle filter=lfs diff=lfs merge=lfs -text
23
+ *.pkl filter=lfs diff=lfs merge=lfs -text
24
+ *.pt filter=lfs diff=lfs merge=lfs -text
25
+ *.pth filter=lfs diff=lfs merge=lfs -text
26
+ *.rar filter=lfs diff=lfs merge=lfs -text
27
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
28
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
29
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
30
+ *.tar filter=lfs diff=lfs merge=lfs -text
31
+ *.tflite filter=lfs diff=lfs merge=lfs -text
32
+ *.tgz filter=lfs diff=lfs merge=lfs -text
33
+ *.wasm filter=lfs diff=lfs merge=lfs -text
34
+ *.xz filter=lfs diff=lfs merge=lfs -text
35
+ *.zip filter=lfs diff=lfs merge=lfs -text
36
+ *.zst filter=lfs diff=lfs merge=lfs -text
37
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
38
+ # Audio files - uncompressed
39
+ *.pcm filter=lfs diff=lfs merge=lfs -text
40
+ *.sam filter=lfs diff=lfs merge=lfs -text
41
+ *.raw filter=lfs diff=lfs merge=lfs -text
42
+ # Audio files - compressed
43
+ *.aac filter=lfs diff=lfs merge=lfs -text
44
+ *.flac filter=lfs diff=lfs merge=lfs -text
45
+ *.mp3 filter=lfs diff=lfs merge=lfs -text
46
+ *.ogg filter=lfs diff=lfs merge=lfs -text
47
+ *.wav filter=lfs diff=lfs merge=lfs -text
48
+ # Image files - uncompressed
49
+ *.bmp filter=lfs diff=lfs merge=lfs -text
50
+ *.gif filter=lfs diff=lfs merge=lfs -text
51
+ *.png filter=lfs diff=lfs merge=lfs -text
52
+ *.tiff filter=lfs diff=lfs merge=lfs -text
53
+ # Image files - compressed
54
+ *.jpg filter=lfs diff=lfs merge=lfs -text
55
+ *.jpeg filter=lfs diff=lfs merge=lfs -text
56
+ *.webp filter=lfs diff=lfs merge=lfs -text
57
+ # Video files - compressed
58
+ *.mp4 filter=lfs diff=lfs merge=lfs -text
59
+ *.webm filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,307 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ dataset_info:
3
+ features:
4
+ - name: dataset
5
+ dtype: string
6
+ - name: heavy_sequence
7
+ dtype: string
8
+ - name: light_sequence
9
+ dtype: string
10
+ - name: scfv
11
+ dtype: bool
12
+ - name: affinity_type
13
+ dtype: string
14
+ - name: affinity
15
+ dtype: string
16
+ - name: antigen_sequence
17
+ dtype: string
18
+ - name: confidence
19
+ dtype:
20
+ class_label:
21
+ names:
22
+ '0': medium
23
+ '1': high
24
+ '2': very_high
25
+ - name: nanobody
26
+ dtype: bool
27
+ - name: processed_measurement
28
+ dtype: float64
29
+ - name: target_name
30
+ dtype: string
31
+ - name: target_pdb
32
+ dtype: string
33
+ - name: target_uniprot
34
+ dtype: string
35
+ - name: source_url
36
+ dtype: string
37
+ - name: heavy_cdr1
38
+ dtype: string
39
+ - name: heavy_cdr2
40
+ dtype: string
41
+ - name: heavy_cdr3
42
+ dtype: string
43
+ - name: light_cdr1
44
+ dtype: string
45
+ - name: light_cdr2
46
+ dtype: string
47
+ - name: light_cdr3
48
+ dtype: string
49
+ splits:
50
+ - name: train
51
+ num_bytes: 2137958513
52
+ num_examples: 1227083
53
+ download_size: 339997839
54
+ dataset_size: 2137958513
55
+ configs:
56
+ - config_name: default
57
+ data_files:
58
+ - split: train
59
+ path: data/train-*
60
+ pretty_name: 'AgAb DB: Antigen Specific Antibody Database'
61
+ tags:
62
+ - biology
63
+ - immunology
64
+ - antibodies
65
+ - protein-protein-interactions
66
+ - drug-discovery
67
+ - computational-biology
68
+ - therapeutics
69
+ - machine-learning
70
+ - protein-sequence-modeling
71
+ - binding-affinity-prediction
72
+ - antibody-design
73
+ task_categories:
74
+ - text-classification
75
+ license: other
76
+ license_details: "Non-commercial research use only. Commercial inquiries should be directed to NaturalAntibody."
77
+ language:
78
+ - en
79
+ ---
80
+
81
+ # AgAb DB: Antigen Specific Antibody Database
82
+
83
+ A comprehensive collection of antibody-antigen interaction data for computational biology and therapeutic design.
84
+
85
+ ## Dataset Summary
86
+
87
+ AgAb DB aggregates antibody-antigen binding data from multiple sources, containing over 1.2 million antibody-antigen pairs with binding affinity measurements. This dataset is essential for training machine learning models in computational immunology and antibody engineering.
88
+
89
+ ## Key Statistics
90
+
91
+ - **1,227,083** antibody-antigen interaction records
92
+ - **309,884** unique antibodies (full antibodies, nanobodies, scFvs)
93
+ - **4,334** unique antigens
94
+ - **170,660** complete heavy/light chain pairs
95
+ - **70,388** nanobodies and **132,157** scFv antibodies
96
+ - **Focus on human health**: Infectious diseases, cancer, autoimmune conditions
97
+ - **Diverse antigen types**: Viral proteins, bacterial antigens, cancer markers, autoantigens
98
+
99
+ *Note: Statistics for unique antibodies/antigens are from original documentation and may be proportionally larger in the full 1.2M record dataset.*
100
+
101
+ ### Data Quality Distribution
102
+
103
+ - **51% very_high confidence** (robust sequences and methodology)
104
+ - **high confidence** (manually curated datasets)
105
+ - **medium confidence** (automated discovery, some uncertainty)
106
+
107
+ ### Affinity Measurement Types
108
+
109
+ - Quantitative metrics: Gibbs free energy changes, kinetic constants, IC₅₀
110
+ - Qualitative binding assessments
111
+ - Mixed data types across different sources
112
+
113
+ ## Data Structure
114
+
115
+ ### Core Fields
116
+
117
+ | Field | Type | Description |
118
+ |-------|------|-------------|
119
+ | `heavy_sequence` | string | Antibody heavy chain amino acid sequence |
120
+ | `light_sequence` | string | Antibody light chain amino acid sequence |
121
+ | `antigen_sequence` | string | Target antigen amino acid sequence |
122
+ | `affinity` | string | Binding affinity value |
123
+ | `confidence` | string | Data quality level (very_high, high, medium) |
124
+
125
+ ### Additional Metadata
126
+
127
+ | Field | Type | Description |
128
+ |-------|------|-------------|
129
+ | `dataset` | string | Original source dataset |
130
+ | `affinity_type` | string | Measurement type (KD, IC₅₀, etc.) |
131
+ | `nanobody` | bool | Whether it's a nanobody |
132
+ | `scfv` | bool | Single-chain variable fragment |
133
+ | `target_name` | string | Antigen name |
134
+ | `target_pdb` | string | PDB structure ID |
135
+ | `target_uniprot` | string | UniProt accession |
136
+ | `heavy_cdr1/cdr2/cdr3` | string | Complementarity-determining regions |
137
+ | `light_cdr1/cdr2/cdr3` | string | Light chain CDRs |
138
+
139
+ ## Dataset Split
140
+
141
+ - **Train**: All 1,227,083 records in a single training set
142
+
143
+ The full dataset is provided as a single training split to maximize available data for machine learning applications. Users can create their own validation/test splits as needed for their specific use cases.
144
+
145
+ ### Confidence Categories
146
+
147
+ - **very_high**: Both sequences and methodology used for calculating affinity were robust (e.g., AbDesign, BioMap, SKEMPI 2.0)
148
+ - **high**: Manually curated datasets or those containing antigen names/mutations rather than full sequences (e.g., FLAB datasets)
149
+ - **medium**: Automated data discovery with some uncertainty (e.g., patent databases)
150
+
151
+ ### Antibody Types Included
152
+
153
+ - **Full antibodies**: Complete heavy and light chain pairs (traditional monoclonal antibodies)
154
+ - **Nanobodies**: Single-domain antibodies (VHH format) - 70K+ entries across datasets
155
+ - **scFv**: Single-chain variable fragments - 132K+ entries, primarily from AlphaSeq
156
+ - **Mixed formats**: Various antibody fragment types and engineered variants
157
+
158
+ ### Nanobody Distribution by Source
159
+
160
+ | Source | Nanobody Count | Notes |
161
+ |--------|----------------|-------|
162
+ | AlphaSeq | 67,058 | Mutations for improved binding |
163
+ | Patents | 40,517 | Patent literature extraction |
164
+ | Literature | 1,936 | Research paper curation |
165
+ | Structures | 1,258 | PDB structure-derived |
166
+ | AATP, OSH, RMNA | ~133 | Specialized datasets |
167
+
168
+ ### scFv Distribution by Source
169
+
170
+ | Source | scFv Count | Notes |
171
+ |--------|------------|-------|
172
+ | AlphaSeq | 131,645 | Primary scFv source |
173
+ | Literature | 512 | Research paper curation |
174
+
175
+ ### Sequence Characteristics
176
+
177
+ - **Predominantly short sequences**: <150 amino acids typical
178
+ - **Majority include both chains**: Heavy and light chain pairs
179
+ - **Diverse antigen targets**: Infectious diseases, cancer, autoimmune conditions
180
+ - **Multiple affinity measurement types**: KD, IC₅₀, ΔG, binary binding
181
+
182
+ ## Usage
183
+
184
+ ### Load the Dataset
185
+
186
+ ```python
187
+ from datasets import load_dataset
188
+
189
+ # Load from OpenMed
190
+ dataset = load_dataset("OpenMed/agab-db")
191
+
192
+ # Access the training data (full dataset)
193
+ train_data = dataset["train"]
194
+
195
+ # Optional: Create your own validation/test splits
196
+ from sklearn.model_selection import train_test_split
197
+ import pandas as pd
198
+
199
+ # Convert to pandas for splitting
200
+ df = pd.DataFrame(train_data)
201
+ train_df, test_df = train_test_split(df, test_size=0.1, random_state=42)
202
+ train_df, val_df = train_test_split(train_df, test_size=0.1, random_state=42)
203
+ ```
204
+
205
+ ### Filter for Research
206
+
207
+ ```python
208
+ # High-quality data only
209
+ high_quality = dataset.filter(lambda x: x["confidence"] == "very_high")
210
+
211
+ # Nanobodies for specialized studies
212
+ nanobodies = dataset.filter(lambda x: x["nanobody"] == True)
213
+
214
+ # Specific antigens
215
+ covid_data = dataset.filter(lambda x: "covid" in x["target_name"].lower())
216
+ ```
217
+
218
+ ### Prepare for ML Training
219
+
220
+ ```python
221
+ # Extract sequences for language models
222
+ sequences = []
223
+ for item in dataset["train"]:
224
+ if item["heavy_sequence"]:
225
+ sequences.append(item["heavy_sequence"])
226
+ if item["light_sequence"]:
227
+ sequences.append(item["light_sequence"])
228
+ ```
229
+
230
+ ## Applications
231
+
232
+ ### Machine Learning Use Cases
233
+
234
+ - **Antibody language models**: Train sequence models on antibody repertoires for generative design
235
+ - **Binding affinity prediction**: Develop regression models for antibody-antigen interaction strength
236
+ - **Therapeutic design**: Guide rational antibody engineering and optimization
237
+ - **Computational immunology**: Study immune responses and antibody development patterns
238
+ - **Virtual screening**: Prioritize antibody candidates for experimental validation
239
+ - **Structure-affinity relationships**: Learn connections between 3D structures and binding properties
240
+
241
+ ### Research Applications
242
+
243
+ - **Antibody repertoire analysis**: Study natural antibody diversity and evolution
244
+ - **Cross-reactivity prediction**: Identify potential off-target effects
245
+ - **Immunogenicity assessment**: Predict antibody developability and safety
246
+ - **Drug discovery pipelines**: Accelerate hit identification and lead optimization
247
+ - **Comparative immunology**: Study antibody responses across different species
248
+
249
+ ### Integration with Other Tools
250
+
251
+ - **Protein structure prediction**: Use with ESMFold for 3D structure generation
252
+ - **Molecular dynamics**: Combine with simulation tools for binding mechanism studies
253
+ - **High-throughput screening**: Guide experimental antibody library screening
254
+ - **CRISPR engineering**: Design antibodies for gene therapy applications
255
+
256
+ ## Data Sources
257
+
258
+ Aggregated from 25+ datasets including GenBank, SKEMPI 2.0, peer-reviewed publications, and patent databases.
259
+
260
+ ### Major Dataset Components
261
+
262
+ | Dataset | Records | Unique Antibodies | Key Characteristics |
263
+ |---------|---------|-------------------|-------------------|
264
+ | **BUZZ** | 524,346 | 524,346 | Trastuzumab mutations binding to HER2 |
265
+ | **AlphaSeq** | 198,703 | 193,867 | Antibody mutations across 4 targets (TIGIT, SARS-CoV2-RBD, PD-1, HER2) |
266
+ | **ABBD** | 155,853 | 88,946 | Eight antibody-antigen cases with heavy chain mutations |
267
+ | **Patents** | 217,463 | 31,173 | NLP-extracted sequences from patent literature |
268
+ | **COVID-19** | 27,301 | 6,759 | SARS-CoV-2 neutralization data (Cov-AbDab) |
269
+ | **HIV** | 48,008 | 192 | HIV-targeting antibodies (LANL database) |
270
+ | **BioMap** | 2,725 | 728 | Binding ΔG values across 8 species |
271
+ | **Literature** | 5,580 | 4,841 | Curated from research articles (1,940 nanobodies) |
272
+ | **FLAB** | 6,849 | 6,798 | Five publications on viral/cancer targets |
273
+ | **ABDesign** | 672 | 672 | Systematic CDR-H3 point mutations |
274
+
275
+ ### Inclusion Criteria
276
+
277
+ - Transparency and completeness of data
278
+ - Relevance to human health
279
+ - Quantitative binding affinity measurements
280
+ - Complete amino acid sequences for all biomolecules
281
+
282
+ ### Data Processing Pipeline
283
+
284
+ 1. **Aggregation**: Collection from 14 distinct sources → 25 integrated datasets
285
+ 2. **Curation**: Multi-stage pipeline with automated extraction, normalization, and manual verification
286
+ 3. **Standardization**: Common structure implemented across all studies
287
+ 4. **Validation**: Automated feasibility checks and manual verification of critical datasets
288
+
289
+ ## Citation
290
+
291
+ ```bibtex
292
+ @dataset{agab_db,
293
+ title={AgAb DB: Antigen Specific Antibody Database},
294
+ author={NaturalAntibody},
295
+ year={2024},
296
+ url={https://naturalantibody.com/agab/}
297
+ }
298
+ ```
299
+
300
+ ## License
301
+
302
+ Available for non-commercial research use only. Contact NaturalAntibody for commercial licensing.
303
+
304
+ ---
305
+
306
+ *Dataset provided by [NaturalAntibody](https://naturalantibody.com/agab/)*
307
+
data/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e81ad6b65fd16c9bda6f95144e1fd30a0884985ae9bb3c6ba171ca661118efa
3
+ size 44095351
data/train-00000-of-00004.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9bf59d27fa2691259a607852299cd3e899285a5893a1e0c0c4cbb7c0fdd3db33
3
+ size 87038517
data/train-00001-of-00004.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1ac805f2b77101746f4a2279b18cecc2a610080b64ef1bf19132b46330ddda63
3
+ size 87641664
data/train-00002-of-00004.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4253744ec836ee6f895128af766c367df74a2e5e95e35d170c1430c7b1818d93
3
+ size 87161131
data/train-00003-of-00004.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87b7bf357b1b1f4c147df3620d792e83f5c74a86e7561ae77b2c39511c194c70
3
+ size 87839338
data/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:69a02f92013578fcf32179e700c73c4d63209daf898cfa1c45dc638af3581d2e
3
+ size 43365054