Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
4ad7fb9
Merge pull request #86 from bcgsc/main
elewis2 Nov 21, 2025
45929ec
send score to reports and match kbvariants
elewis2 Nov 25, 2025
f9983d6
fix syntax
elewis2 Nov 25, 2025
fea3c7e
lint
elewis2 Nov 25, 2025
c694513
update to use hrd_score db column
elewis2 Nov 25, 2025
a26caf2
pop hrd whether or not score is found
elewis2 Nov 25, 2025
37cae0a
change hrd type to object in spec
elewis2 Nov 26, 2025
71f4439
get nct instead of pmid for trials
elewis2 Nov 26, 2025
7811f49
add tests
elewis2 Nov 26, 2025
2781118
lint
elewis2 Nov 27, 2025
d599b95
Merge pull request #87 from bcgsc/feat/DEVSU-2769-load-hrd-score
elewis2 Nov 27, 2025
7043607
Merge branch 'develop' into feat/DEVSU-2786-get-trial-nct-ids
elewis2 Nov 27, 2025
0ba1a33
change test to reflect changed input data
elewis2 Dec 1, 2025
cd5f497
Merge branch 'feat/DEVSU-2786-get-trial-nct-ids' of https://github.co…
elewis2 Dec 1, 2025
7bbb86b
Merge pull request #88 from bcgsc/feat/DEVSU-2786-get-trial-nct-ids
elewis2 Dec 1, 2025
c637d41
remove default urls and rid
elewis2 Dec 9, 2025
b0bb3ae
lint with black
elewis2 Dec 9, 2025
9463238
add gkb test url to test workflows
elewis2 Dec 9, 2025
bbd1358
fix url
elewis2 Dec 9, 2025
5957ab8
add default source name
elewis2 Dec 11, 2025
7df2a3b
explain source use in function comment
elewis2 Dec 11, 2025
45d7726
prune kbvariants not part of complete cond set
elewis2 Dec 15, 2025
b462d79
add test
elewis2 Dec 15, 2025
eae01d7
remove var not used in test
elewis2 Dec 15, 2025
fc055ea
lint and remove debugging code
elewis2 Dec 15, 2025
524ad6b
remove unnecessary addition
elewis2 Dec 15, 2025
88d1133
Merge pull request #91 from bcgsc/bugfix/DEVSU-2793-remove-kbvar-matc…
elewis2 Dec 16, 2025
033d8be
Merge branch 'develop' of https://github.com/bcgsc/pori_python into f…
elewis2 Dec 16, 2025
e9575b3
exclude partial-only matched kbvars from key alts
elewis2 Dec 16, 2025
99937a6
add comment
elewis2 Dec 30, 2025
ddbe684
handle case where there is no ipr use
elewis2 Dec 30, 2025
ddb48c4
Merge pull request #92 from bcgsc/bugfix/DEVSU-2793-prune-nostmt-matc…
elewis2 Dec 30, 2025
8afb891
Merge branch 'develop' into feat/DEVSU-2797-remove-gsc-defaults
elewis2 Dec 30, 2025
2f10a20
Merge branch 'develop' of https://github.com/bcgsc/pori_python into f…
elewis2 Dec 30, 2025
d5beb1c
minor fixes
elewis2 Dec 31, 2025
fc2ab82
Merge branch 'feat/DEVSU-2797-remove-gsc-defaults' of https://github.…
elewis2 Dec 31, 2025
366eb9a
minor fix to test
elewis2 Dec 31, 2025
01cdde6
lint
elewis2 Dec 31, 2025
e290da6
provide string default in pharm info func
elewis2 Jan 6, 2026
1219643
Merge pull request #89 from bcgsc/feat/DEVSU-2797-remove-gsc-defaults
elewis2 Jan 7, 2026
dfcf87e
Add login demo warning in GraphKBConnection
mathieulemieux Feb 2, 2026
8a3d29d
Fix error msg typo in ipr_report()
mathieulemieux Feb 2, 2026
2d74049
fix test comment
elewis2 Feb 2, 2026
b11cc10
update readme
elewis2 Feb 2, 2026
8516832
Add empty url check to GraphKBConnection
mathieulemieux Feb 3, 2026
02bb7c8
Update GraphKB connection in ipr_report()
mathieulemieux Feb 3, 2026
e667d5e
Black linting
mathieulemieux Feb 3, 2026
a29bc4e
switch to use ruff
sshugsc Feb 3, 2026
5c41c97
update quick pytest to use ruff
sshugsc Feb 3, 2026
318f6b0
Set black to v25.11.0
mathieulemieux Feb 3, 2026
01e64fa
Set black to v25.11.0 in pytests.yml
mathieulemieux Feb 3, 2026
6ee9eb4
Merge pull request #97 from bcgsc/task/DEVSU-2797-mlemieux
mathieulemieux Feb 3, 2026
a97c7f0
remove biopython dependency
elewis2 Feb 4, 2026
2207bf0
use gkb disease matches for variant-text
elewis2 Feb 5, 2026
a3715db
use consistent disease match component name
elewis2 Feb 5, 2026
4c9589a
Merge pull request #98 from bcgsc/feat/remove-biopython-dependency
elewis2 Feb 6, 2026
d11b414
typefix, extract fields in main
elewis2 Feb 6, 2026
f0f16d3
Merge branch 'develop' into feat/minor-documentation-fixes-for-release
elewis2 Feb 6, 2026
2413726
Merge branch 'develop' into feat/DEVSU-2856-broader-disease-matching-…
mathieulemieux Feb 6, 2026
1092e1f
Merge pull request #95 from bcgsc/feat/minor-documentation-fixes-for-…
elewis2 Feb 6, 2026
33e4471
Merge branch 'develop' into feat/DEVSU-2856-broader-disease-matching-…
elewis2 Feb 6, 2026
7439acb
Merge branch 'develop' into switch-to-ruff
sshugsc Feb 6, 2026
3166eed
lint
sshugsc Feb 6, 2026
69f2a71
Merge pull request #99 from bcgsc/feat/DEVSU-2856-broader-disease-mat…
elewis2 Feb 7, 2026
3bcb2c8
Merge branch 'develop' into switch-to-ruff
sshugsc Feb 9, 2026
5b29d4f
lint for merge conflict
sshugsc Feb 9, 2026
b728677
Merge pull request #100 from bcgsc/switch-to-ruff
sshugsc Feb 9, 2026
9644926
Bump version from 1.2.2 to 1.3.0
mathieulemieux Feb 9, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,10 @@ jobs:
run: |
python -m pip install --upgrade pip setuptools
pip install -e .[test] # coverage reports need -e to capture properly
- name: Lint with flake8
- name: Check with ruff
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 pori_python --count --select=E9,F63,F7,F82 --show-source --statistics
- name: Check with black
run: |
pip install black
black --check -S -l 100 pori_python tests
pip install ruff
ruff format --check pori_python tests
- name: Full Tests with pytest
run: |
pip list
Expand All @@ -46,6 +41,7 @@ jobs:
IPR_PASS: ${{ secrets.IPR_TEST_PASSWORD }}
GRAPHKB_USER: ${{ secrets.GKB_TEST_USER }}
GRAPHKB_PASS: ${{ secrets.GKB_TEST_PASS }}
GRAPHKB_URL: ${{ secrets.GKB_TEST_URL }}
# SDEV-3381 - Turn off integration tests temporarily, till efficiency is increased
# turn on integration tests for one python version only
EXCLUDE_INTEGRATION_TESTS: ${{ matrix.python-version != '3.11' }}
Expand Down
15 changes: 6 additions & 9 deletions .github/workflows/quick-pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,19 @@ jobs:
run: |
python -m pip install --upgrade pip setuptools
pip install -e .[test] # coverage reports need -e to capture properly
- name: Lint with flake8
- name: Check with ruff
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 pori_python --count --select=E9,F63,F7,F82 --show-source --statistics
- name: Check with black
run: |
pip install black
black --check -S -l 100 pori_python tests
pip install ruff
ruff format --check pori_python tests
- name: Short Tests with pytest
run: pytest --junitxml=junit/test-results-${{ matrix.python-version }}.xml --cov ipr --cov-report term --cov-report xml
env:
IPR_USER: ${{ secrets.IPR_TEST_USER }}
IPR_PASS: ${{ secrets.IPR_TEST_PASSWORD }}
IPR_URL: ${{ secrets.IPR_TEST_URL }}
GRAPHKB_USER: ${{ secrets.GKB_TEST_USER }}
GRAPHKB_PASS: ${{ secrets.GKB_TEST_PASS }}
GRAPHKB_URL: ${{ secrets.GKB_TEST_URL }}
EXCLUDE_INTEGRATION_TESTS: 1
# EXCLUDE_INTEGRATION_TESTS: ${{ matrix.python-version != '3.11' }}
if: github.event_name != 'pull_request'
if: github.event_name != 'pull_request'
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,9 @@ pip install -e .[dev]

