Clinical-Genomics / scout

VCF visualization interface
https://clinical-genomics.github.io/scout
BSD 3-Clause "New" or "Revised" License
149 stars 46 forks source link

Possibly invalid string escapes? #4851

Closed dnil closed 11 hours ago

dnil commented 4 days ago

Looks like a couple of forgotten/changed r-strings here?

/Users/dannil/sandbox/scout/scout/constants/disease_parsing.py:4: SyntaxWarning: invalid escape sequence '\('
  ENTRY_PATTERN = re.compile("\([1,2,3,4]\)")
/Users/dannil/sandbox/scout/scout/parse/omim.py:78: SyntaxWarning: invalid escape sequence '\{'
  "description": disease_description.strip("?\{\}"),
/Users/dannil/sandbox/scout/scout/utils/convert.py:56: SyntaxWarning: invalid escape sequence '\d'
  p = re.compile("p.([A-Za-z]+)(\d+)([A-Za-z]+)")
/Users/dannil/sandbox/scout/scout/utils/date.py:14: SyntaxWarning: invalid escape sequence '\d'
  date_pattern = re.compile("^(19|20)\d\d[- /.](0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])")
dnil commented 4 days ago

This could potentially be one or more bugs as well, but I haven't checked them and we haven't seen any consequences. Let's check and hopefully just fix while they are still warnings.