aflajolet commited on
Commit
24c68f9
1 Parent(s): d20c29a

Remove broken URLs to genome sequences

Browse files
Files changed (3) hide show
  1. multi_species_genomes.py +3 -3
  2. urls.csv +0 -0
  3. 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
- urls_file = dl_manager.download_and_extract('urls.csv')
131
- urls_df = pd.read_csv(urls_file)
132
- urls = list(urls_df['URL'])
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