Update README.md
Browse files
README.md
CHANGED
|
@@ -29,4 +29,26 @@ configs:
|
|
| 29 |
|
| 30 |
Affinity dataset from [Bindwell](https://github.com/Bindwell/APPT) (1/27/25). Natively fairly nonredundant via indel sequence similarity calculations.
|
| 31 |
|
| 32 |
-
<img src="https://cdn-uploads.huggingface.co/production/uploads/62f2bd3bdb7cbd214b658c48/o7iHaBUhk6fwZusSusls9.png" width="600">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
Affinity dataset from [Bindwell](https://github.com/Bindwell/APPT) (1/27/25). Natively fairly nonredundant via indel sequence similarity calculations.
|
| 31 |
|
| 32 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/62f2bd3bdb7cbd214b658c48/o7iHaBUhk6fwZusSusls9.png" width="600">
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
Example use:
|
| 36 |
+
|
| 37 |
+
```python
|
| 38 |
+
from datasets import load_dataset
|
| 39 |
+
|
| 40 |
+
def get_affinity_data():
|
| 41 |
+
data = load_dataset("Synthyra/ProteinProteinAffinity", split="train")
|
| 42 |
+
data = data.remove_columns(['pdb_id', 'source', 'kd'])
|
| 43 |
+
data = data.rename_column('pkd', 'labels')
|
| 44 |
+
data = data.shuffle(seed=11)
|
| 45 |
+
data = data.train_test_split(test_size=1000, seed=22)
|
| 46 |
+
valid = data['test']
|
| 47 |
+
train = data['train']
|
| 48 |
+
valid = valid.train_test_split(test_size=500, seed=33)
|
| 49 |
+
test = valid['test']
|
| 50 |
+
valid = valid['train']
|
| 51 |
+
return train, valid, test
|
| 52 |
+
```
|
| 53 |
+
|
| 54 |
+
Please cite Bindwell's work if you use this dataset.
|