statgen / pheweb

A tool to build a website to browse hundreds or thousands of GWAS.
MIT License
154 stars 65 forks source link

Variants page is not displayed #201

Closed Hiroaki-S-Ri closed 1 year ago

Hiroaki-S-Ri commented 1 year ago

Hi,

I use pheweb on the centos7. ・Plot page and region page can be displayed on the web, like the following. pheno

・but variant page on the web is not displayed, like the following. variant

・And, on the terminal, the following output was obtained.

Exception: geno_id Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/pheweb/serve/server.py", line 120, in variant_page variant = get_variant(query) File "/usr/local/lib/python3.7/site-packages/pheweb/serve/server_utils.py", line 72, in get_variant self._matrix_reader = MatrixReader() File "/usr/local/lib/python3.7/site-packages/pheweb/file_utils.py", line 260, in init assert field in parse_utils.fields, field AssertionError: geno_id Oh no, something went wrong

Could you tell me how to solve this problem?

pjvandehaar commented 1 year ago

What is your pheweb version? What is in your config.py? Where did “geno_id” come from?

Hiroaki-S-Ri commented 1 year ago

Pheweb version is 1.3.16. The predecessor originally added geno_id to input data and conf_utils.py's per_variant_fields, but when I upgraded centos pheweb was also upgraded and setting of geno_id was removed. So I added geno_id to parse_utils.py, and solved it.

Thank you.

pjvandehaar commented 1 year ago

Great!