Update human_reference_genome.py
Browse files
human_reference_genome.py
CHANGED
@@ -135,7 +135,7 @@ class HumanReferenceGenome(datasets.GeneratorBasedBuilder):
|
|
135 |
|
136 |
# method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
|
137 |
def _generate_examples(self, filepath, split):
|
138 |
-
with
|
139 |
fasta_sequences = SeqIO.parse(f, 'fasta')
|
140 |
# regex to filter lines of interest in the FASTA
|
141 |
prog = re.compile("NC_\d*.\d* Homo sapiens chromosome (\d*|\w), GRCh38.p14 Primary Assembly")
|
|
|
135 |
|
136 |
# method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
|
137 |
def _generate_examples(self, filepath, split):
|
138 |
+
with open(filepath, 'rt') as f:
|
139 |
fasta_sequences = SeqIO.parse(f, 'fasta')
|
140 |
# regex to filter lines of interest in the FASTA
|
141 |
prog = re.compile("NC_\d*.\d* Homo sapiens chromosome (\d*|\w), GRCh38.p14 Primary Assembly")
|