Commit ·
7d7852d
verified ·
0
Parent(s):
Duplicate from InstaDeepAI/CoVUniBind
Browse filesCo-authored-by: Francesco Saccon <fsaccon@users.noreply.huggingface.co>
- .gitattributes +61 -0
- README.md +118 -0
- antibody_info/antibody_synonyms.parquet +3 -0
- cov-unibind.py +131 -0
- data/covabdab_binding.parquet +3 -0
- data/dms_bloom_ab_escape.parquet +3 -0
- data/dms_cao_ab_escape.parquet +3 -0
- data/drdb_binding_potency.parquet +3 -0
- data/jian_elisa_ab_ic50.parquet +3 -0
- data/spr_ab_affinity.parquet +3 -0
- data/structures/processed.zip +3 -0
- data/structures/trimmed.zip +3 -0
- scores/covabdab_binding_scores.parquet +3 -0
- scores/dms_bloom_ab_escape_scores.parquet +3 -0
- scores/dms_cao_ab_escape_scores.parquet +3 -0
- scores/drdb_binding_potency_scores.parquet +3 -0
- scores/jian_elisa_ab_ic50_scores.parquet +3 -0
- scores/spr_ab_affinity_scores.parquet +3 -0
.gitattributes
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|
| 60 |
+
sars_binding_dataset_paper_data_dms_bloom_ab_escape.csv filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
sars_binding_dataset_paper_data_dms_cao_ab_escape.csv filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- antibody
|
| 4 |
+
- antigen
|
| 5 |
+
- binding
|
| 6 |
+
- COVID-19
|
| 7 |
+
- SARS-CoV-2
|
| 8 |
+
- benchmark
|
| 9 |
+
pretty_name: CoV-UniBind
|
| 10 |
+
---
|
| 11 |
+
<div align="center">
|
| 12 |
+
|
| 13 |
+
<h1>CoV-UniBind - Coronavirus Unified Binding Database</h1>
|
| 14 |
+
|
| 15 |
+
</div>
|
| 16 |
+
|
| 17 |
+
<p align="center">
|
| 18 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/681b661257cfafb5ead152d1/WvLoDuemHIwY8bQfOMahb.png" alt="Description" width="300"/>
|
| 19 |
+
</p>
|
| 20 |
+
|
| 21 |
+
**CoV-UniBind** curates and integrates structural and biochemical data on antibodies specifically elicited by SARS-CoV-2 and
|
| 22 |
+
related coronaviruses. It links 3D antibody structures to their binding properties across viral variants, incorporating
|
| 23 |
+
epitope and sequence information. This dataset serves as a comprehensive resource for analysing antibody-antigen
|
| 24 |
+
interactions in the context of COVID-19 and provides a foundation for binding classification and regression tasks using
|
| 25 |
+
deep learning models.
|
| 26 |
+
|
| 27 |
+
## Database Overview
|
| 28 |
+
|
| 29 |
+
| Dataset | Description | Label | Type | References (doi) |
|
| 30 |
+
|------|-------------|-------|-----| ------- |
|
| 31 |
+
| covabdab | Binding labels from the Coronavirus Antibody Database (CoV-AbDab) | binding | bool | 10.1093/bioinformatics/btaa739 |
|
| 32 |
+
| dms_bloom | Deep Mutational Scanning escape data from Greaney et al. 2022 | escape | float | 10.1038/s41564-021-00972-2; 10.1016/j.chom.2020.11.007; 10.1038/s41467-021-24435-8; 10.1016/j.xcrm.2021.100255; 10.1126/science.abf9302; 10.1038/s41467-021-24435-8; 10.1038/s41564-021-00972-2; 10.1038/s41586-021-04385-3; 10.1038/s41586-022-04980-y; 10.1038/s41586-021-03817-4; 10.1038/s41586-021-03807-6 |
|
| 33 |
+
| dms_cao | Deep Mutational Scanning escape data from Cao et al. 2023 | escape | float | 10.1038/s41586-022-05644-7 |
|
| 34 |
+
| jian_elisa | ELISA antibody IC50 measurements from Jian et al. 2025 | IC50 | float | 10.1038/s41586-024-08315-x |
|
| 35 |
+
| spr | Surface Plasmon Resonance antibody affinity measurements from multiple sources | KD | float | 10.1038/s41467-024-54916-5; 10.1038/s41586-020-2380-z; 10.1038/s41467-021-24514-w; 10.1016/j.immuni.2022.06.005; 10.1016/j.xcrm.2023.100991 |
|
| 36 |
+
| drdb | Neutralisation potency data from the SARS-CoV-2 Resistance Database (DRDB) | IC50 | float | 10.1371/journal.pone.0261045 |
|
| 37 |
+
|
| 38 |
+
## Database Structure
|
| 39 |
+
```
|
| 40 |
+
.
|
| 41 |
+
├── antibody_info
|
| 42 |
+
│ └── antibody_synonyms.csv
|
| 43 |
+
├── data
|
| 44 |
+
│ ├── covabdab_binding.parquet
|
| 45 |
+
│ │ └── structures
|
| 46 |
+
│ │ ├── processed.zip
|
| 47 |
+
│ │ └── trimmed.zip
|
| 48 |
+
│ ├── dms_bloom_ab_escape.parquet
|
| 49 |
+
│ ├── dms_cao_ab_escape.parquet
|
| 50 |
+
│ ├── drdb_binding_potency.parquet
|
| 51 |
+
│ ├── jian_elisa_ab_ic50.parquet
|
| 52 |
+
│ └── spr_ab_affinity.parquet
|
| 53 |
+
├── scores
|
| 54 |
+
│ ├── covabdab_binding_scores.parquet
|
| 55 |
+
│ ├── dms_bloom_ab_escape_scores.parquet
|
| 56 |
+
│ ├── dms_cao_ab_escape_scores.parquet
|
| 57 |
+
│ ├── drdb_binding_potency_scores.parquet
|
| 58 |
+
│ ├── jian_elisa_ab_ic50_scores.parquet
|
| 59 |
+
│ └── spr_ab_affinity_scores.parquet
|
| 60 |
+
├── cov-unibind.py
|
| 61 |
+
└── README.md
|
| 62 |
+
```
|
| 63 |
+
|
| 64 |
+
## Usage Guide
|
| 65 |
+
|
| 66 |
+
```python
|
| 67 |
+
from datasets import load_dataset
|
| 68 |
+
|
| 69 |
+
data='drbd' # specify the dataset name based on table above
|
| 70 |
+
|
| 71 |
+
dataset = load_dataset("InstaDeepAI/cov-unibind",name=data)
|
| 72 |
+
```
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
## Dataset Schema
|
| 76 |
+
|
| 77 |
+
The table below includes information about the columns contained in the datasets.
|
| 78 |
+
|
| 79 |
+
| Column Name | Description | Type | Nullable | Example |
|
| 80 |
+
|---|---|---|---|---|
|
| 81 |
+
| `antibody_name` | Name of the antibody | *str* | False | `bd30_515;bd_515` |
|
| 82 |
+
| `antigen_lineage` | Antigen lineage | *str* | False | `BA.1` |
|
| 83 |
+
| `target_value` | Experimental binding value| *float* or *bool* | False | `-2.327902` or `True` |
|
| 84 |
+
| `target_type` | Type of target value | *str* | False | `IC50_log10_fold` |
|
| 85 |
+
| `source_name` | Source of the data | *str* | False | `jian_2024_nature` |
|
| 86 |
+
| `source_doi` | DOI of the source | *str* | False | `10.1038/s41586-024-08315-x` |
|
| 87 |
+
| `assay_name` | Name of the assay | *str* | False | `elisa` |
|
| 88 |
+
| `pdb_id` | PDB structure ID | *str* | False | `7e88` |
|
| 89 |
+
| `structure_release_date` | Release date of the structure | *str* | False | `03/01/21` |
|
| 90 |
+
| `structure_resolution` | Resolution of the structure (Å) | *float* | False | `3.14` |
|
| 91 |
+
| `mutations` | Lineage consensus mutations | *str* | False | `A67V H69- V70- T95I...` |
|
| 92 |
+
| `antigen_chain_ids` | Chain IDs of the antigen | *str* | False | `C` |
|
| 93 |
+
| `antigen_domain` | Domain of the antigen | *str* | False | `RBD` |
|
| 94 |
+
| `antigen_residue_indices` | Residue indices of the antigen | *str* | False | `(13, 568)` |
|
| 95 |
+
| `antigen_residue_indices_trimmed` | Antigen residue indices, trimmed | *float* | True | `(333, 526)` |
|
| 96 |
+
| `antigen_host` | Host organism of the antigen | *str* | False | `severe acute respiratory syndrome coronavirus 2 (2697049)` |
|
| 97 |
+
| `antibody_heavy_chain_id` | Heavy chain ID of the antibody | *str* | False | `C` |
|
| 98 |
+
| `antibody_light_chain_id` | Light chain ID of the antibody | *str* | False | `B` |
|
| 99 |
+
| `epitope_residues` | Residues of the epitope | *str* | False | `R403 D405 T415` |
|
| 100 |
+
| `epitope_mutations` | PDB antigen mutations in the epitope | *str* | True | `D405T` |
|
| 101 |
+
| `epitope_domain` | Spike domain where the antibody binds | *str* | False | `RBD` |
|
| 102 |
+
| `epitope_alteration_count` | Number of alterations in the epitope | *float* | True | `2` |
|
| 103 |
+
| `spike_sequence` | Full spike protein sequence | *str* | False | `MFVFLVLLPLVSSQCVNLTTRTQL...` |
|
| 104 |
+
| `antibody_heavy_chain_sequence` | Sequence of the antibody heavy chain | *str* | False | `EVQLVESGGGLVQPGGSLRLSCAASEFIVSRNYMSWVR...` |
|
| 105 |
+
| `antibody_light_chain_sequence` | Sequence of the antibody light chain | *str* | False | `DIQMTQSPSSLSASVGDRVTITCQASQDINKYLNWYQQK...` |
|
| 106 |
+
| `antibody_vh_sequence` | Sequence of the VH domain | *str* | False | `EVQLVESGGGLVQPGGSLRLSCAASEFIVSRNYMSWVRQ...` |
|
| 107 |
+
| `antibody_vl_sequence` | Sequence of the VL domain | *str* | False | `DIQMTQSPSSLSASVGDRVTITCQASQDINKYLNW...` |
|
| 108 |
+
| `antigen_sequence` | Full antigen sequence | *str* | False | `TNLCPFDEVF-NATRFASVYAWNR--KRISNCVADYSVLYNLAPFFTFKCYGVSP...` |
|
| 109 |
+
| `antigen_sequence_trimmed` | Trimmed antigen sequence | *float* | True | `TRFASV-YAWNRKRISNCVADYSVLYNLAPFFT-FKCYGVSP...` |
|
| 110 |
+
| `antigen_sequence_without_indels`| Antigen sequence without insertions/deletions | *str* | False | `TNLCPFDEVFNATRFASVYAWNRKRISNCVAD...` |
|
| 111 |
+
| `antigen_sequence_trimmed_without_indels` | Trimmed antigen sequence without insertions/deletions | *float* | True | `NATRFASVYAWNRKRISNCVAD...` |
|
| 112 |
+
| `antigen_pdb_sequence` | Antigen sequence from PDB | *str* | False | `TNLCPFGEVFNATRFASVYAWNRKRISNCVADYSVLYNSA...` |
|
| 113 |
+
| `antigen_pdb_sequence_trimmed` | Trimmed antigen sequence from PDB | *float* | True | `NATRFASVYAWNRKRISNCVADYSVLYNSA...` |
|
| 114 |
+
|
| 115 |
+
## Acknowledgments
|
| 116 |
+
|
| 117 |
+
This project makes use of publicly available antibody datasets listed above. We acknowledge the contributions by the teams
|
| 118 |
+
responsible for compiling and maintaining these valuable resources.
|
antibody_info/antibody_synonyms.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d1c440450dfd58a34adcafb08d43fa80d9a5c72550ce46dec8d41998673f571a
|
| 3 |
+
size 23437
|
cov-unibind.py
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import pandas as pd
|
| 2 |
+
import datasets
|
| 3 |
+
|
| 4 |
+
_DESCRIPTION = """\
|
| 5 |
+
Multi-source dataset of antibody-mutation interactions including IC50, binding, escape, and affinity measurements.
|
| 6 |
+
Also includes antibody synonyms with CDR sequences and epitope information.
|
| 7 |
+
"""
|
| 8 |
+
|
| 9 |
+
_FEATURES = {
|
| 10 |
+
'antibody_name': datasets.Value("string"),
|
| 11 |
+
'antigen_lineage': datasets.Value("string"),
|
| 12 |
+
'target_value': datasets.Value("float"),
|
| 13 |
+
'target_type': datasets.Value("string"),
|
| 14 |
+
'source_name': datasets.Value("string"),
|
| 15 |
+
'source_doi': datasets.Value("string"),
|
| 16 |
+
'assay_name': datasets.Value("string"),
|
| 17 |
+
'pdb_id': datasets.Value("string"),
|
| 18 |
+
'structure_release_date': datasets.Value("string"),
|
| 19 |
+
'structure_resolution': datasets.Value("float"),
|
| 20 |
+
'mutations': datasets.Value("string"),
|
| 21 |
+
'antigen_chain_ids': datasets.Value("string"),
|
| 22 |
+
'antigen_domain': datasets.Value("string"),
|
| 23 |
+
'antigen_residue_indices': datasets.Value("string"),
|
| 24 |
+
'antigen_residue_indices_trimmed': datasets.Value("string"),
|
| 25 |
+
'antigen_host': datasets.Value("string"),
|
| 26 |
+
'antibody_heavy_chain_id': datasets.Value("string"),
|
| 27 |
+
'antibody_light_chain_id': datasets.Value("string"),
|
| 28 |
+
'epitope_residues': datasets.Value("string"),
|
| 29 |
+
'epitope_mutations': datasets.Value("string"),
|
| 30 |
+
'epitope_domain': datasets.Value("string"),
|
| 31 |
+
'epitope_alteration_count': datasets.Value("string"),
|
| 32 |
+
'spike_sequence': datasets.Value("string"),
|
| 33 |
+
'antibody_heavy_chain_sequence': datasets.Value("string"),
|
| 34 |
+
'antibody_light_chain_sequence': datasets.Value("string"),
|
| 35 |
+
'antibody_vh_sequence': datasets.Value("string"),
|
| 36 |
+
'antibody_vl_sequence': datasets.Value("string"),
|
| 37 |
+
'antigen_sequence': datasets.Value("string"),
|
| 38 |
+
'antigen_sequence_trimmed': datasets.Value("string"),
|
| 39 |
+
'antigen_sequence_without_indels': datasets.Value("string"),
|
| 40 |
+
'antigen_sequence_trimmed_without_indels': datasets.Value("string"),
|
| 41 |
+
'antigen_pdb_sequence': datasets.Value("string"),
|
| 42 |
+
'antigen_pdb_sequence_trimmed': datasets.Value("string"),
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
_ANTIBODY_SYNONYMS_FEATURES = {
|
| 46 |
+
'antibody_name': datasets.Value("string"),
|
| 47 |
+
'pdb_id': datasets.Value("string"),
|
| 48 |
+
'antibody_heavy_chain_cdr1': datasets.Value("string"),
|
| 49 |
+
'antibody_heavy_chain_cdr2': datasets.Value("string"),
|
| 50 |
+
'antibody_heavy_chain_cdr3': datasets.Value("string"),
|
| 51 |
+
'antibody_light_chain_cdr1': datasets.Value("string"),
|
| 52 |
+
'antibody_light_chain_cdr2': datasets.Value("string"),
|
| 53 |
+
'antibody_light_chain_cdr3': datasets.Value("string"),
|
| 54 |
+
'epitope_residues': datasets.Value("string"),
|
| 55 |
+
'epitope_domain': datasets.Value("string"),
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
_TABLES = {
|
| 59 |
+
"antibody_synonyms": {
|
| 60 |
+
"file": "antibody_info/antibody_synonyms_with_epitopes.parquet",
|
| 61 |
+
"features": _ANTIBODY_SYNONYMS_FEATURES,
|
| 62 |
+
},
|
| 63 |
+
"drdb": {
|
| 64 |
+
"file": "data/drdb_binding_potency.parquet",
|
| 65 |
+
"features": {
|
| 66 |
+
**_FEATURES,
|
| 67 |
+
}
|
| 68 |
+
},
|
| 69 |
+
"covabdab": {
|
| 70 |
+
"file": "data/covabdab_binding.parquet",
|
| 71 |
+
"features": {
|
| 72 |
+
**{
|
| 73 |
+
**_FEATURES,
|
| 74 |
+
"target_value": datasets.Value("bool"),
|
| 75 |
+
}
|
| 76 |
+
}
|
| 77 |
+
},
|
| 78 |
+
"dms_bloom": {
|
| 79 |
+
"file": "data/dms_bloom_ab_escape.parquet",
|
| 80 |
+
"features": {
|
| 81 |
+
**_FEATURES,
|
| 82 |
+
}
|
| 83 |
+
},
|
| 84 |
+
"dms_cao": {
|
| 85 |
+
"file": "data/dms_cao_ab_escape.parquet",
|
| 86 |
+
"features": {
|
| 87 |
+
**_FEATURES,
|
| 88 |
+
}
|
| 89 |
+
},
|
| 90 |
+
"jian_elisa": {
|
| 91 |
+
"file": "data/jian_elisa_ab_ic50.parquet",
|
| 92 |
+
"features": {
|
| 93 |
+
**_FEATURES,
|
| 94 |
+
}
|
| 95 |
+
},
|
| 96 |
+
"spr": {
|
| 97 |
+
"file": "data/spr_ab_affinity.parquet",
|
| 98 |
+
"features": {
|
| 99 |
+
**_FEATURES,
|
| 100 |
+
}
|
| 101 |
+
}
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
class CovUniBindConfig(datasets.BuilderConfig):
|
| 105 |
+
def __init__(self, **kwargs):
|
| 106 |
+
super().__init__(version=datasets.Version("1.0.0"), **kwargs)
|
| 107 |
+
|
| 108 |
+
|
| 109 |
+
class CovUniBind(datasets.GeneratorBasedBuilder):
|
| 110 |
+
BUILDER_CONFIGS = [
|
| 111 |
+
CovUniBindConfig(name=table, description=f"{table} subset") for table in _TABLES
|
| 112 |
+
]
|
| 113 |
+
|
| 114 |
+
def _info(self):
|
| 115 |
+
return datasets.DatasetInfo(
|
| 116 |
+
description=_DESCRIPTION,
|
| 117 |
+
features=datasets.Features(_TABLES[self.config.name]["features"]),
|
| 118 |
+
)
|
| 119 |
+
|
| 120 |
+
def _split_generators(self, dl_manager):
|
| 121 |
+
file_path = _TABLES[self.config.name]["file"]
|
| 122 |
+
data_path = dl_manager.download_and_extract(file_path)
|
| 123 |
+
return [
|
| 124 |
+
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": data_path}),
|
| 125 |
+
]
|
| 126 |
+
|
| 127 |
+
def _generate_examples(self, filepath):
|
| 128 |
+
df = pd.read_parquet(filepath)
|
| 129 |
+
for idx, row in df.iterrows():
|
| 130 |
+
yield idx, row.to_dict()
|
| 131 |
+
|
data/covabdab_binding.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d223e22f34cc63405b860dba8b66ac2c2022bf49e1b93f2f9fa64d9fe32fe5e8
|
| 3 |
+
size 120221
|
data/dms_bloom_ab_escape.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:19ef15de05ab2bdf4a39cd0250327a95ebecf99264e397861f2da0306ad12b50
|
| 3 |
+
size 10042875
|
data/dms_cao_ab_escape.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9b42dbd8e255c57a22158efe28b081194a31a3863b0cd5d38cf805d79b3453d0
|
| 3 |
+
size 1576603
|
data/drdb_binding_potency.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:36599544eba6035359dfcd751680223cd2333f427667d5de0c53bf5037965e7d
|
| 3 |
+
size 242949
|
data/jian_elisa_ab_ic50.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:261c03227315fe659049878905e843aa8621dcf5f341987f601b79d2f88decbd
|
| 3 |
+
size 51072
|
data/spr_ab_affinity.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f5fa44994c696356aeeab1c536c3fe3fbdf2a90dec106613468b639af1f5f72e
|
| 3 |
+
size 119903
|
data/structures/processed.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8c361bd05bc6e29bbc1d6c6754015fc0f8805e4c8ba077749ee926e8b018df00
|
| 3 |
+
size 256717383
|
data/structures/trimmed.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:64144e4ad11648a7db1812f1577c2db96deb96973d754402edddce145b57671e
|
| 3 |
+
size 63004759
|
scores/covabdab_binding_scores.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5dda25d563caacd7e7ef7d9a3e84685973c0942c7d1faf7f0ea1c7113120eaa4
|
| 3 |
+
size 226051
|
scores/dms_bloom_ab_escape_scores.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:80f8bbf666630ccf8a758d53f26291a548e6dfcf9f349836c417cd32d57687a3
|
| 3 |
+
size 2939536
|
scores/dms_cao_ab_escape_scores.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0cdf6d17912983b0d68a7225d1ad20dc34fb9bdd5259ef0e6fc6ba7dc2a10e0e
|
| 3 |
+
size 1235985
|
scores/drdb_binding_potency_scores.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f91cc0bfe3b81ee292f99451f6b1c654a79a33aa2e0c0642b17865129877d169
|
| 3 |
+
size 412775
|
scores/jian_elisa_ab_ic50_scores.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c51726bf57e9387bde2c1285628b6c51c8e4b702da1e2448c9557aadf8305b59
|
| 3 |
+
size 79465
|
scores/spr_ab_affinity_scores.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:20fa89eee2bbd7aa9880853f3fd92e3bf72b5242e957f28d7d2e939ac9c52388
|
| 3 |
+
size 312135
|