Update jolma_unique.py
Browse files- jolma_unique.py +4 -4
jolma_unique.py
CHANGED
@@ -68,9 +68,9 @@ for idx, row in info.iterrows():
|
|
68 |
_DESIGN_LENGTH[sra_id] = int(pattern.search(row["Ligand"]).group(0))
|
69 |
|
70 |
|
71 |
-
class
|
72 |
def __init__(self, url, sra_id="ERR173157", length_match=True, filter_N=True, design_length=None, file=None, **kwargs):
|
73 |
-
super(
|
74 |
self.url = url
|
75 |
self.sra_id = sra_id
|
76 |
self.length_match = length_match
|
@@ -79,9 +79,9 @@ class JolmaConfig(datasets.BuilderConfig):
|
|
79 |
self.file = file
|
80 |
|
81 |
|
82 |
-
class
|
83 |
BUILDER_CONFIGS = [
|
84 |
-
|
85 |
]
|
86 |
|
87 |
DEFAULT_CONFIG_NAME = "ERR173157"
|
|
|
68 |
_DESIGN_LENGTH[sra_id] = int(pattern.search(row["Ligand"]).group(0))
|
69 |
|
70 |
|
71 |
+
class JolmaUniqueConfig(datasets.BuilderConfig):
|
72 |
def __init__(self, url, sra_id="ERR173157", length_match=True, filter_N=True, design_length=None, file=None, **kwargs):
|
73 |
+
super(JolmaUniqueConfig, self).__init__(**kwargs)
|
74 |
self.url = url
|
75 |
self.sra_id = sra_id
|
76 |
self.length_match = length_match
|
|
|
79 |
self.file = file
|
80 |
|
81 |
|
82 |
+
class JolmaUnique(datasets.GeneratorBasedBuilder):
|
83 |
BUILDER_CONFIGS = [
|
84 |
+
JolmaUniqueConfig(name=key, url=_URLS[key], design_length=_DESIGN_LENGTH[key], file=info.loc[key]['file']) for key in _URLS
|
85 |
]
|
86 |
|
87 |
DEFAULT_CONFIG_NAME = "ERR173157"
|