-
Notifications
You must be signed in to change notification settings - Fork 11
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 #607 from TheJacksonLaboratory/release_v2.0.0-RC2
Release v2.0.0-RC2
- Loading branch information
Showing
119 changed files
with
4,004 additions
and
1,703 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,71 @@ | ||
# Simple workflow for deploying static content to GitHub Pages | ||
name: Deploy the latest documentation to GitHub pages | ||
|
||
on: | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
# Runs on pushes targeting the main branch | ||
push: | ||
branches: [ develop ] | ||
|
||
jobs: | ||
build-docs: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo | ||
ref: develop | ||
|
||
- name: Set up Python 3 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install Python dependencies | ||
run: | | ||
pip install sphinx | ||
pip install sphinx-rtd-theme | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'adopt' | ||
|
||
- name: Build LIRICAL | ||
run: ./mvnw -Prelease -DskipTests package # We test elsewhere | ||
|
||
- name: Build documentation | ||
run: | | ||
## Init the target folder. | ||
# We will put all site documentation there. | ||
DOCS_VERSION=latest | ||
mkdir -p gh-pages/${DOCS_VERSION} | ||
touch gh-pages/.nojekyll | ||
## Copy Javadoc | ||
# Copy aggregated Javadoc into `apidocs` folder. | ||
# The aggregated docs are built by Maven in `package` phase. | ||
APIDOCS=$(pwd)/gh-pages/${DOCS_VERSION}/apidocs | ||
printf "Copying Javadocs from %s to %s\n" $(pwd)/target/site/apidocs ${APIDOCS} | ||
cp -r target/site/apidocs ${APIDOCS} | ||
## Build the docs | ||
# Generate the HTML pages and move the generated content into the target folder. | ||
printf "Building the ${DOCS_VERSION} documentation\n" | ||
cd docs/ | ||
make html | ||
cd .. | ||
mv docs/_build/html/* gh-pages/${DOCS_VERSION}/ | ||
- name: Deploy documentation | ||
if: ${{ github.event_name == 'push' }} | ||
uses: JamesIves/github-pages-deploy-action@v4.4.1 | ||
with: | ||
folder: gh-pages | ||
force: false |
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,71 @@ | ||
# Simple workflow for deploying static content to GitHub Pages | ||
name: Deploy the stable documentation to GitHub pages | ||
|
||
on: | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
# Runs on pushes targeting the main branch | ||
push: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build-docs: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo | ||
ref: master | ||
|
||
- name: Set up Python 3 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install Python dependencies | ||
run: | | ||
pip install sphinx | ||
pip install sphinx-rtd-theme | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'adopt' | ||
|
||
- name: Build LIRICAL | ||
run: ./mvnw -Prelease -DskipTests package # We test elsewhere | ||
|
||
- name: Build documentation | ||
run: | | ||
## Init the target folder. | ||
# We will put all site documentation there. | ||
DOCS_VERSION=stable | ||
mkdir -p gh-pages/${DOCS_VERSION} | ||
touch gh-pages/.nojekyll | ||
## Copy Javadoc | ||
# Copy aggregated Javadoc into `apidocs` folder. | ||
# The aggregated docs are built by Maven in `package` phase. | ||
APIDOCS=$(pwd)/gh-pages/${DOCS_VERSION}/apidocs | ||
printf "Copying Javadocs from %s to %s\n" $(pwd)/target/site/apidocs ${APIDOCS} | ||
cp -r target/site/apidocs ${APIDOCS} | ||
## Build the docs | ||
# Generate the HTML pages and move the generated content into the target folder. | ||
printf "Building the ${DOCS_VERSION} documentation\n" | ||
cd docs/ | ||
make html | ||
cd .. | ||
mv docs/_build/html/* gh-pages/${DOCS_VERSION}/ | ||
- name: Deploy documentation | ||
if: ${{ github.event_name == 'push' }} | ||
uses: JamesIves/github-pages-deploy-action@v4.4.1 | ||
with: | ||
folder: gh-pages | ||
force: false |
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 |
---|---|---|
@@ -1,23 +1,29 @@ | ||
# LIRICAL | ||
|
||
[![Documentation Status](https://readthedocs.org/projects/lirical/badge/?version=master)](https://lirical.readthedocs.io/en/latest/?badge=master) | ||
[![GitHub release](https://img.shields.io/github/release/TheJacksonLaboratory/LIRICAL.svg)](https://github.com/TheJacksonLaboratory/LIRICAL/releases) | ||
[![Java CI with Maven](https://github.com/TheJacksonLaboratory/LIRICAL/workflows/Java%20CI%20with%20Maven/badge.svg)](https://github.com/TheJacksonLaboratory/LIRICAL/actions/workflows/maven.yml) | ||
|
||
|
||
## LIkelihood Ratio Interpretation of Clinical AbnormaLities | ||
|
||
LIRICAL is designed to provide clincially interpretable computational analysis of phenotypic | ||
abnormalities (encoded using the [Human Phenotype Ontology](http://www.human-phenotyope-ontology.org)), | ||
# LIRICAL | ||
LIRICAL (LIkelihood Ratio Interpretation of Clinical AbnormaLities) | ||
is designed to provide clinically interpretable computational analysis of phenotypic | ||
abnormalities (encoded using the [Human Phenotype Ontology](http://www.human-phenotype-ontology.org)), | ||
optionally combined with an analysis of variants and genotypes if a VCF file is provided with the | ||
results of diagnostic gene panel, exome, or genome sequencing. | ||
|
||
A manuscript describing LIRICAL is available at the | ||
[American Journal of Human Genetics](https://pubmed.ncbi.nlm.nih.gov/32755546/). | ||
|
||
|
||
Please consult the Read the docs site for [Detailed documentation](https://lirical.readthedocs.io/en/master/). | ||
|
||
Most users should download the latest `LIRICAL.jar` file from | ||
## Availability | ||
Most users should download the latest distribution ZIP file from | ||
the [Releases page](https://github.com/TheJacksonLaboratory/LIRICAL/releases). | ||
|
||
|
||
## Documentation | ||
Please consult the documentation for installation instructions and a tutorial: | ||
- [reference documentation](https://thejacksonlaboratory.github.io/LIRICAL/stable) | ||
- [edge release documentation](https://thejacksonlaboratory.github.io/LIRICAL/latest) | ||
|
||
|
||
## API docs | ||
Developers can access Javadoc at: | ||
- [reference](https://thejacksonlaboratory.github.io/LIRICAL/stable/apidocs) | ||
- [edge release](https://thejacksonlaboratory.github.io/LIRICAL/latest/apidocs) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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,83 @@ | ||
.. _rstlirical-json: | ||
|
||
LIRICAL JSON Output | ||
=================== | ||
|
||
Lirical outputs results in a JSON format if ``--output-format json`` option is included in the command-line:: | ||
|
||
lirical phenopacket -p LDS2.v2.json \ | ||
--output-format json | ||
|
||
The JSON document contains three sections, the sections are described in the following text along with examples. | ||
|
||
Examples of each section are provided below: | ||
|
||
Analysis data | ||
^^^^^^^^^^^^^ | ||
|
||
``analysisData`` contains the analysis inputs (e.g. sample ID, age, present/excluded phenotypic features): | ||
|
||
.. code-block:: json | ||
"analysisData" : { | ||
"sampleId" : "EXAMPLE", | ||
"age" : "P1Y2M3D", | ||
"sex" : "MALE", | ||
"observedPhenotypicFeatures" : [ "HP:0000001", "HP:0000002" ], | ||
"excludedPhenotypicFeatures" : [ "HP:0000003" ] | ||
} | ||
Analysis metadata | ||
^^^^^^^^^^^^^^^^^ | ||
|
||
``analysisMetadata`` includes user-provided options, analysis date, resource versions, etc. | ||
|
||
.. code-block:: json | ||
"analysisMetadata" : { | ||
"liricalVersion" : "liricalVersion", | ||
"hpoVersion" : "hpoVersion", | ||
"transcriptDatabase" : "transcriptDatabase", | ||
"analysisDate" : "2022-12-29T14:02:58.653929682", | ||
"sampleName" : "sampleId", | ||
"isGlobalAnalysisMode" : true | ||
} | ||
Analysis results | ||
^^^^^^^^^^^^^^^^ | ||
|
||
``analysisResults`` has a list of `TestResult`\ s for each of the tested diseases. | ||
|
||
Here we show an example for a made-up disease `OMIM:1234567`. | ||
|
||
.. code-block:: json | ||
"analysisResults" : [ { | ||
"diseaseId" : "OMIM:1234567", | ||
"pretestProbability" : 1.2, | ||
"observedPhenotypicFeatures" : [ { | ||
"query" : "HP:0000001", | ||
"match" : "HP:0000002", | ||
"matchType" : "EXACT_MATCH", | ||
"lr" : 1.34, | ||
"explanation" : "EXPLANATION" | ||
} ], | ||
"excludedPhenotypicFeatures" : [ { | ||
"query" : "HP:0000001", | ||
"match" : "HP:0000003", | ||
"matchType" : "EXCLUDED_QUERY_TERM_NOT_PRESENT_IN_DISEASE", | ||
"lr" : 1.23, | ||
"explanation" : "EXCLUDED_EXPLANATION" | ||
} ], | ||
"genotypeLR" : { | ||
"geneId" : { | ||
"id" : "NCBIGene:1234", | ||
"symbol" : "GENE_SYMBOL" | ||
}, | ||
"lr" : 1.23, | ||
"explanation" : "GENE_EXPLANATION" | ||
}, | ||
"compositeLR" : 2.027286, | ||
"posttestProbability" : 1.0895759082370065 | ||
} ] | ||
Oops, something went wrong.