-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #233 from monarch-initiative/release-0.2.0
Make release `0.2.0`
- Loading branch information
Showing
2,120 changed files
with
114,063 additions
and
3,705,366 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+744 Bytes
.gpsea_ci_cachedir/variant_cache/12_114355755_114355756_TG_T.pickle
Binary file not shown.
Binary file added
BIN
+744 Bytes
.gpsea_ci_cachedir/variant_cache/12_114355784_114355785_CA_C.pickle
Binary file not shown.
Binary file added
BIN
+740 Bytes
.gpsea_ci_cachedir/variant_cache/12_114356064_114356065_TA_T.pickle
Binary file not shown.
Binary file added
BIN
+738 Bytes
.gpsea_ci_cachedir/variant_cache/12_114366207_114366208_GC_G.pickle
Binary file not shown.
Binary file added
BIN
+736 Bytes
.gpsea_ci_cachedir/variant_cache/12_114366241_114366242_CT_C.pickle
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+739 Bytes
.gpsea_ci_cachedir/variant_cache/12_114366348_114366349_CT_C.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 added
BIN
+809 Bytes
.gpsea_ci_cachedir/variant_cache/12_114385550_114385550_A_AATTATTCTCAG.pickle
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+723 Bytes
.gpsea_ci_cachedir/variant_cache/12_114394743_114394746_TGTG_T.pickle
Binary file not shown.
Binary file added
BIN
+732 Bytes
.gpsea_ci_cachedir/variant_cache/12_114394762_114394763_CA_C.pickle
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+729 Bytes
.gpsea_ci_cachedir/variant_cache/12_114398578_114398579_CA_C.pickle
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+732 Bytes
.gpsea_ci_cachedir/variant_cache/12_114398626_114398627_CG_C.pickle
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+731 Bytes
.gpsea_ci_cachedir/variant_cache/12_114398656_114398656_C_CG.pickle
Binary file not shown.
Binary file added
BIN
+731 Bytes
.gpsea_ci_cachedir/variant_cache/12_114398666_114398667_TG_T.pickle
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+731 Bytes
.gpsea_ci_cachedir/variant_cache/12_114398682_114398682_C_CG.pickle
Binary file not shown.
Binary file added
BIN
+731 Bytes
.gpsea_ci_cachedir/variant_cache/12_114398708_114398709_GC_G.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 added
BIN
+736 Bytes
.gpsea_ci_cachedir/variant_cache/12_114399625_114399629_ACATC_A.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 added
BIN
+728 Bytes
.gpsea_ci_cachedir/variant_cache/12_114401873_114401874_TA_T.pickle
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+718 Bytes
.gpsea_ci_cachedir/variant_cache/12_114403792_114403792_C_CG.pickle
Binary file not shown.
Binary file added
BIN
+699 Bytes
.gpsea_ci_cachedir/variant_cache/12_114403798_114403798_G_GC.pickle
Binary file not shown.
Binary file added
BIN
+699 Bytes
.gpsea_ci_cachedir/variant_cache/12_114403798_114403799_GC_G.pickle
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+784 Bytes
.gpsea_ci_cachedir/variant_cache/1_8358216_8358216_T_TGGTGGA.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 added
BIN
+776 Bytes
.gpsea_ci_cachedir/variant_cache/1_8361236_8361236_C_CCCTGGAGGAGCTGAGGAGGGAG.pickle
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Oops, something went wrong.