hdallatorre
commited on
Commit
•
c5ef047
1
Parent(s):
1fda619
Update nucleotide_transformer_downstream_tasks.py
Browse files
nucleotide_transformer_downstream_tasks.py
CHANGED
@@ -12,8 +12,8 @@
|
|
12 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13 |
# See the License for the specific language governing permissions and
|
14 |
# limitations under the License.
|
15 |
-
"""Script for the dataset containing
|
16 |
-
Transformer paper.
|
17 |
|
18 |
from typing import List
|
19 |
import datasets
|
@@ -33,7 +33,7 @@ _CITATION = """\
|
|
33 |
|
34 |
# You can copy an official description
|
35 |
_DESCRIPTION = """\
|
36 |
-
18 classification downstream tasks from the Nucleotide Transformer paper. Each task
|
37 |
corresponds to a dataset configuration.
|
38 |
"""
|
39 |
|
@@ -42,23 +42,7 @@ _HOMEPAGE = "https://github.com/instadeepai/nucleotide-transformer"
|
|
42 |
_LICENSE = "https://github.com/instadeepai/nucleotide-transformer/LICENSE.md"
|
43 |
|
44 |
_TASKS = [
|
45 |
-
'H4ac',
|
46 |
-
'H3K36me3',
|
47 |
-
'splice_sites_donors',
|
48 |
-
'splice_sites_acceptors',
|
49 |
-
'H3',
|
50 |
-
'H4',
|
51 |
-
'H3K4me3',
|
52 |
-
'splice_sites_all',
|
53 |
-
'H3K4me1',
|
54 |
-
'H3K14ac',
|
55 |
-
'enhancers_types',
|
56 |
-
'promoter_no_tata',
|
57 |
-
'H3K79me3',
|
58 |
-
'H3K4me2',
|
59 |
-
'promoter_tata',
|
60 |
'enhancers',
|
61 |
-
'H3K9ac',
|
62 |
'promoter_all'
|
63 |
]
|
64 |
|
@@ -81,10 +65,6 @@ class NucleotideTransformerDownstreamTasksConfig(datasets.BuilderConfig):
|
|
81 |
|
82 |
|
83 |
class NucleotideTransformerDownstreamTasks(datasets.GeneratorBasedBuilder):
|
84 |
-
"""Genomes from 850 species, filtered and split into chunks of consecutive
|
85 |
-
nucleotides. 50 genomes are taken for test, 50 for validation and 800
|
86 |
-
for training."""
|
87 |
-
|
88 |
VERSION = datasets.Version("1.1.0")
|
89 |
BUILDER_CONFIG_CLASS = NucleotideTransformerDownstreamTasksConfig
|
90 |
BUILDER_CONFIGS = [
|
|
|
12 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13 |
# See the License for the specific language governing permissions and
|
14 |
# limitations under the License.
|
15 |
+
"""Script for the dataset containing the "promoter_all" and "enhancers" downstream tasks from the Nucleotide
|
16 |
+
Transformer paper."""
|
17 |
|
18 |
from typing import List
|
19 |
import datasets
|
|
|
33 |
|
34 |
# You can copy an official description
|
35 |
_DESCRIPTION = """\
|
36 |
+
2 of the 18 classification downstream tasks from the Nucleotide Transformer paper. Each task
|
37 |
corresponds to a dataset configuration.
|
38 |
"""
|
39 |
|
|
|
42 |
_LICENSE = "https://github.com/instadeepai/nucleotide-transformer/LICENSE.md"
|
43 |
|
44 |
_TASKS = [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
'enhancers',
|
|
|
46 |
'promoter_all'
|
47 |
]
|
48 |
|
|
|
65 |
|
66 |
|
67 |
class NucleotideTransformerDownstreamTasks(datasets.GeneratorBasedBuilder):
|
|
|
|
|
|
|
|
|
68 |
VERSION = datasets.Version("1.1.0")
|
69 |
BUILDER_CONFIG_CLASS = NucleotideTransformerDownstreamTasksConfig
|
70 |
BUILDER_CONFIGS = [
|