Run the tests:

Export usernames, passwords, and set test options.
Export usernames, passwords, and test options.

Note that IPR tests will try to use the BCGSC production GraphKB API by default.
If you want to test interaction with a different instance, you will need to
set the GraphKB variables.
IPR_URL and GRAPHKB_URL values must also be set.

Set EXCLUDE vars to 1 if you don't want to run these tests.
ONCOKB and BCGSC tests are enabled by default.
Expand All @@ -67,11 +65,12 @@ export EXCLUDE_ONCOKB_TESTS=1
```

If you want to run tests that upload reports to a live IPR instance,
specify the url of the IPR API you want to use and set the test var to 1.
specify the url of the IPR API you want to use and set the test var
INCLUDE_UPLOAD_TESTS to 1.
These tests are disabled by default.

The created reports are deleted by default. If you want to keep them,
set DELETE_UPLOAD_TEST_REPORTS to 0 in the env.
set DELETE_UPLOAD_TEST_REPORTS to 0.

```bash
export IPR_TEST_URL='http://localhost:8081/api'
Expand All @@ -84,14 +83,16 @@ pytest tests
```

### JSON Validate and Upload to IPR
An IPR_URL must be provided either as an environment variable or an arg.

If you only want to validate the json content, use
```bash
ipr --password $IPR_PASS -c 'path/to/content.json' --validate_json
ipr --password $IPR_PASS -c 'path/to/content.json' --validate_json --ipr_url $IPR_URL
```

If you only want to upload the json directly to ipr and skip all the preprocessing, use
```bash
ipr --password $IPR_PASS -c 'path/to/content.json' --upload_json
ipr --password $IPR_PASS -c 'path/to/content.json' --upload_json --ipr_url $IPR_URL
```

## Documentation
Expand Down
1 change: 0 additions & 1 deletion pori_python/graphkb/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
from .constants import DEFAULT_URL # noqa: F401
from .util import GraphKBConnection, logger # noqa: F401
Loading