monarch-initiative / pheval

A framework for empirical evaluation of phenotype matching and prioritisation
https://monarch-initiative.github.io/pheval/
Apache License 2.0
12 stars 1 forks source link

Ensure string typing when checking for string/list in gene prioritisation analysis #345

Closed yaseminbridges closed 3 months ago

yaseminbridges commented 3 months ago

This will fix/prevent this error:

  File "/nfs/production/parkinso/spot/pheval/monarch_pheval_zenodo/.venv/lib/python3.10/site-packages/pheval/analyse/gene_prioritisation_analysis.py", line 158, in _check_string_representation
    if list_pattern.match(entity):
TypeError: expected string or bytes-like object
make[2]: *** [Makefile:256: results/gene_rank_stats.svg] Error 1
make[1]: *** [Makefile:515: pheval] Error 2
make: *** [Makefile:521: all] Error 2