Update plant-multi-species-genomes.py
Browse files
plant-multi-species-genomes.py
CHANGED
@@ -6,6 +6,7 @@ from typing import List
|
|
6 |
import datasets
|
7 |
import pandas as pd
|
8 |
from Bio import SeqIO
|
|
|
9 |
|
10 |
|
11 |
# Find for instance the citation on arxiv or on the dataset repo/website
|
@@ -104,7 +105,7 @@ class PlantMultiSpeciesGenomes(datasets.GeneratorBasedBuilder):
|
|
104 |
|
105 |
filepaths_txt = dl_manager.download_and_extract('plant_genome_file_names.txt')
|
106 |
with open(filepaths_txt) as f:
|
107 |
-
filepaths = [filepath.rstrip() for filepath in f]
|
108 |
|
109 |
test_paths = filepaths[-2:] # 2 genomes for test set
|
110 |
validation_paths = filepaths[-4:-2] # 2 genomes for validation set
|
|
|
6 |
import datasets
|
7 |
import pandas as pd
|
8 |
from Bio import SeqIO
|
9 |
+
import os
|
10 |
|
11 |
|
12 |
# Find for instance the citation on arxiv or on the dataset repo/website
|
|
|
105 |
|
106 |
filepaths_txt = dl_manager.download_and_extract('plant_genome_file_names.txt')
|
107 |
with open(filepaths_txt) as f:
|
108 |
+
filepaths = [os.path.join("plant_genomes",filepath.rstrip()) for filepath in f]
|
109 |
|
110 |
test_paths = filepaths[-2:] # 2 genomes for test set
|
111 |
validation_paths = filepaths[-4:-2] # 2 genomes for validation set
|