fsaccon commited on
Commit
4fc3ddf
·
0 Parent(s):

initial commit

Browse files

Upload CRABS_logo.png

Create README.md

Upload 4 files

Update README.md

Added dataset schema

updated files and readme

drafted dataset script

added generation script

uploaded antibody synoinyms

updated readme

updated dl manager

Update README.md

updated builder class

fix

Rename covunibind.py to cov-unibind.py

updated datasets

deleted previous dataset versions

Remove is_nullable=True parameters from Value definitions

Update datasets and scores

corrected doi

Update README.md

Update README.md

Update README.md

updated names and readme

.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,115 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ │ ├── dms_bloom_ab_escape.parquet
46
+ │ ├── dms_cao_ab_escape.parquet
47
+ │ ├── drdb_binding_potency.parquet
48
+ │ ├── jian_elisa_ab_ic50.parquet
49
+ │ └── spr_ab_affinity.parquet
50
+ ├── scores
51
+ │ ├── covabdab_binding_scores.parquet
52
+ │ ├── dms_bloom_ab_escape_scores.parquet
53
+ │ ├── dms_cao_ab_escape_scores.parquet
54
+ │ ├── drdb_binding_potency_scores.parquet
55
+ │ ├── jian_elisa_ab_ic50_scores.parquet
56
+ │ └── spr_ab_affinity_scores.parquet
57
+ ├── cov-unibind.py
58
+ └── README.md
59
+ ```
60
+
61
+ ## Usage Guide
62
+
63
+ ```python
64
+ from datasets import load_dataset
65
+
66
+ data='drbd' # specify the dataset name based on table above
67
+
68
+ dataset = load_dataset("InstaDeepAI/cov-unibind",name=data)
69
+ ```
70
+
71
+
72
+ ## Dataset Schema
73
+
74
+ The table below includes information about the columns contained in the datasets.
75
+
76
+ | Column Name | Description | Type | Nullable | Example |
77
+ |---|---|---|---|---|
78
+ | `antibody_name` | Name of the antibody | *str* | False | `bd30_515;bd_515` |
79
+ | `antigen_lineage` | Antigen lineage | *str* | False | `BA.1` |
80
+ | `target_value` | Experimental binding value| *float* or *bool* | False | `-2.327902` or `True` |
81
+ | `target_type` | Type of target value | *str* | False | `IC50_log10_fold` |
82
+ | `source_name` | Source of the data | *str* | False | `jian_2024_nature` |
83
+ | `source_doi` | DOI of the source | *str* | False | `10.1038/s41586-024-08315-x` |
84
+ | `assay_name` | Name of the assay | *str* | False | `elisa` |
85
+ | `pdb_id` | PDB structure ID | *str* | False | `7e88` |
86
+ | `structure_release_date` | Release date of the structure | *str* | False | `03/01/21` |
87
+ | `structure_resolution` | Resolution of the structure (Å) | *float* | False | `3.14` |
88
+ | `mutations` | Lineage consensus mutations | *str* | False | `A67V H69- V70- T95I...` |
89
+ | `antigen_chain_ids` | Chain IDs of the antigen | *str* | False | `C` |
90
+ | `antigen_domain` | Domain of the antigen | *str* | False | `RBD` |
91
+ | `antigen_residue_indices` | Residue indices of the antigen | *str* | False | `(13, 568)` |
92
+ | `antigen_residue_indices_trimmed` | Antigen residue indices, trimmed | *float* | True | `(333, 526)` |
93
+ | `antigen_host` | Host organism of the antigen | *str* | False | `severe acute respiratory syndrome coronavirus 2 (2697049)` |
94
+ | `antibody_heavy_chain_id` | Heavy chain ID of the antibody | *str* | False | `C` |
95
+ | `antibody_light_chain_id` | Light chain ID of the antibody | *str* | False | `B` |
96
+ | `epitope_residues` | Residues of the epitope | *str* | False | `R403 D405 T415` |
97
+ | `epitope_mutations` | PDB antigen mutations in the epitope | *str* | True | `D405T` |
98
+ | `epitope_domain` | Spike domain where the antibody binds | *str* | False | `RBD` |
99
+ | `epitope_alteration_count` | Number of alterations in the epitope | *float* | True | `2` |
100
+ | `spike_sequence` | Full spike protein sequence | *str* | False | `MFVFLVLLPLVSSQCVNLTTRTQL...` |
101
+ | `antibody_heavy_chain_sequence` | Sequence of the antibody heavy chain | *str* | False | `EVQLVESGGGLVQPGGSLRLSCAASEFIVSRNYMSWVR...` |
102
+ | `antibody_light_chain_sequence` | Sequence of the antibody light chain | *str* | False | `DIQMTQSPSSLSASVGDRVTITCQASQDINKYLNWYQQK...` |
103
+ | `antibody_vh_sequence` | Sequence of the VH domain | *str* | False | `EVQLVESGGGLVQPGGSLRLSCAASEFIVSRNYMSWVRQ...` |
104
+ | `antibody_vl_sequence` | Sequence of the VL domain | *str* | False | `DIQMTQSPSSLSASVGDRVTITCQASQDINKYLNW...` |
105
+ | `antigen_sequence` | Full antigen sequence | *str* | False | `TNLCPFDEVF-NATRFASVYAWNR--KRISNCVADYSVLYNLAPFFTFKCYGVSP...` |
106
+ | `antigen_sequence_trimmed` | Trimmed antigen sequence | *float* | True | `TRFASV-YAWNRKRISNCVADYSVLYNLAPFFT-FKCYGVSP...` |
107
+ | `antigen_sequence_without_indels`| Antigen sequence without insertions/deletions | *str* | False | `TNLCPFDEVFNATRFASVYAWNRKRISNCVAD...` |
108
+ | `antigen_sequence_trimmed_without_indels` | Trimmed antigen sequence without insertions/deletions | *float* | True | `NATRFASVYAWNRKRISNCVAD...` |
109
+ | `antigen_pdb_sequence` | Antigen sequence from PDB | *str* | False | `TNLCPFGEVFNATRFASVYAWNRKRISNCVADYSVLYNSA...` |
110
+ | `antigen_pdb_sequence_trimmed` | Trimmed antigen sequence from PDB | *float* | True | `NATRFASVYAWNRKRISNCVADYSVLYNSA...` |
111
+
112
+ ## Acknowledgments
113
+
114
+ This project makes use of publicly available antibody datasets listed above. We acknowledge the contributions by the teams
115
+ 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:5aea45f45b81eaab9e2dc418c461607bb9aa7d7b6db175df6cedcc5e8191659e
3
+ size 16360
cov-unibind.py ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ """
7
+
8
+ _FEATURES = {
9
+ 'antibody_name': datasets.Value("string"),
10
+ 'antigen_lineage': datasets.Value("string"),
11
+ 'target_value': datasets.Value("float"),
12
+ 'target_type': datasets.Value("string"),
13
+ 'source_name': datasets.Value("string"),
14
+ 'source_doi': datasets.Value("string"),
15
+ 'assay_name': datasets.Value("string"),
16
+ 'pdb_id': datasets.Value("string"),
17
+ 'structure_release_date': datasets.Value("string"),
18
+ 'structure_resolution': datasets.Value("float"),
19
+ 'mutations': datasets.Value("string"),
20
+ 'antigen_chain_ids': datasets.Value("string"),
21
+ 'antigen_domain': datasets.Value("string"),
22
+ 'antigen_residue_indices': datasets.Value("string"),
23
+ 'antigen_residue_indices_trimmed': datasets.Value("string"),
24
+ 'antigen_host': datasets.Value("string"),
25
+ 'antibody_heavy_chain_id': datasets.Value("string"),
26
+ 'antibody_light_chain_id': datasets.Value("string"),
27
+ 'epitope_residues': datasets.Value("string"),
28
+ 'epitope_mutations': datasets.Value("string"),
29
+ 'epitope_domain': datasets.Value("string"),
30
+ 'epitope_alteration_count': datasets.Value("string"),
31
+ 'spike_sequence': datasets.Value("string"),
32
+ 'antibody_heavy_chain_sequence': datasets.Value("string"),
33
+ 'antibody_light_chain_sequence': datasets.Value("string"),
34
+ 'antibody_vh_sequence': datasets.Value("string"),
35
+ 'antibody_vl_sequence': datasets.Value("string"),
36
+ 'antigen_sequence': datasets.Value("string"),
37
+ 'antigen_sequence_trimmed': datasets.Value("string"),
38
+ 'antigen_sequence_without_indels': datasets.Value("string"),
39
+ 'antigen_sequence_trimmed_without_indels': datasets.Value("string"),
40
+ 'antigen_pdb_sequence': datasets.Value("string"),
41
+ 'antigen_pdb_sequence_trimmed': datasets.Value("string"),
42
+ }
43
+
44
+ _TABLES = {
45
+ "drdb": {
46
+ "file": "data/drdb_binding_potency.parquet",
47
+ "features": {
48
+ **_FEATURES,
49
+ }
50
+ },
51
+ "covabdab": {
52
+ "file": "data/covabdab_binding.parquet",
53
+ "features": {
54
+ **{
55
+ **_FEATURES,
56
+ "target_value": datasets.Value("bool"),
57
+ }
58
+ }
59
+ },
60
+ "dms_bloom": {
61
+ "file": "data/dms_bloom_ab_escape.parquet",
62
+ "features": {
63
+ **_FEATURES,
64
+ }
65
+ },
66
+ "dms_cao": {
67
+ "file": "data/dms_cao_ab_escape.parquet",
68
+ "features": {
69
+ **_FEATURES,
70
+ }
71
+ },
72
+ "jian_elisa": {
73
+ "file": "data/jian_elisa_ab_ic50.parquet",
74
+ "features": {
75
+ **_FEATURES,
76
+ }
77
+ },
78
+ "spr": {
79
+ "file": "data/spr_ab_affinity.parquet",
80
+ "features": {
81
+ **_FEATURES,
82
+ }
83
+ }
84
+ }
85
+
86
+ class CovUniBindConfig(datasets.BuilderConfig):
87
+ def __init__(self, **kwargs):
88
+ super().__init__(version=datasets.Version("1.0.0"), **kwargs)
89
+
90
+
91
+ class CovUniBind(datasets.GeneratorBasedBuilder):
92
+ BUILDER_CONFIGS = [
93
+ CovUniBindConfig(name=table, description=f"{table} subset") for table in _TABLES
94
+ ]
95
+
96
+ def _info(self):
97
+ return datasets.DatasetInfo(
98
+ description=_DESCRIPTION,
99
+ features=datasets.Features(_TABLES[self.config.name]["features"]),
100
+ )
101
+
102
+ def _split_generators(self, dl_manager):
103
+ file_path = _TABLES[self.config.name]["file"]
104
+ data_path = dl_manager.download_and_extract(file_path)
105
+ return [
106
+ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": data_path}),
107
+ ]
108
+
109
+ def _generate_examples(self, filepath):
110
+ df = pd.read_parquet(filepath)
111
+ for idx, row in df.iterrows():
112
+ yield idx, row.to_dict()
113
+
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
scores/covabdab_binding_scores.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5b505c3d3144a5463a00a5a563f872d93265e62b1243da0e1eabdaf2808306b1
3
+ size 159000
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:4fd384b42913adc0f0492c038f075e9a5173f50a723f4b779b45dfcf25ddf260
3
+ size 1235761
scores/drdb_binding_potency_scores.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:62c85c8ba2076f5f31ff11d0ee554439ff6edffda7cdae644311098aa24af290
3
+ size 412449
scores/jian_elisa_ab_ic50_scores.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6c1c452c604f5610123af905f2bc249406465193db4c4da5e40358219db116d0
3
+ size 63843
scores/spr_ab_affinity_scores.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1c5454b2a67fd9b4205e95dcfbcdc1afa3c391666546c2bc331b819d7707e935
3
+ size 219219