Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update main to show latest docs #223

Closed
wants to merge 858 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
858 commits
Select commit Hold shift + click to select a range
9d7c108
moved drawing of variant marker to class
frehburg Jul 9, 2024
7b72af5
made bottom of protein track look like top (visual bug)
frehburg Jul 9, 2024
5df1ffa
corrected spelling of variant types to be correct in legend 2
frehburg Jul 9, 2024
8118d7f
added x axis label, changed typo in comment
frehburg Jul 9, 2024
ca017f3
plotting legend1 correctly
frehburg Jul 9, 2024
5a2ee56
removed unnecessary print
frehburg Jul 9, 2024
9239823
Merge branch 'develop' into Feature_counts
lnrekerle Jul 9, 2024
dfd716d
added new dependency
lnrekerle Jul 9, 2024
492ec46
Removed "Homozygous_reference" for AlleleCounter.
lnrekerle Jul 9, 2024
b1a87a8
Removed changes that would affect PR #184
lnrekerle Jul 9, 2024
819fa82
Moved titles to top
lnrekerle Jul 9, 2024
0b28d3c
Merge remote-tracking branch 'origin/develop' into variant-predicate
ielis Jul 10, 2024
6832727
Add `get_question` to `VariantPredicate`, implement `GenotypeBooleanP…
ielis Jul 10, 2024
ec411b1
Mark classes targeted for removal with TODO markers.
ielis Jul 10, 2024
4f7d0a1
Remove obsolete cohort analysis implementation.
ielis Jul 10, 2024
e91049a
Remove boolean and grouping predicate implementations from the public…
ielis Jul 10, 2024
7cafaf3
changed dataclass code to be compatible with python 3.8
frehburg Jul 10, 2024
c91cdce
removed unnecessary prints
frehburg Jul 10, 2024
4818e98
Fix incorrect kw argument.
ielis Jul 10, 2024
55e172d
Elaborate on building the predicate.
ielis Jul 10, 2024
d639310
Prepare for removing `CohortAnalysis` convenience methods in favor of…
ielis Jul 10, 2024
f77a801
Update the `tutorial.rst`.
ielis Jul 10, 2024
a34d0a1
Revert missing `CohortAnalysisConfiguration` setter.
ielis Jul 10, 2024
bb89ed1
Add the new compare methods to the API.
ielis Jul 10, 2024
7796890
Add config for default protein metadata service.
ielis Jul 10, 2024
4755cf3
Made requested changes for the PR
lnrekerle Jul 10, 2024
22091bd
Simplify parts of variant predicates.
ielis Jul 10, 2024
3370f7a
`overlapping_exons` is in fact nullable.
ielis Jul 10, 2024
df7750c
Fix typo.
ielis Jul 10, 2024
fb6a4f5
Use private random number generator.
ielis Jul 10, 2024
83d2eb1
Merge remote-tracking branch 'origin/develop' into protein-viz
ielis Jul 10, 2024
e9048cb
Update few typing annotations.
ielis Jul 10, 2024
bcc04e7
Also move `get_hgvs_cdna_by_tx_id` to `FunctionalAnnotationAware`.
ielis Jul 10, 2024
c6587b8
Update `ProteinViewable` pydoc.
ielis Jul 10, 2024
5643efc
Use `dataclass` instead of named tuple.
ielis Jul 10, 2024
8aaf00f
Add an on-demand test for generating an example protein HTML report.
ielis Jul 10, 2024
a5dec9c
Pull the convenience methods up to `CohortAnalysis`.
ielis Jul 11, 2024
bd8318f
Update KBG notebook.
ielis Jul 11, 2024
f8f6b7c
Pull `ProteinMetadataService` into `CohortAnalysis`.
ielis Jul 11, 2024
0b78e39
Remove `_geno_bool` predicates.
ielis Jul 11, 2024
3fa4de4
Remove `_geno_group` predicates.
ielis Jul 11, 2024
ffaf2e1
Add `None` check.
ielis Jul 11, 2024
951d8b7
Merge pull request #179 from monarch-initiative/Feature_counts
lnrekerle Jul 11, 2024
21a5b34
Implement eq and hash on `LogicalVariantPredicate`s.
ielis Jul 12, 2024
87348c7
Test `LogicalVariantPredicate`s.
ielis Jul 12, 2024
8f46483
Merge branch 'develop' into variant-predicate
ielis Jul 12, 2024
0109795
Add recessive grouping predicate.
ielis Jul 12, 2024
42c0d3a
Remove recessive predicates.
ielis Jul 12, 2024
be957b8
Implement dunders on `AlleleCounter`.
ielis Jul 12, 2024
5591295
Implement dunders on patient predicates.
ielis Jul 12, 2024
5ac9748
Update the tutorial to discuss the predicates.
ielis Jul 12, 2024
132898c
Add top-level *and* and *or* predicates.
ielis Jul 15, 2024
ec8176e
Draft predicates user guide.
ielis Jul 15, 2024
5fadda3
Use operator overload to build compound predicates.
ielis Jul 15, 2024
790aa33
Remove obsolete tests.
ielis Jul 15, 2024
b76f6ff
Merge pull request #184 from monarch-initiative/protein-viz
ielis Jul 15, 2024
01e21d9
created a new metaclass called Formatter, that can be used to format …
lnrekerle Jul 19, 2024
3f7d58b
Merge remote-tracking branch 'origin/develop' into variant-predicate
ielis Jul 22, 2024
b794205
Merge pull request #159 from monarch-initiative/variant-predicate
ielis Jul 22, 2024
1abd6b6
Fixed Change Requests for PR
lnrekerle Jul 22, 2024
c508e0b
Forgot a change to fix typing in view._cohort
lnrekerle Jul 22, 2024
5eb9e78
Removed unnecessary and broken imports
lnrekerle Jul 22, 2024
d49c976
Missed a change in variable inputs
lnrekerle Jul 22, 2024
588265a
multiple testing documentation
pnrobinson Jul 23, 2024
c7e9829
Update `get_preferred_tx_annotation` wording.
ielis Jul 23, 2024
da66108
We don't need to export `VariantFormatter` at this point.
ielis Jul 23, 2024
bb6673c
Revert `VariantFormatter` removal - we need it for tests.
ielis Jul 23, 2024
178f55f
Merge branch 'develop' into variant_formatter
ielis Jul 23, 2024
2444221
Small changes to variant formatter
lnrekerle Jul 24, 2024
2c7f645
Merge pull request #185 from monarch-initiative/variant_formatter
ielis Jul 25, 2024
93dd786
Removed the red background by taking warnings out of the stderr and p…
lnrekerle Jul 26, 2024
5c34f9c
Fixed error for case of no errors or warnings
lnrekerle Jul 26, 2024
c84b3df
Merge branch 'develop' into removing_red
lnrekerle Jul 26, 2024
b245aaf
tqdm.notebook does not work in our doc tests. So no pretty progress b…
lnrekerle Jul 26, 2024
1b6568f
Changed bar to green!
lnrekerle Jul 26, 2024
62faba9
Error with doctests because of unexpected stdout output
lnrekerle Jul 26, 2024
612e89c
Last doctest change didn't work. Trying this.
lnrekerle Jul 26, 2024
40e6775
Okay, trying this again
lnrekerle Jul 27, 2024
51f8342
Merge branch 'develop' into mtc_docs
ielis Jul 29, 2024
026e8d3
Add docs to MTC strategy enum, `terms_to_test` can be `None`, add tests.
ielis Jul 29, 2024
eb3ec10
Simplify the MTC user guide.
ielis Jul 29, 2024
f8a1df4
It should have been `elif`.
ielis Jul 29, 2024
9ccc39c
Merge pull request #195 from monarch-initiative/ielis/issue188
ielis Jul 29, 2024
3c0a6ac
Move all tests from `genophenocorr.preprocessing` to `tests/preproces…
ielis Jul 29, 2024
fc82c42
`VariantCoordinateFinder` may not find `VariantCoordinates`.
ielis Jul 29, 2024
8fa3e00
Split logic for parsing variant coordinates and genotypes.
ielis Jul 29, 2024
dda751c
Changes to _config for errors and warnings
lnrekerle Jul 29, 2024
1c037bd
`Variant` has `VariantInfo` that has either `VariantCoordinates` or `…
ielis Jul 30, 2024
cd0701b
Add `GeneCoordinateService` and an implementation by `VVMultiCoordina…
ielis Jul 30, 2024
845403a
Implement default `ImpreciseSvFunctionalAnnotator`.
ielis Jul 30, 2024
81f80e5
Refactor and streamline `PhenopacketPatientCreator` code.
ielis Jul 30, 2024
31e167d
Rename test file.
ielis Jul 30, 2024
5ffdbc5
Add rate limit on VV endpoint.
ielis Jul 30, 2024
b1e401c
Update timeout to increase chance the online tests will pass.
ielis Jul 30, 2024
88524dc
Let's use `print` + `file` to print to STDERR.
ielis Jul 30, 2024
5c1f877
Merge pull request #193 from monarch-initiative/removing_red
ielis Jul 30, 2024
3059586
Merge remote-tracking branch 'origin/develop' into ielis/issue156
ielis Jul 30, 2024
98164a6
Relax `timeout` criteria.
ielis Jul 30, 2024
f14b66a
Update the notebooks, add support for `DUP`s
ielis Jul 30, 2024
bafa1b0
Set up to implement caching of SVs functional annotation at some poin…
ielis Jul 30, 2024
3cdcb00
Merge branch 'develop' into mtc_docs
ielis Jul 30, 2024
91a93c0
Merge pull request #189 from monarch-initiative/mtc_docs
pnrobinson Jul 31, 2024
ee57c1a
Require `phenopackets>=2.0.2.post4`.
ielis Jul 31, 2024
176a7c7
Merge remote-tracking branch 'origin/develop' into ielis/issue156
ielis Jul 31, 2024
e10addb
Merge pull request #196 from monarch-initiative/ielis/issue156
ielis Jul 31, 2024
433e650
Set up stubs and tests for `CountingPhenotypePredicate`.
ielis Jul 31, 2024
16d7e6e
docs
pnrobinson Aug 1, 2024
beef1e7
Implement `IsStructuralVariantPredicate` for testing if a variant is …
ielis Aug 1, 2024
642cd0b
Fix typos, add test.
ielis Aug 1, 2024
aa71097
Map `p_val` to `float` before testing.
ielis Aug 1, 2024
f4b0c6e
Fisher exact test
pnrobinson Aug 2, 2024
6288614
Merge branch 'stats_doc' of https://github.com/monarch-initiative/gen…
pnrobinson Aug 2, 2024
28970f7
CountingPhenotypePredicate
pnrobinson Aug 2, 2024
80b4fb2
adding code for chromosomal deletion
pnrobinson Aug 2, 2024
781670e
Sanity check.
ielis Aug 2, 2024
9b5123f
Merge pull request #198 from monarch-initiative/stats_doc
ielis Aug 2, 2024
132edec
Add predicates for testing variant class, structural type and change …
ielis Aug 2, 2024
9964559
Add tests for the new predicates.
ielis Aug 2, 2024
483c7fc
Merge remote-tracking branch 'origin/develop' into add-predicate-for-…
ielis Aug 2, 2024
c9a53d2
Add predicates for testing for large imprecise SVs.
ielis Aug 2, 2024
1c3a984
Merge pull request #199 from monarch-initiative/add-predicate-for-tes…
pnrobinson Aug 3, 2024
2a70c6c
Merge branch 'develop' into stats-using-counts
pnrobinson Aug 3, 2024
524382a
Updating MTC heuristic and documentation
pnrobinson Aug 4, 2024
c118fc8
Merge branch 'develop' into mtc_heuristic
pnrobinson Aug 4, 2024
fd7d0d3
Adjusting API, writing tests.
pnrobinson Aug 4, 2024
bac64bc
Update the `CountingPhenotypePredicate`.
ielis Aug 5, 2024
6f752cf
Merge pull request #197 from monarch-initiative/stats-using-counts
ielis Aug 5, 2024
3ac574f
Fix bug in mapping to variant effects.
ielis Aug 5, 2024
6f1f4cf
Implement counting the phenotype group number.
ielis Aug 5, 2024
3cff08b
Merge branch 'develop' into mtc_heuristic
pnrobinson Aug 6, 2024
6282c83
Simplify building variant predicates programmatically.
ielis Aug 6, 2024
a3af73e
Add factory methods for building `VariantCoordinates` from VCF data.
ielis Aug 6, 2024
a498f3f
Implement `RefAlleleLengthPredicate`.
ielis Aug 6, 2024
f186e15
Fix change length bug for the literal variants.
ielis Aug 6, 2024
19da0c3
Add notebook for showing G/P correlation in *RERE* probands.
ielis Aug 6, 2024
b9a41ca
Add more info to the notebook.
ielis Aug 6, 2024
4376ef4
Minor tweaks in MTC and general HPO doc sections.
ielis Aug 6, 2024
4b6c08a
Merge pull request #200 from monarch-initiative/mtc_heuristic
ielis Aug 6, 2024
dc7c410
Merge remote-tracking branch 'origin/develop' into test-counting-phen…
ielis Aug 6, 2024
bd56367
Write static constructor for `HeuristicMtcFilter`.
ielis Aug 6, 2024
bf49389
Fixed large variants in variant_key and added documentation and a test.
lnrekerle Aug 7, 2024
5289eb7
Expanded table of genotypes
lnrekerle Aug 7, 2024
638a748
Checking that CI issues are fixed
lnrekerle Aug 8, 2024
554acc0
Getting tests to work again after change in test data.
lnrekerle Aug 9, 2024
56a4059
Fixing Doc testing
lnrekerle Aug 9, 2024
dd796cb
Fixed so ci runs
lnrekerle Aug 9, 2024
8eb911f
Implement inversion of the variant predicates.
ielis Aug 11, 2024
2e941ce
Add documentation section.
ielis Aug 11, 2024
c41e5e7
Merge branch 'test-counting-phenotype-predicate' into add-inv-predicate
ielis Aug 11, 2024
6638cd6
Update the user guide to use `all` instead of `and`.
ielis Aug 11, 2024
078ed03
Merge pull request #205 from monarch-initiative/expand_table
pnrobinson Aug 12, 2024
17fd3ed
Merge branch 'develop' into large_variant
pnrobinson Aug 12, 2024
a72b1e3
Added line in SUOX.json for tests.
lnrekerle Aug 12, 2024
8585708
We must hash all `TranscriptAnnotation` fields, friends.
ielis Aug 12, 2024
442df13
Fix bugs in variant display.
ielis Aug 12, 2024
aefa055
Reformat `TranscriptAnnotation` dunder methods.
ielis Aug 12, 2024
56a6192
Merge pull request #208 from monarch-initiative/fix-some-bugs
ielis Aug 12, 2024
81a415e
Merge remote-tracking branch 'origin/develop' into large_variant
ielis Aug 12, 2024
5d5817c
Reporting the number of tests
lnrekerle Aug 12, 2024
c9fc5d4
Update the MTC filter test expectations.
ielis Aug 12, 2024
8a53b1f
Merge branch 'develop' into add-inv-predicate
ielis Aug 12, 2024
5dfebf2
Merge pull request #206 from monarch-initiative/add-inv-predicate
ielis Aug 12, 2024
f679166
remove deletion that is unneeded for this PR
lnrekerle Aug 13, 2024
f29a3bf
Merge remote-tracking branch 'origin/develop' into total_tests
lnrekerle Aug 13, 2024
358c050
Merge branch 'develop' into large_variant
lnrekerle Aug 13, 2024
d3ac039
Add flake8 file.
ielis Aug 14, 2024
80ba87f
Remove the obsolete convenience methods from `CohortAnalysis`.
ielis Aug 14, 2024
29f0b45
Fixed the documentation and added tests for large variants.
lnrekerle Aug 14, 2024
b4cd769
Merge pull request #209 from monarch-initiative/total_tests
lnrekerle Aug 14, 2024
aad947f
Merge branch 'develop' into large_variant
lnrekerle Aug 14, 2024
726328a
Simplify creating the protein metadata service, update notebooks.
ielis Aug 15, 2024
61780de
Add *FBN1* notebooks.
ielis Aug 15, 2024
2ac1d71
Simplify the documentation example.
ielis Aug 15, 2024
ab360f3
Update the serialization of `VariantClass` enum.
ielis Aug 15, 2024
6a67100
Add a test stub.
ielis Aug 15, 2024
c30a2c2
Updated tests
lnrekerle Aug 15, 2024
9f35918
Use newly deployed `phenopacket-store-toolkit`.
ielis Aug 16, 2024
7e178f0
Prepare for using `phenopacket-store-toolkit`.
ielis Aug 16, 2024
5f31f32
Fix bug with finding variant coordinates.
ielis Aug 16, 2024
99ec82f
We do not need to keep phenopackets in the repo anymore!
ielis Aug 16, 2024
4bffcab
Generate coverage report.
ielis Aug 16, 2024
7d02d8f
Finish phenotype group testing.
ielis Aug 16, 2024
7c6d045
Added an error that catches if there are no patients that have the ge…
lnrekerle Aug 16, 2024
3d75ca2
We must not print too much during validation.
ielis Aug 17, 2024
c66e121
Add the counting predicate example draft.
ielis Aug 19, 2024
76ceb01
Do phenotype scoring instead.
ielis Aug 19, 2024
2504cca
Add groups predicate and use it in phenotype scoring example.
ielis Aug 19, 2024
f23caaa
Remove `grouping_predicate`.
ielis Aug 19, 2024
2e63102
We do not need `dev/RERE.ipynb` anymore.
ielis Aug 19, 2024
8fc4828
Remove `GroupingPredicate`.
ielis Aug 19, 2024
b31aeae
Merge remote-tracking branch 'origin/develop' into exemplify-phenotyp…
ielis Aug 19, 2024
657d715
Sadly, we can only support Python 3.10 or better.
ielis Aug 19, 2024
24282b7
Show a box plot with the phenotype scores, report `cat_id` instead of…
ielis Aug 19, 2024
c60a677
Do not install `docs` extras for CI. Use `TKAgg` matplotlib backend.
ielis Aug 19, 2024
622920c
Use `Agg` backend.
ielis Aug 19, 2024
caca1dc
Update the notebooks.
ielis Aug 19, 2024
7381eba
Add tests.
ielis Aug 20, 2024
7b8a4cf
Merge pull request #214 from monarch-initiative/division_by_zero
ielis Aug 20, 2024
a245599
Merge remote-tracking branch 'origin/develop' into exemplify-phenotyp…
ielis Aug 20, 2024
d887e6a
Merge remote-tracking branch 'origin/develop' into large_variant
ielis Aug 20, 2024
31452de
Merge pull request #204 from monarch-initiative/large_variant
ielis Aug 20, 2024
1b7d9ba
Merge remote-tracking branch 'origin/develop' into exemplify-phenotyp…
ielis Aug 20, 2024
0ea4f4f
Update the p value expected in the phenotype scorer test.
ielis Aug 20, 2024
5a8e601
Merge pull request #219 from monarch-initiative/exemplify-phenotype-s…
ielis Aug 20, 2024
832a3b9
Fix bug in change length calculation for CNVs.
ielis Aug 20, 2024
bcfcccf
Merge pull request #220 from monarch-initiative/ielis/issue203
ielis Aug 20, 2024
4e5eae8
Remove phenotype filtering and rework MTC filter code and documentation.
ielis Aug 20, 2024
2d80a46
Improve config docs.
ielis Aug 20, 2024
6ba9b22
Other minor docs improvements.
ielis Aug 20, 2024
2b745bf
Merge pull request #221 from monarch-initiative/ielis/issue194
ielis Aug 20, 2024
4155fbe
Remove `name` from `Phenotype`.
ielis Aug 20, 2024
f65516c
Remove usage of `Phenotype.name`.
ielis Aug 21, 2024
9f8acdb
Do not use deprecated `Phenotype.is_observed` property.
ielis Aug 21, 2024
6cc296e
Merge pull request #224 from monarch-initiative/ielis/issue222
ielis Aug 21, 2024
f0faefc
Update tutorial.
ielis Aug 21, 2024
a69002a
updating tutorial documentation
pnrobinson Aug 22, 2024
485c009
updating tutorial documentation
pnrobinson Aug 22, 2024
ca63266
Add a little more text to the tutorial.
ielis Aug 22, 2024
0547d15
Merge pull request #226 from monarch-initiative:revise_tutorial_doc
ielis Aug 22, 2024
0923c8f
Clarify MTC in tutorial.
ielis Aug 22, 2024
14468ab
Fixing (practically) all documentation lints.
ielis Aug 22, 2024
bb8564c
Include MTC filtering report in the tutorial.
ielis Aug 22, 2024
acb8e55
Update tests.
ielis Aug 22, 2024
b8d7b7b
Merge pull request #225 from monarch-initiative/update-tutorial
ielis Aug 22, 2024
50372a4
We will not run the notebooks anymore. The docs are the source of truth.
ielis Aug 22, 2024
da21a17
Revert back to the editable install.
ielis Aug 22, 2024
15e7179
Merge pull request #229 from monarch-initiative/do-not-run-the-notebo…
ielis Aug 22, 2024
5577dd1
Rebrand the project files.
ielis Aug 22, 2024
211c795
Rebrand code and tests.
ielis Aug 23, 2024
9b3d356
The final touch.
ielis Aug 23, 2024
ea029d1
Consider environment variable when creating the cache directory.
ielis Aug 23, 2024
ee15848
Keep track of the responses used in tests.
ielis Aug 23, 2024
8aab653
Fix the `input-data.rst` chapter.
ielis Aug 23, 2024
b3f51c1
Fixe the `predicates.rst` chapter.
ielis Aug 23, 2024
07fcd07
Skip testing `qc_results` for now.
ielis Aug 23, 2024
1c12f31
Merge pull request #230 from monarch-initiative/rebrand-to-gpsea
ielis Aug 23, 2024
3b8a9ae
Move `GenotypePolyPredicate` and `GenotypeBooleanPredicate` to `gpsea…
ielis Aug 25, 2024
b04f7ec
Update `Genotypes` pydoc.
ielis Aug 25, 2024
505f7e2
Break the `gpsea.analysis` into smaller modules.
ielis Aug 26, 2024
42f6c02
Fix `test_stats`.
ielis Aug 26, 2024
207a1c7
Add a comment.
ielis Aug 26, 2024
e6a4d17
Fix spurious test failures.
ielis Aug 26, 2024
1ce0cfb
Improve `user-guide/stats`.
ielis Aug 26, 2024
649f61d
Move category code into `pcats`.
ielis Aug 27, 2024
cf95937
Delete `GenotypeBooleanPredicate`.
ielis Aug 27, 2024
dce50c3
Create `gpsea.analysis.pscore.PhenotypeScorer` API.
ielis Aug 27, 2024
426dcb1
Implement phenotype score testing.
ielis Aug 27, 2024
c4060ea
Delete inheritance checker stubs.
ielis Aug 27, 2024
6dfebf4
Add removal markers.
ielis Aug 27, 2024
0ac0df9
Merge pull request #231 from monarch-initiative/form-statistical-tests
ielis Aug 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[*]
max_line_length = 120
trim_trailing_whitespace = true
insert_final_newline = true
15 changes: 15 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[flake8]
max-line-length = 120

# F405 - ignore error if class is imported in `*` import.
# W293 - blank line contains whitespace
# W503 - line break before binary operator
ignore = F405,W293,W503

exclude =
.git,
__pycache__,
docs/conf.py,
build,
dist,
venv,
8 changes: 4 additions & 4 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ jobs:
touch gh-pages/.nojekyll

function build_docs {
# The function will checkout a branch and build the Javadoc & documentation
# into provided documentation directory.
# The function will checkout a branch and build the API docs & documentation
# into provided directory.
BRANCH=${1}
DOCDIR=${2}

Expand All @@ -50,8 +50,8 @@ jobs:
printf "Building the %s documentation\n" ${DOCDIR}

cd docs
sphinx-apidoc --separate --module-first -d 2 -H "API reference" --follow-links -o apidocs ../src/genophenocorr
make html
sphinx-apidoc --separate --module-first -d 2 -H "API reference" --follow-links -o apidocs ../src/gpsea
make clean html

mv _build/html/* ../gh-pages/${DOCDIR}
cd ..
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/python_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@ on:
branches: [ main, develop ]

jobs:
build:
run-ci:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v4
- name: Initialize Python 3.11
- name: Initialize Python
uses: actions/[email protected]
with:
python-version: "3.11"
python-version: ${{ matrix.python-version }}
- name: Install package
run: |
python3 -m pip install .[test,docs]
python3 -m pip install --editable .[test]
- name: Run pytest tests
run: |
export MPLBACKEND=Agg
export GPSEA_CACHEDIR=.gpsea_ci_cachedir
pytest
- name: Run documentation tests
run: |
cd docs
sphinx-apidoc --separate --module-first -d 2 -H "API reference" -o apidocs ../src/genophenocorr
make doctest
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Cache with transcript/protein pickle files
.gpsea_cache

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down Expand Up @@ -29,7 +32,6 @@ share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
phenopackets
notebooks/KBG/Backup/
notebooks/KBG/phenopackets_extraHPO/
notebooks/KBG/pickledVariants/
Expand Down Expand Up @@ -131,6 +133,10 @@ venv.bak/
# PyCharm
.idea/

# VsCode
*.code-workspace
.vscode

# mkdocs documentation
/site

Expand Down
Binary file added .gpsea_ci_cachedir/protein_cache/NP_852259.1.pickle
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
8 changes: 4 additions & 4 deletions HOW_TO_RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# How to release

The document describes how to release `genophenocorr` to *PyPi*.
The document describes how to release `gpsea` to *PyPi*.

## Release checklist

Expand All @@ -9,7 +9,7 @@ The document describes how to release `genophenocorr` to *PyPi*.
- remove deprecated methods targeted for removal in this version. The `TODO` markers are labeled using
the target version (e.g. `TODO[v0.3.0]`)
- bump versions to a release:
- `src/genophenocorr/__init__.py`
- `src/gpsea/__init__.py`
- `docs/conf.py`
- ensure the CI passes
- deploy to PyPi (described below)
Expand Down Expand Up @@ -52,11 +52,11 @@ Store the token into `$HOME/.pypirc` file with `-rw-------` permissions. The fil
Now we're ready to publish packages!

### Deploy
Run the following to deploy `genophenocorr` to PyPi:
Run the following to deploy `gpsea` to PyPi:

```bash
# Ensure you're on the release branch
cd genophenocorr
cd gpsea

