tpierrot commited on
Commit
6a2682d
1 Parent(s): b72c7b2

Update human_reference_genome.py

Browse files
Files changed (1) hide show
  1. human_reference_genome.py +1 -1
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 gzip.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")
 
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")