Datasets:

Languages:
English
License:
davidkartchner commited on
Commit
d40dedd
1 Parent(s): bbdfb41

Make taxonomy identification case insensitive

Browse files

This fixes a bug where gene identifiers and taxonomy IDs are not parsed correctly due to casing inconsistency in the original source data.

Files changed (1) hide show
  1. gnormplus.py +1 -1
gnormplus.py CHANGED
@@ -100,7 +100,7 @@ class GnormplusDataset(datasets.GeneratorBasedBuilder):
100
 
101
  DEFAULT_CONFIG_NAME = "gnormplus_source"
102
 
103
- _re_tax_id = re.compile(r"(?P<db_id>\d+)\(Tax:(?P<tax_id>\d+)\)")
104
 
105
  def _info(self) -> datasets.DatasetInfo:
106
  if self.config.schema == "source":
 
100
 
101
  DEFAULT_CONFIG_NAME = "gnormplus_source"
102
 
103
+ _re_tax_id = re.compile(r"(?P<db_id>\d+)\([tT]ax:(?P<tax_id>\d+)\)")
104
 
105
  def _info(self) -> datasets.DatasetInfo:
106
  if self.config.schema == "source":