charlesnovak commited on
Commit
7852e32
·
verified ·
1 Parent(s): 8f889f1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +110 -57
README.md CHANGED
@@ -8,75 +8,124 @@ tags:
8
  - protein-design
9
  - ligand-binding
10
  - antibody-design
11
- pretty_name: InstructPro2Bench
12
- size_categories:
13
- - 100K<n<1M
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  ---
15
 
16
  # InstructPro2Bench
17
 
18
- Training and evaluation data for **[InstructPro2: Natural Language and Biological Grounding Guided De Novo Protein Design](https://arxiv.org/abs/2610.19592)** — natural-language function descriptions paired with protein sequences, plus the ligand and antibody splits used for the two downstream design tasks.
 
 
19
 
20
- Code: [chovak/InstructPro2](https://github.com/chovak/InstructPro2) ·
21
- Weights: [charlesnovak/InstructPro2](https://huggingface.co/charlesnovak/InstructPro2) ·
22
- Paper: [arXiv:2610.19592](https://arxiv.org/abs/2610.19592)
23
 
24
- ## Download
25
 
26
- ```bash
27
- export WORK_ROOT=/path/to/workspace # default: ~/instructpro2
28
- huggingface-cli download charlesnovak/InstructPro2Bench --repo-type dataset --local-dir $WORK_ROOT/data
 
 
 
 
 
 
 
29
  ```
30
 
31
- ## Files
32
-
33
- | File | Rows | Size |
34
- |---|---:|---:|
35
- | `stage1/train.jsonl` | 200,000 | 603 MB |
36
- | `stage1/valid.jsonl` | 1,000 | 2.8 MB |
37
- | `stage1/test.jsonl` | 1,000 | 3.0 MB |
38
- | `ligand/train.jsonl` | 50,000 | 183 MB |
39
- | `ligand/valid.jsonl` | 3,263 | 14 MB |
40
- | `ligand/test_ligand.jsonl` | 1,500 | 6.4 MB |
41
- | `ligand/test_ligand_unseen.jsonl` | 127 | 0.5 MB |
42
- | `antibody/train.jsonl` | 21,384 | 40 MB |
43
- | `antibody/valid.jsonl` | 433 | 1.2 MB |
44
- | `antibody/final_antibody_test.jsonl` | 444 | 1.3 MB |
45
-
46
- Both training sets are subsampled: `stage1/train.jsonl` is 200,000 rows of the full 205.7M-pair pretraining corpus, and `ligand/train.jsonl` is 50,000 rows. Every other split is complete. The full Stage 1 corpus can be rebuilt from UniProt with the dataset construction code.
47
-
48
- ## Schema
49
-
50
- One JSON object per line.
51
-
52
- **Stage 1** (`stage1/`)
53
-
54
- | Key | Contents |
55
- |---|---|
56
- | `tokenized_instruction` | PubMedBERT token ids — the model input |
57
- | `output` | target protein sequence, with `<SEP>` and `<M1>`–`<M30>` on infilling examples |
58
- | `instruction` | the same instruction as text |
59
- | `task_type` | `infilling` or autoregressive |
60
- | `metadata` | `id` (UniProt accession), `cluster`, `interpro_all` |
61
-
62
- **Stage 2** (`ligand/`, `antibody/`)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63
 
64
- | Key | Contents |
65
- |---|---|
66
- | `tokenized_instruction` | PubMedBERT token ids — the model input |
67
- | `target_protein` | target sequence; HCDR spans are masked with `<M1>`–`<M3>` in the antibody splits |
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 loader requires `tokenized_instruction` and `target_protein` (or `output`), plus `ligand`/`antigen` for the Stage 2 tasks.
 
 
74
 
75
- ## Sources
76
 
77
- - **Stage 1** — UniProtKB, with function descriptions composed from InterPro annotations.
78
- - **Ligand** — InstructProBench, from [InstructPro](https://arxiv.org/abs/2506.09332).
79
- - **Antibody** — SAbDab and the PDB.
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.