Coder Social home page Coder Social logo

bcgsc / pori Goto Github PK

View Code? Open in Web Editor NEW
29.0 6.0 7.0 13.16 MB

Platform for Oncogenomic Reporting and Interpretation (PORI)

Home Page: https://bcgsc.github.io/pori

License: GNU General Public License v3.0

Shell 100.00%
pori genomics personalized-medicine

pori's Introduction

Platform for Oncogenomic Reporting and Interpretation (PORI)

DOI

The Platform for Oncogenomic Reporting and Interpretation (PORI) is an open source collection of software designed to support scaleable precision oncology. The platform has two main components: a graph knowledge base (GraphKB) and an integrated pipeline reporting application (IPR).

pori server stack

For more information see the related user manual

Demo

A live demo of this is found at: pori-demo.bcgsc.ca. This demo was deployed via docker-compose

Citation

Please cite Reisle, C. et al. A platform for oncogenomic reporting and interpretation. Nat. Commun. 13, 1โ€“11 (2022)

Building the Docs (Developers)

The main PORI site is built from this repo and pull documentation files from the python adapter repos. The documentation is built using mkdocs. The main website will be updated on merge to the master branch of this repository.

First, set up a virtual environment (Optional but recommended)

python3 -m venv venv
source venv/bin/activate
pip install -U setuptools pip

Install the python dependencies

pip install -r requirements.txt

Run the script to pull the other respository files

bash docs/build_external.sh

And finally serve the documentation for viewing locally with

mkdocs serve

pori's People

Contributors

anna-log7 avatar areisle avatar creisle avatar elewis2 avatar mathieulemieux avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

pori's Issues

requests.exceptions.HTTPError: 401 Client Error

Hello, I installed PORI docker stack for local machine. When I tried to upload a demo report, I got the error below. I noticed that even I provided a URL, ipr didn't use it and uses https://graphkb-api.bcgsc.ca/api/token not local address. OS is centos 7, RAM 8GB, disk 20gb space, browser firefox 91.7, docker v20. How can I solve this problem?

(ipr_stable) [aliriza@localhost Desktop]$ ipr -c demo_report.json --ipr_url http://127.0.0.1:8081/api --username iprdemo --password iprdemo
Traceback (most recent call last):
  File "/home/aliriza/miniconda3/envs/ipr_stable/bin/ipr", line 8, in <module>
    sys.exit(command_interface())
  File "/home/aliriza/miniconda3/envs/ipr_stable/lib/python3.8/site-packages/ipr/main.py", line 87, in command_interface
    create_report(
  File "/home/aliriza/miniconda3/envs/ipr_stable/lib/python3.8/site-packages/ipr/main.py", line 185, in create_report
    graphkb_conn.login(username, password)
  File "/home/aliriza/miniconda3/envs/ipr_stable/lib/python3.8/site-packages/graphkb/__init__.py", line 137, in login
    resp.raise_for_status()
  File "/home/aliriza/miniconda3/envs/ipr_stable/lib/python3.8/site-packages/requests/models.py", line 960, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://graphkb-api.bcgsc.ca/api/token

docker images are working fine:
image

Thanks.

request pending from IPR client to API in dev docker setup

When I updated to the latest images for some reason the requests seem to hang and not complete (see GIF below)

https://github.com/bcgsc/pori/blob/master/.github/workflows/compose-test.yml#L15

I am testing this off dev branch here currently: https://github.com/bcgsc/pori/tree/feature/re-install-instructions
Peek 2022-05-16 12-54

@kttkjl or @brayden-bcgsc or @mathieulemieux have any of you run into this? Did the CORS permissions change at all in the latest releases?

Invalid parameter: redirect_uri

Describe the bug
When accessing graphkb_client latest version, page redirects(to this link) and show an error. 10.100.120.219 is our server internal ip address.

Invalid parameter: redirect_uri
image

I wanted to put graphkb(latest) on production.

To Reproduce
Steps to reproduce the behaviour:

  1. Run command docker-compose -f custom_docker.yml up -d
  2. Access grapkb_client at http://10.100.120.219:5000/
  3. Page shows error

here is my custom_docker.yml:
custom_docker.txt

Expected behaviour
Graphkb login screen should be visible.

Versions (please complete the following information):

  • OS: centos 7
  • NodeJS: 16.14.2
  • Version: latest
  • OrientDB Version: 3.0

Additional context
I don't use HTTPS. My first aim is to run PORI without any error. Then I hope to use HTTPS.

update pori demo link destination

Copied from comment by @mathieulemieux :

While reviewing pori demo docs, I saw these two links:

  • A live demo of the platform is found under `pori-demo.bcgsc.ca`. This demo was deployed via docker-compose.
  • The simplest way to try out GraphKB is via the demo we provide [here](https://pori-demo.bcgsc.ca/).

    from which we are being redirected to the docs on GH and find it a bit confusing. What about removing them or changing them for the /ipr and /graphkb routes?

Originally posted by @mathieulemieux in #59 (comment)

Make shared default admin demo user for GraphKB/IPR

To simplify the setup it would be great to add the same admin user for both IPR and GraphKB. This will require the following tasks

  • @mathieulemieux to change the default "graphkb_admin" user in the graphkb api repo to be "pori_admin"
  • @brayden-bcgsc to add a new "pori_admin" user to the IPR default db dump with admin access to IPR
  • @mathieulemieux or @brayden-bcgsc to rename the user "graphkb_admin" in the keycloak dump json to pori_admin and update the accompanying docs

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.