File size: 11,729 Bytes
b876527 21ededd b876527 21ededd b876527 0eecc1d b876527 21ededd 7158c42 21ededd b876527 32879d2 b876527 32879d2 b876527 32879d2 b876527 32879d2 b876527 21ededd 32879d2 b876527 32879d2 b876527 32879d2 b876527 32879d2 b876527 32879d2 b876527 32879d2 b876527 32879d2 b876527 32879d2 b876527 32879d2 b876527 21ededd b876527 21ededd | 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 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 | ---
pretty_name: Assay-aware BindingDB
tags:
- binding-affinity
- drug-discovery
- protein-ligand
- biophysics
- chemistry
- biology
- tabular
- datasets
size_categories:
- 100K<n<1M
configs:
- config_name: default
default: true
data_files:
- split: full
path:
- data/itc.jsonl
- data/spr.jsonl
- data/fpa.jsonl
- data/rba.jsonl
features: &bindingdb_features
- name: reactant_set_id
dtype: int64
- name: pmid
dtype: int64
- name: protein
dtype: string
- name: ligand
struct:
- name: smiles
dtype: string
- name: affinity_data
struct:
- name: type
dtype: string
- name: value
dtype: float64
- name: relation
dtype: string
- name: unit
dtype: string
- name: DESCRIPTION
dtype: string
- name: search_path
sequence: string
- name: supplementary_source
sequence: string
- name: references_previous
dtype: string
- name: original_paragraph
dtype: string
- name: structured_description
dtype: string
- name: assay_type
dtype: string
- name: source_filename
dtype: string
- name: source_record_key
dtype: string
- config_name: itc
data_files:
- split: full
path: data/itc.jsonl
features: *bindingdb_features
- config_name: spr
data_files:
- split: full
path: data/spr.jsonl
features: *bindingdb_features
- config_name: rba
data_files:
- split: full
path: data/rba.jsonl
features: *bindingdb_features
- config_name: fpa
data_files:
- split: full
path: data/fpa.jsonl
features: *bindingdb_features
- config_name: itc_seed_0
data_dir: data/splits/itc/seed_0
features: *bindingdb_features
- config_name: itc_seed_1
data_dir: data/splits/itc/seed_1
features: *bindingdb_features
- config_name: itc_seed_2
data_dir: data/splits/itc/seed_2
features: *bindingdb_features
- config_name: itc_seed_3
data_dir: data/splits/itc/seed_3
features: *bindingdb_features
- config_name: itc_seed_4
data_dir: data/splits/itc/seed_4
features: *bindingdb_features
- config_name: itc_seed_5
data_dir: data/splits/itc/seed_5
features: *bindingdb_features
- config_name: itc_seed_6
data_dir: data/splits/itc/seed_6
features: *bindingdb_features
- config_name: itc_seed_7
data_dir: data/splits/itc/seed_7
features: *bindingdb_features
- config_name: itc_seed_8
data_dir: data/splits/itc/seed_8
features: *bindingdb_features
- config_name: itc_seed_9
data_dir: data/splits/itc/seed_9
features: *bindingdb_features
- config_name: spr_seed_0
data_dir: data/splits/spr/seed_0
features: *bindingdb_features
- config_name: spr_seed_1
data_dir: data/splits/spr/seed_1
features: *bindingdb_features
- config_name: spr_seed_2
data_dir: data/splits/spr/seed_2
features: *bindingdb_features
- config_name: spr_seed_3
data_dir: data/splits/spr/seed_3
features: *bindingdb_features
- config_name: spr_seed_4
data_dir: data/splits/spr/seed_4
features: *bindingdb_features
- config_name: spr_seed_5
data_dir: data/splits/spr/seed_5
features: *bindingdb_features
- config_name: spr_seed_6
data_dir: data/splits/spr/seed_6
features: *bindingdb_features
- config_name: spr_seed_7
data_dir: data/splits/spr/seed_7
features: *bindingdb_features
- config_name: spr_seed_8
data_dir: data/splits/spr/seed_8
features: *bindingdb_features
- config_name: spr_seed_9
data_dir: data/splits/spr/seed_9
features: *bindingdb_features
- config_name: rba_seed_0
data_dir: data/splits/rba/seed_0
features: *bindingdb_features
- config_name: rba_seed_1
data_dir: data/splits/rba/seed_1
features: *bindingdb_features
- config_name: rba_seed_2
data_dir: data/splits/rba/seed_2
features: *bindingdb_features
- config_name: rba_seed_3
data_dir: data/splits/rba/seed_3
features: *bindingdb_features
- config_name: rba_seed_4
data_dir: data/splits/rba/seed_4
features: *bindingdb_features
- config_name: rba_seed_5
data_dir: data/splits/rba/seed_5
features: *bindingdb_features
- config_name: rba_seed_6
data_dir: data/splits/rba/seed_6
features: *bindingdb_features
- config_name: rba_seed_7
data_dir: data/splits/rba/seed_7
features: *bindingdb_features
- config_name: rba_seed_8
data_dir: data/splits/rba/seed_8
features: *bindingdb_features
- config_name: rba_seed_9
data_dir: data/splits/rba/seed_9
features: *bindingdb_features
- config_name: fpa_seed_0
data_dir: data/splits/fpa/seed_0
features: *bindingdb_features
- config_name: fpa_seed_1
data_dir: data/splits/fpa/seed_1
features: *bindingdb_features
- config_name: fpa_seed_2
data_dir: data/splits/fpa/seed_2
features: *bindingdb_features
- config_name: fpa_seed_3
data_dir: data/splits/fpa/seed_3
features: *bindingdb_features
- config_name: fpa_seed_4
data_dir: data/splits/fpa/seed_4
features: *bindingdb_features
- config_name: fpa_seed_5
data_dir: data/splits/fpa/seed_5
features: *bindingdb_features
- config_name: fpa_seed_6
data_dir: data/splits/fpa/seed_6
features: *bindingdb_features
- config_name: fpa_seed_7
data_dir: data/splits/fpa/seed_7
features: *bindingdb_features
- config_name: fpa_seed_8
data_dir: data/splits/fpa/seed_8
features: *bindingdb_features
- config_name: fpa_seed_9
data_dir: data/splits/fpa/seed_9
features: *bindingdb_features
---
# Assay-aware BindingDB
Assay-aware BindingDB is a collection of protein–ligand binding
records organized by experimental assay type. Each row represents a BindingDB
reactant set and includes its measured affinity, source publication, original
experimental context, and an assay-specific structured description.
The complete dataset remains available as the `full` split. Four assay
configurations provide direct access to ITC, SPR, FPA, or RBA records, and 40
training-compatible configurations provide predefined training, validation,
and test partitions for seeds 0 through 9.
## Configurations and splits
The `default` configuration contains all four assays in one `full` split.
The `itc`, `spr`, `rba`, and `fpa` configurations each expose one complete
assay as `full` without applying training eligibility filters.
Configurations named `<assay>_seed_<seed>` reproduce the data used in the downstream binding affinity prediction experiments for seeds 0–9 and expose `train`, `validation`, and `test` splits.
Eligible records require:
- A precomputed Boltz-2 affinity representation.
- A Qwen3 assay-context embedding.
- Exactly one positive numeric Kd, Ki, or IC50 value.
- No `<` or `>` qualifier.
Unique PMIDs are shuffled with NumPy `RandomState(seed)`. Using integer truncation, 20% are assigned to test, 10% to validation, and the remainder to train, preventing PMID leakage.
## Data schema
| Field | Type | Description |
|---|---|---|
| `reactant_set_id` | integer | BindingDB reactant-set identifier and primary record identifier. |
| `pmid` | integer | PubMed identifier for the source publication. |
| `protein` | string | Protein or biological target name. |
| `ligand.smiles` | string | Ligand structure represented as SMILES. |
| `affinity_data.type` | string | Measurement type, such as `Kd`, `Ki`, or `IC50`. |
| `affinity_data.value` | float | Numeric affinity value. |
| `affinity_data.relation` | string | Reported comparison operator, such as `=`, `<`, or `>`. |
| `affinity_data.unit` | string | Unit associated with the affinity value. |
| `DESCRIPTION` | string | BindingDB assay description. |
| `assay_type` | string | One of `itc`, `spr`, `fpa`, or `rba`. |
| `search_path` | list of strings | Locations searched when extracting experimental context. |
| `supplementary_source` | list of strings | Supplementary sources used during extraction. |
| `references_previous` | string, nullable | Relevant preceding references captured from the publication. |
| `original_paragraph` | JSON string, nullable | Source passages serialized as JSON. |
| `structured_description` | JSON string, nullable | Assay-aware structured extraction serialized as JSON. |
| `source_filename` | string | Name of the source JSON file. |
| `source_record_key` | string | Original record key in the source file. |
`original_paragraph` and `structured_description` are JSON-encoded strings
rather than nested Arrow objects because their internal structures vary among
publications and assay types. They can be decoded into Python objects when
nested data is needed. Both fields are nullable.
## Examples
Install the Hugging Face Datasets library before running the examples:
```bash
pip install datasets
```
### Load the full dataset
```python
from datasets import load_dataset
dataset = load_dataset(
"anonymousapple/Assay-aware-BindingDB",
split="full",
)
print(dataset)
print(f"Number of records: {len(dataset):,}")
```
### Load one complete assay
Pass the assay configuration name as the second argument:
```python
from datasets import load_dataset
dataset = load_dataset(
"anonymousapple/Assay-aware-BindingDB",
"itc",
split="full",
)
print(f"ITC records: {len(dataset)}")
```
### Read an individual record
```python
record = dataset[0]
print("Reactant set:", record["reactant_set_id"])
print("PMID:", record["pmid"])
print("Assay:", record["assay_type"])
print("Protein:", record["protein"])
print("Ligand SMILES:", record["ligand"]["smiles"])
affinity = record["affinity_data"]
print(
"Affinity:",
affinity["type"],
affinity["relation"],
affinity["value"],
affinity["unit"],
)
```
### Read multiple records
```python
for record in dataset.select(range(5)):
print(
record["reactant_set_id"],
record["protein"],
record["assay_type"],
)
```
### Read structured descriptions
Use `json.loads()` to decode the JSON string and `json.dumps()` with
indentation to display it in a readable structure:
```python
import json
record = dataset[0]
value = record["structured_description"]
if value is not None:
structured_description = json.loads(value)
print(
json.dumps(
structured_description,
indent=2,
ensure_ascii=False,
)
)
```
After decoding, nested values can be accessed normally:
```python
if record["structured_description"] is not None:
structured_description = json.loads(
record["structured_description"]
)
print(json.dumps(structured_description, indent=2, ensure_ascii=False))
```
The same approach works for `original_paragraph`:
```python
value = record["original_paragraph"]
if value is not None:
original_paragraph = json.loads(value)
print(json.dumps(original_paragraph, indent=2, ensure_ascii=False))
```
### Load a training-compatible seeded split
Combine the assay and split seed in the configuration name, then select a
normal Hugging Face split:
```python
from datasets import load_dataset
itc_train_seed_1 = load_dataset(
"anonymousapple/Assay-aware-BindingDB",
"itc_seed_1",
split="train",
)
itc_validation_seed_1 = load_dataset(
"anonymousapple/Assay-aware-BindingDB",
"itc_seed_1",
split="validation",
)
itc_test_seed_1 = load_dataset(
"anonymousapple/Assay-aware-BindingDB",
"itc_seed_1",
split="test",
)
```
|