From 57b6e51a7f62c6d6d984121ef6df4c750619efc4 Mon Sep 17 00:00:00 2001 From: Emmanuel Nau Date: Mon, 5 Jan 2026 14:51:36 +0100 Subject: [PATCH] fix: CLIN-5494 Update OMIM phenotype regex to parse phenotype without omimId --- .../spark3/publictables/normalized/omim/OmimPhenotype.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalake-spark3/src/main/scala/bio/ferlab/datalake/spark3/publictables/normalized/omim/OmimPhenotype.scala b/datalake-spark3/src/main/scala/bio/ferlab/datalake/spark3/publictables/normalized/omim/OmimPhenotype.scala index d989e99c..bc769d14 100644 --- a/datalake-spark3/src/main/scala/bio/ferlab/datalake/spark3/publictables/normalized/omim/OmimPhenotype.scala +++ b/datalake-spark3/src/main/scala/bio/ferlab/datalake/spark3/publictables/normalized/omim/OmimPhenotype.scala @@ -12,7 +12,7 @@ case class OmimPhenotype(name: String, object OmimPhenotype { - val pheno_regexp: Regex = "(.*),\\s(\\d*)\\s\\([1234]\\)(?:,\\s(.*))?".r + val pheno_regexp: Regex = "(.*)(?:,\\s(\\d*))?\\s\\([1234]\\)(?:,\\s(.*))?".r def mapInheritance(inheritance: String): Option[Seq[String]] = { if (inheritance == null) None