Datasets:
Simplify UniProtKB dataset configs
Browse files
README.md
CHANGED
|
@@ -18,17 +18,6 @@ tags:
|
|
| 18 |
- bioinformatics
|
| 19 |
- train-validation-test-split
|
| 20 |
configs:
|
| 21 |
-
- config_name: default
|
| 22 |
-
data_files:
|
| 23 |
-
- split: train
|
| 24 |
-
path:
|
| 25 |
-
- tables/source_set=*/split=train/*.jsonl.gz
|
| 26 |
-
- split: validation
|
| 27 |
-
path:
|
| 28 |
-
- tables/source_set=*/split=validation/*.jsonl.gz
|
| 29 |
-
- split: test
|
| 30 |
-
path:
|
| 31 |
-
- tables/source_set=*/split=test/*.jsonl.gz
|
| 32 |
- config_name: sprot
|
| 33 |
data_files:
|
| 34 |
- split: train
|
|
@@ -100,23 +89,23 @@ homology-aware model evaluation, split again by UniRef/MMseqs cluster ids.
|
|
| 100 |
|
| 101 |
## Loading
|
| 102 |
|
| 103 |
-
Load
|
| 104 |
|
| 105 |
```python
|
| 106 |
from datasets import load_dataset
|
| 107 |
|
| 108 |
-
|
| 109 |
-
train =
|
| 110 |
-
valid =
|
| 111 |
-
test =
|
| 112 |
```
|
| 113 |
|
| 114 |
-
Load
|
| 115 |
|
| 116 |
```python
|
| 117 |
from datasets import load_dataset
|
| 118 |
|
| 119 |
-
|
| 120 |
```
|
| 121 |
|
| 122 |
Load only TrEMBL:
|
|
@@ -150,6 +139,10 @@ for row in rows:
|
|
| 150 |
...
|
| 151 |
```
|
| 152 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 153 |
## Columns
|
| 154 |
|
| 155 |
| Column | Type | Description |
|
|
|
|
| 18 |
- bioinformatics
|
| 19 |
- train-validation-test-split
|
| 20 |
configs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
- config_name: sprot
|
| 22 |
data_files:
|
| 23 |
- split: train
|
|
|
|
| 89 |
|
| 90 |
## Loading
|
| 91 |
|
| 92 |
+
Load Swiss-Prot reviewed entries:
|
| 93 |
|
| 94 |
```python
|
| 95 |
from datasets import load_dataset
|
| 96 |
|
| 97 |
+
sprot = load_dataset("LiteFold/UniProtKB", "sprot")
|
| 98 |
+
train = sprot["train"]
|
| 99 |
+
valid = sprot["validation"]
|
| 100 |
+
test = sprot["test"]
|
| 101 |
```
|
| 102 |
|
| 103 |
+
Load Swiss-Prot alternative isoforms:
|
| 104 |
|
| 105 |
```python
|
| 106 |
from datasets import load_dataset
|
| 107 |
|
| 108 |
+
isoforms = load_dataset("LiteFold/UniProtKB", "sprot_varsplic")
|
| 109 |
```
|
| 110 |
|
| 111 |
Load only TrEMBL:
|
|
|
|
| 139 |
...
|
| 140 |
```
|
| 141 |
|
| 142 |
+
Because the source sets are very different in size, this dataset does not define
|
| 143 |
+
a single mixed `default` config. Load one of `sprot`, `sprot_varsplic`, or
|
| 144 |
+
`trembl` explicitly.
|
| 145 |
+
|
| 146 |
## Columns
|
| 147 |
|
| 148 |
| Column | Type | Description |
|