# Build the package
python3 -m build
Expand Down
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include src/gpsea/model/genome/GCF_*.tsv
include src/gpsea/view/templates/*.html
51 changes: 30 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,50 @@
[![Build status](https://github.com/monarch-initiative/genophenocorr/workflows/CI/badge.svg)](https://github.com/monarch-initiative/genophenocorr/actions/workflows/python_ci.yml)
![PyPi downloads](https://img.shields.io/pypi/dm/genophenocorr.svg?label=Pypi%20downloads)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/genophenocorr)
[![Build status](https://github.com/monarch-initiative/gpsea/workflows/CI/badge.svg)](https://github.com/monarch-initiative/gpsea/actions/workflows/python_ci.yml)
[![GitHub release](https://img.shields.io/github/release/monarch-initiative/gpsea.svg)](https://github.com/monarch-initiative/gpsea/releases)
![PyPi downloads](https://img.shields.io/pypi/dm/gpsea.svg?label=Pypi%20downloads)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/gpsea)

Genophenocorr is a Python library for genotype-phenotype association analysis.
GPSEA is a Python library for discovery of genotype-phenotype associations.

An example of simple genotype-phenotype association analysis

```python
# Load HPO
import hpotk
hpo = hpotk.load_minimal_ontology('http://purl.obolibrary.org/obo/hp.json')

# Load a cohort of phenopackets
from genophenocorr.data import get_toy_cohort
store = hpotk.configure_ontology_store()
hpo = store.load_minimal_hpo()

# Load a cohort of phenopackets
from gpsea.data import get_toy_cohort

cohort = get_toy_cohort()

# Analyze genotype-phenotype associations
from genophenocorr.analysis import CohortAnalysis
from genophenocorr.constants import VariantEffect
# Analyze genotype-phenotype associations
from gpsea.analysis import configure_cohort_analysis
from gpsea.analysis.predicate import PatientCategories

from gpsea.model import VariantEffect

cohort_analysis = configure_cohort_analysis(cohort, hpo)
frameshift = cohort_analysis.compare_by_variant_effect(VariantEffect.FRAMESHIFT_VARIANT, tx_id='NM_1234.5')

cohort_analysis = CohortAnalysis(cohort, 'NM_1234.5', hpo)
frameshift = cohort_analysis.compare_by_variant_type(VariantEffect.FRAMESHIFT_VARIANT)
print(frameshift)
frameshift.summarize(hpo, category=PatientCategories.YES)
```

prints a table with genotype-phenotype correlations:
provides a pandas data frame with genotype-phenotype correlations:

```text
With frameshift_variant Without frameshift_variant
Count Percent Count Percent p-value
HP:0001166 (Arachnodactyly) 4 30.77% 10 76.92% 0.04718
HP:0001250 (Seizure) 11 84.62% 9 69.23% 0.64472
HP:0001257 (Spasticity) 8 61.54% 9 69.23% 1.00000
FRAMESHIFT_VARIANT on NM_1234.5 No Yes
Count Percent Count Percent p value Corrected p value
Arachnodactyly [HP:0001166] 1/10 10% 13/16 81% 0.000781 0.020299
Abnormality of the musculature [HP:0003011] 6/6 100% 11/11 100% 1.000000 1.000000
Abnormal nervous system physiology [HP:0012638] 9/9 100% 15/15 100% 1.000000 1.000000
... ... ... ... ... ... ...
```

## Documentation

Check out the User guide and the API reference for more info:

- [Stable documentation](https://monarch-initiative.github.io/genophenocorr/stable/) (last release on `main` branch)
- [Latest documentation](https://monarch-initiative.github.io/genophenocorr/latest) (bleeding edge, latest commit on `development` branch)
- [Stable documentation](https://monarch-initiative.github.io/gpsea/stable/) (last release on `main` branch)
- [Latest documentation](https://monarch-initiative.github.io/gpsea/latest) (bleeding edge, latest commit on `develop` branch)
Loading
Loading