Skip to content

Commit

Permalink
Merge pull request #6 from monarch-initiative/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
pnrobinson authored Apr 25, 2024
2 parents 6d63c34 + a06801e commit a1dc18c
Show file tree
Hide file tree
Showing 65 changed files with 2,426 additions and 303 deletions.
40 changes: 15 additions & 25 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,25 @@
name: Sphinx Documentation
name: mkdocs-generation
on:
push:
branches: [ main ]

branches:
- main
permissions:
contents: write
jobs:
build-docs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@main
with:
ref: ${{ github.ref }}
- uses: actions/checkout@v3

- name: Set up Python 3.
uses: actions/setup-python@v3
- uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: 3.x

- name: install
run: pip3 install sphinx sphinx-rtd-theme click ddt pandas setuptools
- uses: actions/cache@v2
with:
key: ${{ github.ref }}
path: .cache

- name: Build documentation.
run: |
cd docs/
sphinx-build -b html . _build
touch _build/.nojekyll
- run: python3 -m pip install .[docs]

- name: Deploy documentation.
if: ${{ github.event_name == 'push' }}
uses: JamesIves/[email protected]
with:
branch: gh-pages
clean: true
folder: docs/_build
- run: mkdocs gh-deploy --force
20 changes: 0 additions & 20 deletions docs/Makefile

This file was deleted.

119 changes: 0 additions & 119 deletions docs/conf.py

This file was deleted.

Empty file added docs/english.md
Empty file.
72 changes: 72 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# Phenopacket2Prompt


phenopacket2promot is a Java 17 application that creates prompts intended for use with GPT starting from
GA4GH phenopackets.





## Installation


Most users should download the prebuilt executable file from the
[Releases](https://github.com/monarch-initiative/phenopacket2prompt/releases) page of the GutHub repository.

It is also possible to build the application from source using standard Maven and Java tools.

```shell title="building the app"
git clone https://github.com/monarch-initiative/phenopacket2prompt.git
cd phenopacket2prompt
maven package
java -jar target/phenopacket2prompt.jar
```

## Setup


First download the latest copy of the [Human Phenotype Ontology](https://hpo.jax.org/app/) hp.json file. This file is
used for text mining of clinical signs and symptoms. For more information about the HPO, see
[Koehler et al. (2021)](https://pubmed.ncbi.nlm.nih.gov/33264411/). Adjust the path to the `phenopacket2prompt.jar`
file as necessary.



```shell title="download"
java -jar phenopacket2prompt.jar download
```




## Running phenopacket2prompt


Assuming the hp.json file has been downloaded as described above and all of the case report text files
are available in a directory at ``some/path/gptdocs``, run


```shell title="running the app"
java -jar phenopacket2prompt.jar gpt -g some/path/gptdocs
```



This command will create a new directory called ``gptOut`` (this can be adjusted using the -o option).
It will contain four subdirectories

1. phenopackets. GA4GH phenopackets derived from each case report
2. phenopacket_based_queries. Feature-based query prompts for GPT-4 based on the information in the phenopackets
3. txt_without_discussion. Original query based on the original case report with text as presented by the first discussant up to but not including text contributed by the second discussant or any following text
4. txt_with_differential. Text that starts with the presentation by the first discussant up to and including the differential. This was used to check parsing but was not used in our analysis.





### Feedback


The best place to leave feedback, ask questions, and report bugs is the [phenopacket2prompt Issue Tracker](https://github.com/monarch-initiative/phenopacket2prompt/issues).

90 changes: 0 additions & 90 deletions docs/index.rst

This file was deleted.

Loading

0 comments on commit a1dc18c

Please sign in to comment.