Update deepbindweight.py
Browse files- deepbindweight.py +5 -2
deepbindweight.py
CHANGED
|
@@ -47,9 +47,12 @@ class DeepBindWeight(datasets.GeneratorBasedBuilder):
|
|
| 47 |
def _generate_examples(self, filepath):
|
| 48 |
"""This function returns the examples in the raw (text) form."""
|
| 49 |
logger.info("generating examples from = %s", filepath)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
yield 0, {"config": filepath[0],
|
| 51 |
-
"existed":
|
| 52 |
-
and os.path.exists(filepath[2]) and os.path.exists(filepath[4]),
|
| 53 |
"selex": filepath[1],
|
| 54 |
'tf': filepath[2]}
|
| 55 |
|
|
|
|
| 47 |
def _generate_examples(self, filepath):
|
| 48 |
"""This function returns the examples in the raw (text) form."""
|
| 49 |
logger.info("generating examples from = %s", filepath)
|
| 50 |
+
flag = True
|
| 51 |
+
for file in filepath:
|
| 52 |
+
flag = flag and os.path.exists(file)
|
| 53 |
+
|
| 54 |
yield 0, {"config": filepath[0],
|
| 55 |
+
"existed": flag,
|
|
|
|
| 56 |
"selex": filepath[1],
|
| 57 |
'tf': filepath[2]}
|
| 58 |
|