Skip to content

Commit

Permalink
use papermill to print the notebook as it goes, update the download &…
Browse files Browse the repository at this point in the history
… unzip commands for repeat runs
  • Loading branch information
kevinschaper committed Nov 12, 2024
1 parent dc26a0b commit edfde62
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Run Jupyter Notebook
run: |
source .venv/bin/activate
jupyter nbconvert --to notebook --execute omim_vs_orphanet_comparison.ipynb --output omim_vs_orphanet_comparison_output.ipynb --stdout
papermill omim_vs_orphanet_comparison.ipynb output/omim_vs_orphanet_comparison_output.ipynb --log-output
- name: Get Date for Release Tag
run: echo "DATE=$(date +%Y-%m-%d)" >> $GITHUB_ENV
Expand Down
10 changes: 5 additions & 5 deletions omim_vs_orphanet_comparison.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@
}
],
"source": [
"!wget https://data.monarchinitiative.org/monarch-kg/latest/monarch-kg.duckdb.gz\n",
"!gunzip monarch-kg.duckdb.gz\n",
"!wget https://data.monarchinitiative.org/monarch-kg/latest/phenio.db.gz # consider hpo.db.gz for speed\n",
"!gunzip phenio.db.gz\n",
"!mkdir output"
"!wget -q -nc https://data.monarchinitiative.org/monarch-kg/latest/monarch-kg.duckdb.gz\n",
"!gunzip -k monarch-kg.duckdb.gz # Use -k to keep the original .gz file\n",
"!wget -q -nc https://data.monarchinitiative.org/monarch-kg/latest/phenio.db.gz # consider hpo.db.gz for speed\n",
"!gunzip -k phenio.db.gz # Use -k to keep the original .gz file\n",
"!mkdir -p output # Use -p to avoid error if the directory already exists"
]
},
{
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ duckdb
pandas
fastparquet
semsimian
papermill

0 comments on commit edfde62

Please sign in to comment.