Skip to content

Commit 57b6e51

Browse files
author
Emmanuel Nau
committed
fix: CLIN-5494 Update OMIM phenotype regex to parse phenotype without omimId
1 parent 0241a0e commit 57b6e51

File tree

1 file changed

+1
-1
lines changed
  • datalake-spark3/src/main/scala/bio/ferlab/datalake/spark3/publictables/normalized/omim

1 file changed

+1
-1
lines changed

datalake-spark3/src/main/scala/bio/ferlab/datalake/spark3/publictables/normalized/omim/OmimPhenotype.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ case class OmimPhenotype(name: String,
1212

1313
object OmimPhenotype {
1414

15-
val pheno_regexp: Regex = "(.*),\\s(\\d*)\\s\\([1234]\\)(?:,\\s(.*))?".r
15+
val pheno_regexp: Regex = "(.*)(?:,\\s(\\d*))?\\s\\([1234]\\)(?:,\\s(.*))?".r
1616

1717
def mapInheritance(inheritance: String): Option[Seq[String]] = {
1818
if (inheritance == null) None

0 commit comments

Comments
 (0)