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 list/string in gene benchmarking #344

Closed yaseminbridges closed 2 months ago

yaseminbridges commented 2 months ago

To fix:

File "/nfs/production/parkinso/spot/pheval/monarch_pheval_zenodo/.venv/lib/python3.10/site-packages/pheval/analyse/gene_prioritisation_analysis.py", line 184, in assess_gene_prioritisation gene_identifier = self._check_string_representation( 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