Remove broken URLs to genome sequences
Browse files- multi_species_genomes.py +3 -3
- urls.csv +0 -0
- urls.txt +0 -0
multi_species_genomes.py
CHANGED
@@ -127,9 +127,9 @@ class MultiSpeciesGenomes(datasets.GeneratorBasedBuilder):
|
|
127 |
|
128 |
def _split_generators(self, dl_manager: datasets.DownloadManager) -> List[datasets.SplitGenerator]:
|
129 |
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
|
134 |
test_urls = urls[-50:] # 50 genomes for test set
|
135 |
validation_urls = urls[-100:-50] # 50 genomes for validation set
|
|
|
127 |
|
128 |
def _split_generators(self, dl_manager: datasets.DownloadManager) -> List[datasets.SplitGenerator]:
|
129 |
|
130 |
+
urls_filepath = dl_manager.download_and_extract('urls.txt')
|
131 |
+
with open(urls_filepath) as urls_file:
|
132 |
+
urls = [line.rstrip() for line in urls_file]
|
133 |
|
134 |
test_urls = urls[-50:] # 50 genomes for test set
|
135 |
validation_urls = urls[-100:-50] # 50 genomes for validation set
|
urls.csv
DELETED
The diff for this file is too large to render.
See raw diff
|
|
urls.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|