anindya64 commited on
Commit
d8eb6d7
·
verified ·
1 Parent(s): 045a1a4

Simplify UniProtKB dataset configs

Browse files
Files changed (1) hide show
  1. README.md +11 -18
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 all source sets:
104
 
105
  ```python
106
  from datasets import load_dataset
107
 
108
- ds = load_dataset("LiteFold/UniProtKB", "default")
109
- train = ds["train"]
110
- valid = ds["validation"]
111
- test = ds["test"]
112
  ```
113
 
114
- Load only Swiss-Prot reviewed entries:
115
 
116
  ```python
117
  from datasets import load_dataset
118
 
119
- sprot = load_dataset("LiteFold/UniProtKB", "sprot")
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 |