Giter Site home page Giter Site logo

Comments (4)

pjvandehaar avatar pjvandehaar commented on August 14, 2024

from pheweb.

sylee20 avatar sylee20 commented on August 14, 2024

This is what I see in the STDOUT:

sudo pheweb serve --port 33098
[2023-09-17 20:13:55 +0900] [32421] [INFO] Starting gunicorn 20.0.4
[2023-09-17 20:13:55 +0900] [32421] [INFO] Listening at: http://0.0.0.0:33098 (32421)
[2023-09-17 20:13:55 +0900] [32421] [INFO] Using worker: gevent
[2023-09-17 20:13:55 +0900] [32425] [INFO] Booting worker with pid: 32425
[2023-09-17 20:13:55 +0900] [32426] [INFO] Booting worker with pid: 32426
[2023-09-17 20:13:55 +0900] [32427] [INFO] Booting worker with pid: 32427
[2023-09-17 20:13:55 +0900] [32428] [INFO] Booting worker with pid: 32428
[2023-09-17 20:13:55 +0900] [32429] [INFO] Booting worker with pid: 32429
[2023-09-17 20:13:55 +0900] [32430] [INFO] Booting worker with pid: 32430
[2023-09-17 20:13:55 +0900] [32431] [INFO] Booting worker with pid: 32431
[2023-09-17 20:13:55 +0900] [32432] [INFO] Booting worker with pid: 32432

When I click a variant name:

Exception:
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/pheweb/serve/server.py", line 120, in variant_page
    variant = get_variant(query)
  File "/usr/local/lib/python3.6/dist-packages/pheweb/serve/server_utils.py", line 70, in get_variant
    assert None not in [chrom, pos, ref, alt]
AssertionError
Oh no, something went wrong
[17/Sep/2023:20:45:50 +0900] | 404 | 0.020327s | GET /variant/4-10211261-C-<DEL> | resp_len:3825 | referrer:"http://210.114.91.250:33098/phenotypes" | ip:183.100.201.22 | agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
[17/Sep/2023:20:45:50 +0900] | 200 | 0.002083s | GET /static/common.css | resp_len:397 | referrer:"http://210.114.91.250:33098/variant/4-10211261-C-%3CDEL%3E" | ip:183.100.201.22 | agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
[17/Sep/2023:20:45:50 +0900] | 200 | 0.001662s | GET /static/common.js | resp_len:1092 | referrer:"http://210.114.91.250:33098/variant/4-10211261-C-%3CDEL%3E" | ip:183.100.201.22 | agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36

from pheweb.

sylee20 avatar sylee20 commented on August 14, 2024

Hi,
I modified one line in class "_ParseVariant" and now I can see the phewas plot.

#chrom_pos_ref_alt_regex = re.compile(chrom_pos_regex.pattern + r'[-_:/ ]([-AaTtCcGg\.]+)[-_:/ ]([-AaTtCcGg\.]+)')
chrom_pos_ref_alt_regex = re.compile(chrom_pos_regex.pattern + r'[-_:/ ]([-AaTtCcGg\.]+)[-_:/ ]([A-Za-z\-<>\.]+)')

My URL was /variant/4-10211261-C-<DEL>, so I changed the code to allow any alphabet and <> as the alternate allele.

Thank you.

from pheweb.

pjvandehaar avatar pjvandehaar commented on August 14, 2024

from pheweb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.