Update README.md
Browse files
README.md
CHANGED
|
@@ -8,75 +8,124 @@ tags:
|
|
| 8 |
- protein-design
|
| 9 |
- ligand-binding
|
| 10 |
- antibody-design
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
---
|
| 15 |
|
| 16 |
# InstructPro2Bench
|
| 17 |
|
| 18 |
-
Training and evaluation data for
|
|
|
|
|
|
|
| 19 |
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
|
| 24 |
-
##
|
| 25 |
|
| 26 |
-
```
|
| 27 |
-
|
| 28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
```
|
| 30 |
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
|
| 34 |
-
|
|
| 35 |
-
| `stage1/
|
| 36 |
-
| `
|
| 37 |
-
| `
|
| 38 |
-
| `ligand/
|
| 39 |
-
| `ligand/
|
| 40 |
-
| `
|
| 41 |
-
| `
|
| 42 |
-
| `antibody/
|
| 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 |
-
| `text` | the same instruction as text |
|
| 69 |
-
| `ligand` *or* `antigen` | SMILES strings, or antigen chain sequences |
|
| 70 |
-
| `modality_type` | `ligand` or `antibody` |
|
| 71 |
-
| `metadata` | ligand: `uniprot_id`, `interpro_all`, `interpro_used`, `source`. antibody: `pdb_id`, CDR sequences and positions, light chain, cluster, design blueprint |
|
| 72 |
|
| 73 |
-
The
|
|
|
|
|
|
|
| 74 |
|
| 75 |
-
##
|
| 76 |
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
-
|
| 80 |
|
| 81 |
## Citation
|
| 82 |
|
|
@@ -87,4 +136,8 @@ The loader requires `tokenized_instruction` and `target_protein` (or `output`),
|
|
| 87 |
journal = {arXiv preprint arXiv:2610.19592},
|
| 88 |
year = {2026}
|
| 89 |
}
|
| 90 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
- protein-design
|
| 9 |
- ligand-binding
|
| 10 |
- antibody-design
|
| 11 |
+
configs:
|
| 12 |
+
- config_name: stage1
|
| 13 |
+
data_files:
|
| 14 |
+
- split: train
|
| 15 |
+
path: stage1/train.jsonl
|
| 16 |
+
- split: validation
|
| 17 |
+
path: stage1/valid.jsonl
|
| 18 |
+
- split: test
|
| 19 |
+
path: stage1/test.jsonl
|
| 20 |
+
- config_name: ligand
|
| 21 |
+
data_files:
|
| 22 |
+
- split: train
|
| 23 |
+
path: ligand/train.jsonl
|
| 24 |
+
- split: validation
|
| 25 |
+
path: ligand/valid.jsonl
|
| 26 |
+
- split: test
|
| 27 |
+
path: ligand/test_ligand.jsonl
|
| 28 |
+
- split: test_unseen
|
| 29 |
+
path: ligand/test_ligand_unseen.jsonl
|
| 30 |
+
- config_name: antibody
|
| 31 |
+
data_files:
|
| 32 |
+
- split: train
|
| 33 |
+
path: antibody/train.jsonl
|
| 34 |
+
- split: validation
|
| 35 |
+
path: antibody/valid.jsonl
|
| 36 |
+
- split: test
|
| 37 |
+
path: antibody/final_antibody_test.jsonl
|
| 38 |
---
|
| 39 |
|
| 40 |
# InstructPro2Bench
|
| 41 |
|
| 42 |
+
Training and evaluation data for
|
| 43 |
+
[InstructPro2](https://huggingface.co/charlesnovak/InstructPro2), which
|
| 44 |
+
designs proteins from natural-language function descriptions.
|
| 45 |
|
| 46 |
+
[Paper](https://arxiv.org/abs/2610.19592) ·
|
| 47 |
+
[Code](https://github.com/chovak/InstructPro2) ·
|
| 48 |
+
[Model](https://huggingface.co/charlesnovak/InstructPro2)
|
| 49 |
|
| 50 |
+
## Contents
|
| 51 |
|
| 52 |
+
```
|
| 53 |
+
stage1/ instruction-following pretraining
|
| 54 |
+
train.jsonl valid.jsonl test.jsonl
|
| 55 |
+
ligand/ ligand-binding protein design
|
| 56 |
+
train.jsonl valid.jsonl test_ligand.jsonl test_ligand_unseen.jsonl
|
| 57 |
+
antibody/ antibody HCDR design
|
| 58 |
+
train.jsonl valid.jsonl final_antibody_test.jsonl
|
| 59 |
+
eval_structures/ ground-truth structures for Stage 1 evaluation
|
| 60 |
+
cluster_<id>/ predicted structures for one cluster
|
| 61 |
+
targets.csv row -> cluster manifest
|
| 62 |
```
|
| 63 |
|
| 64 |
+
| Split | Rows | |
|
| 65 |
+
| --- | ---: | --- |
|
| 66 |
+
| `stage1/train` | 200,000 | sample of 205,727,986 |
|
| 67 |
+
| `stage1/valid` | 1,000 | complete |
|
| 68 |
+
| `stage1/test` | 1,000 | complete |
|
| 69 |
+
| `ligand/train` | 50,000 | sample of 8,727,514 |
|
| 70 |
+
| `ligand/valid` | 3,263 | complete |
|
| 71 |
+
| `ligand/test_ligand` | 1,500 | complete |
|
| 72 |
+
| `ligand/test_ligand_unseen` | 127 | complete; held-out ligands |
|
| 73 |
+
| `antibody/train` | 21,384 | complete |
|
| 74 |
+
| `antibody/valid` | 433 | complete |
|
| 75 |
+
| `antibody/final_antibody_test` | 444 | complete |
|
| 76 |
+
|
| 77 |
+
The two Stage 1 and ligand training splits are samples of much larger
|
| 78 |
+
datasets, the full sets are available on request. Every other split is
|
| 79 |
+
complete.
|
| 80 |
+
|
| 81 |
+
About a third of the antibody training rows (7,068 of 21,384) carry an
|
| 82 |
+
antigen. The rest are heavy chains without a paired structure, and train
|
| 83 |
+
the infilling behaviour alone.
|
| 84 |
+
|
| 85 |
+
Every row is one JSON object per line:
|
| 86 |
+
|
| 87 |
+
| Field | Present in | |
|
| 88 |
+
| --- | --- | --- |
|
| 89 |
+
| `instruction` | stage1 | the natural-language design request |
|
| 90 |
+
| `text` | ligand, antibody | the same, under a different name |
|
| 91 |
+
| `tokenized_instruction` | all | the request as PubMedBERT token ids, which is what the model reads |
|
| 92 |
+
| `output` | stage1 | the reference protein |
|
| 93 |
+
| `target_protein` | ligand, antibody | the same, under a different name |
|
| 94 |
+
| `ligand` | ligand | SMILES strings |
|
| 95 |
+
| `antigen` | antibody | antigen chain sequences |
|
| 96 |
+
| `task_type` | stage1 | `autoregressive` or `infilling` |
|
| 97 |
+
| `modality_type` | ligand, antibody | `ligand` or `antibody` |
|
| 98 |
+
| `metadata` | all | provenance: UniProt or PDB id, InterPro annotations, cluster id, CDR positions |
|
| 99 |
+
|
| 100 |
+
A target may contain `<SEP>` and `<M1>`–`<M30>`, which mark spans to
|
| 101 |
+
infill: the scaffold precedes the separator and the spans that fill it
|
| 102 |
+
follow. Antibody targets use this to mark HCDR1-3 in a heavy chain.
|
| 103 |
+
|
| 104 |
+
## Evaluation structures
|
| 105 |
+
|
| 106 |
+
`eval_structures/` holds the ground truth for Stage 1 scoring: 1,000
|
| 107 |
+
cluster folders, each with the structures of related proteins, and
|
| 108 |
+
`targets.csv` mapping each test row to its cluster. A design is scored
|
| 109 |
+
against every member of the cluster, and the best match is reported.
|
| 110 |
+
|
| 111 |
+
Ground-truth structures for the ligand and antibody tasks are not included.
|
| 112 |
+
|
| 113 |
+
## Usage
|
| 114 |
|
| 115 |
+
```bash
|
| 116 |
+
huggingface-cli download charlesnovak/InstructPro2Bench \
|
| 117 |
+
--repo-type dataset --local-dir $WORK_ROOT/data
|
| 118 |
+
```
|
|
|
|
|
|
|
|
|
|
|
|
|
| 119 |
|
| 120 |
+
The [code repository](https://github.com/chovak/InstructPro2) reads this
|
| 121 |
+
layout directly. To design proteins from your own descriptions instead, see
|
| 122 |
+
its README — you do not need this dataset for that.
|
| 123 |
|
| 124 |
+
## Notes
|
| 125 |
|
| 126 |
+
Proteins longer than 1,024 tokens are outside the model's context and are
|
| 127 |
+
skipped at generation time, so some test rows produce no design and have no
|
| 128 |
+
ground-truth structure.
|
| 129 |
|
| 130 |
## Citation
|
| 131 |
|
|
|
|
| 136 |
journal = {arXiv preprint arXiv:2610.19592},
|
| 137 |
year = {2026}
|
| 138 |
}
|
| 139 |
+
```
|
| 140 |
+
|
| 141 |
+
## License
|
| 142 |
+
|
| 143 |
+
MIT.
|