-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ test Snakemake workflow with more recent Python versions (#66)
* ✨ test Snakemake workflow with more recent Python versions * ✨ remove snakemake upper limit * 🐛 bump plac version related to : snakemake/snakemake#2276 * 📌 update actions, make artefacts unique - check if local windows error with pandas can be reproduced in action (corr) * 🎨 dump counts for histograms - add for simulated missing values - remove duplication - 🐛 do not omit last bin * 🐛 assure that some values are set to NA if all values are higher than the default threshold, the assertion on L17 is not met. Make sure some NAs (missing values) are set. * 🎨 write out corr and prepare for pandas 2.0 - see if this works also with pandas 1.5.3 * 🔧 test relaxing pandas restriction * 🐛 drop batches with one sample for training DAE and VAE - for creating the latent representation, now a new DataLoader is needed. * ✨ splitup large global environement - separate environment for PIMMS models and R based models - global environment should still work * 🐛 test if adding jupyter is sufficient to install further packages in R sesssion - only execute one job at a time in retry to see errors better * 🐛 fix sampling to make it compatible with python >=3.11 * ⬆️ remove pytorch upper dependency * ✅ Test workflow v2 on Alzheimer dataset - once this passes, add ald analysis to website (for a reasonable subset of models) - maybe only showcase PIMMS models with a handful of other models * 🐛 update path to execute run, speed-up - also remove two slowest models * 🎨 hide code in rendered notebooks of workflow, sort imports - hide code cells for generated report - isort imports * ✨ Functionality for plot source data (ALD study) - add some functionality required to collect source data for reporting on saved figures. * ✨ Run differential analysis workflow in CI on Alzheimer data - several adaptions to slightly different design between ALD and Alzheimer data * 🐛 specify folder_experiment from global space - ... and not as wildcard * 🎨 rename Snakefile_v2 to Snakefile_v2.smk - uncommon names should have a file ending specifying Snakefiles. * ✨ skript to build website (execution) - execution should work, but subfolders need their own index.rst - need to adapt script for updating main index.rst See if everything runs for now. * 🐛 do not exclude diff analysis folder in conf.py * 🎨🐛 make a strict hierarchy of headings per document - mapping titles in sphinx (cross-referencing) otherwise does not work * 🎨 collapse code in published notebooks - for better inspection of generated report for example * 🎨 annotate notebooks add some comments and streamline cells. * ✨ Test tutorial on colab * 🐛🎨 format and check briefly colab workflow on dev branch * 🎨 hide more inputs, downscale tutorial runner * 📝 Update README - 🐛 use larger image to test tutorial on colab * 📝 update READMEs and add some hints to config files * 📝🎨 save some adhoc script used during revisons, add and cleanup nb list * 🐛 go back old config indentation (and model configuration) - rerun in codespace for inspection * 🐛 fix issue having same model with 2 configurations - had to set model id ("model_key") as index * 📝✨ Allow users to download large HeLa protein groups dataset easily
- Loading branch information
Henry Webel
authored
May 31, 2024
1 parent
8706c61
commit 7377441
Showing
71 changed files
with
5,178 additions
and
2,182 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
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,55 @@ | ||
name: run workflow with conda envs | ||
on: | ||
push: | ||
branches: [main, dev] | ||
pull_request: | ||
branches: [main, dev] | ||
release: | ||
# schedule: | ||
# - cron: '0 2 * * 3,6' | ||
jobs: | ||
run-integration-tests-with-conda-install: | ||
runs-on: ${{ matrix.os }} | ||
defaults: | ||
run: | ||
shell: bash -el {0} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ | ||
"ubuntu-latest", | ||
"macos-13", | ||
# "windows-latest" # rrcovNA cannot be build from source on windows-server | ||
] | ||
python-version: ["3.10"] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up Miniconda | ||
# ! change action https://github.com/mamba-org/setup-micromamba | ||
uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
miniforge-variant: Mambaforge | ||
use-mamba: true | ||
channel-priority: disabled | ||
python-version: ${{ matrix.python-version }} | ||
environment-file: snakemake_env.yml | ||
activate-environment: snakemake | ||
auto-activate-base: true | ||
- name: inspect-conda-environment | ||
run: | | ||
conda info | ||
conda list | ||
- name: Dry-run workflow | ||
run: | | ||
cd project | ||
snakemake -p -c1 --configfile config/single_dev_dataset/example/config.yaml -n --use-conda | ||
- name: Run demo workflow (integration test) | ||
continue-on-error: true | ||
run: | | ||
cd project | ||
snakemake -p -c4 -k --configfile config/single_dev_dataset/example/config.yaml --use-conda | ||
- name: Run demo workflow again (in case of installation issues) | ||
run: | | ||
cd project | ||
snakemake -p -c1 -k --configfile config/single_dev_dataset/example/config.yaml --use-conda |
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,26 @@ | ||
name: Test that tutorial runs on latest colab image | ||
|
||
on: | ||
push: | ||
branches: [dev] | ||
pull_request: | ||
branches: [main, dev] | ||
schedule: | ||
- cron: '0 2 3 * *' | ||
|
||
jobs: | ||
test-tutorial-on-colab: | ||
name: Test tutorial on latest colab image | ||
runs-on: ubuntu-latest-4core # increase disk space | ||
# https://console.cloud.google.com/artifacts/docker/colab-images/europe/public/runtime | ||
container: | ||
image: europe-docker.pkg.dev/colab-images/public/runtime:latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install pimms-learn and papermill | ||
run: | | ||
python3 -m pip install pimms-learn papermill | ||
- name: Run tutorial | ||
run: | | ||
cd project | ||
papermill 04_1_train_pimms_models.ipynb 04_1_train_pimms_models_output.ipynb |
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
Oops, something went wrong.