-
Notifications
You must be signed in to change notification settings - Fork 10
feat: scaffolding, caching, EGFR #65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
tristan-f-r
wants to merge
15
commits into
main
Choose a base branch
from
egfr-and-infrastructure
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
b49439e
chore: drop other datasets
tristan-f-r 2018a13
Merge branch 'main' into egfr-and-infrastructure
tristan-f-r 136e5ff
chore: re-include
tristan-f-r 472468d
chore: drop tools
tristan-f-r a5de971
chore: re-add tools
tristan-f-r 8ddccb4
docs: cache
tristan-f-r 90cc277
style: fmt
tristan-f-r eb23b8f
docs: on caching
tristan-f-r 4b524bc
docs: suggestions from review
tristan-f-r 69fda05
docs: more comments, refactor: mv function out of Snakefile
tristan-f-r 15c7ecb
docs(datasets): mention responsenet and egfr
tristan-f-r 729a51b
docs(datasets): add old synthetic data branch
tristan-f-r 922be5d
chore: mv to scores instead of dmmm
tristan-f-r f3d6d41
docs: drop expiration docs
tristan-f-r a802fde
docs: clarify snakemake importing
tristan-f-r File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 @@ | ||
| FROM mcr.microsoft.com/devcontainers/anaconda:1-3 |
This file contains hidden or 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,23 @@ | ||
| // Small devcontainer which loads anaconda. All postinstallation steps have to be done manually. | ||
| // This comes with snakemake and docker-in-docker. | ||
|
|
||
| // For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
| // README at: https://github.com/devcontainers/templates/tree/main/src/anaconda | ||
| { | ||
| "name": "Anaconda (Python 3)", | ||
| "build": { | ||
| "context": "..", | ||
| "dockerfile": "Dockerfile" | ||
| }, | ||
| "features": { | ||
| "ghcr.io/devcontainers/features/docker-in-docker:2": {}, | ||
| // For yamlfmt | ||
| "ghcr.io/devcontainers/features/go:1": {}, | ||
| // For web display | ||
| "ghcr.io/devcontainers/features/node:1": {}, | ||
| // For scripting | ||
| "ghcr.io/va-h/devcontainers-features/uv:1": {}, | ||
| // For paxtools | ||
| "ghcr.io/devcontainers/features/java:1": {} | ||
| } | ||
| } |
This file contains hidden or 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,111 @@ | ||
| name: Test SPRAS | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: [main] | ||
| push: | ||
| branches: [main] | ||
|
|
||
| # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
| permissions: | ||
| contents: read | ||
| pages: write | ||
| id-token: write | ||
|
|
||
| jobs: | ||
| pre-commit: | ||
| name: Run pre-commit checks | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| - name: Setup Python | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: '3.11' | ||
| - name: Run pre-commit checks | ||
| uses: pre-commit/action@v3.0.0 | ||
| checks: | ||
| name: Run workflow | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| submodules: true | ||
| - name: Install uv for scripting | ||
| uses: astral-sh/setup-uv@v6.1.0 | ||
| with: | ||
| version: "0.7.13" | ||
| - name: Setup conda | ||
| uses: conda-incubator/setup-miniconda@v2 | ||
| with: | ||
| activate-environment: spras | ||
| environment-file: spras/environment.yml | ||
| auto-activate-base: false | ||
| miniconda-version: 'latest' | ||
| # Install spras in the environment using pip | ||
| - name: Install spras in conda env | ||
| shell: bash --login {0} | ||
| run: pip install ./spras | ||
| # Log conda environment contents | ||
| - name: Log conda environment | ||
| shell: bash --login {0} | ||
| run: conda list | ||
| - name: Fetch Artifact Cache | ||
| id: fetch-cache | ||
| uses: actions/cache/restore@v4 | ||
| with: | ||
| path: cache/artifacts | ||
| key: cache-artifacts | ||
| - name: Process raw data through Snakemake | ||
| run: sh run_snakemake.sh | ||
| - name: Cache Artifact Cache | ||
| id: cache-cache | ||
| uses: actions/cache/save@v4 | ||
| with: | ||
| path: cache/artifacts | ||
| key: cache-artifacts | ||
| - name: Run Snakemake workflow for score-based datasets | ||
| shell: bash --login {0} | ||
| run: snakemake --cores 4 --configfile configs/scores.yaml --show-failed-logs -s spras/Snakefile | ||
| - name: Setup PNPM | ||
| uses: pnpm/action-setup@v4 | ||
| with: | ||
| version: 10 | ||
| - name: Install web dependencies | ||
| working-directory: ./web | ||
| run: pnpm install | ||
| - name: Run web builder | ||
| working-directory: ./web | ||
| run: pnpm build | ||
| - name: Upload built website distribution folder | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: build | ||
| path: web/dist | ||
| pages: | ||
| needs: checks | ||
| if: github.event_name != 'pull_request' | ||
| runs-on: ubuntu-latest | ||
| environment: | ||
| name: github-pages | ||
| url: ${{ steps.deployment.outputs.page_url }} | ||
| concurrency: | ||
| group: 'pages' | ||
| cancel-in-progress: true | ||
| steps: | ||
| - name: Download Artifacts | ||
| uses: actions/download-artifact@v4 | ||
| with: | ||
| name: build | ||
| path: dist | ||
| - name: Setup Pages | ||
| uses: actions/configure-pages@v2 | ||
| - name: Upload artifact | ||
| uses: actions/upload-pages-artifact@v3 | ||
| with: | ||
| path: dist | ||
| - name: Deploy to GitHub Pages | ||
| id: deployment | ||
| uses: actions/deploy-pages@v4 |
This file contains hidden or 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,169 @@ | ||
| # Byte-compiled / optimized / DLL files | ||
| __pycache__/ | ||
| *.py[cod] | ||
| *$py.class | ||
|
|
||
| # C extensions | ||
| *.so | ||
|
|
||
| # Distribution / packaging | ||
| .Python | ||
| build/ | ||
| develop-eggs/ | ||
| dist/ | ||
| downloads/ | ||
| eggs/ | ||
| .eggs/ | ||
| parts/ | ||
| sdist/ | ||
| var/ | ||
| wheels/ | ||
| share/python-wheels/ | ||
| *.egg-info/ | ||
| .installed.cfg | ||
| *.egg | ||
| MANIFEST | ||
|
|
||
| # PyInstaller | ||
| # Usually these files are written by a python script from a template | ||
| # before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
| *.manifest | ||
| *.spec | ||
|
|
||
| # Installer logs | ||
| pip-log.txt | ||
| pip-delete-this-directory.txt | ||
|
|
||
| # Unit test / coverage reports | ||
| htmlcov/ | ||
| .tox/ | ||
| .nox/ | ||
| .coverage | ||
| .coverage.* | ||
| .cache | ||
| nosetests.xml | ||
| coverage.xml | ||
| *.cover | ||
| *.py,cover | ||
| .hypothesis/ | ||
| .pytest_cache/ | ||
| cover/ | ||
|
|
||
| # Translations | ||
| *.mo | ||
| *.pot | ||
|
|
||
| # Django stuff: | ||
| *.log | ||
| local_settings.py | ||
| db.sqlite3 | ||
| db.sqlite3-journal | ||
|
|
||
| # Flask stuff: | ||
| instance/ | ||
| .webassets-cache | ||
|
|
||
| # Scrapy stuff: | ||
| .scrapy | ||
|
|
||
| # Sphinx documentation | ||
| docs/_build/ | ||
|
|
||
| # PyBuilder | ||
| .pybuilder/ | ||
| target/ | ||
|
|
||
| # Jupyter Notebook | ||
| .ipynb_checkpoints | ||
|
|
||
| # IPython | ||
| profile_default/ | ||
| ipython_config.py | ||
|
|
||
| # pyenv | ||
| # For a library or package, you might want to ignore these files since the code is | ||
| # intended to run in multiple environments; otherwise, check them in: | ||
| # .python-version | ||
|
|
||
| # pipenv | ||
| # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. | ||
| # However, in case of collaboration, if having platform-specific dependencies or dependencies | ||
| # having no cross-platform support, pipenv may install dependencies that don't work, or not | ||
| # install all needed dependencies. | ||
| #Pipfile.lock | ||
|
|
||
| # poetry | ||
| # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. | ||
| # This is especially recommended for binary packages to ensure reproducibility, and is more | ||
| # commonly ignored for libraries. | ||
| # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control | ||
| #poetry.lock | ||
|
|
||
| # pdm | ||
| # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control. | ||
| #pdm.lock | ||
| # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it | ||
| # in version control. | ||
| # https://pdm.fming.dev/latest/usage/project/#working-with-version-control | ||
| .pdm.toml | ||
| .pdm-python | ||
| .pdm-build/ | ||
|
|
||
| # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm | ||
| __pypackages__/ | ||
|
|
||
| # Celery stuff | ||
| celerybeat-schedule | ||
| celerybeat.pid | ||
|
|
||
| # SageMath parsed files | ||
| *.sage.py | ||
|
|
||
| # Environments | ||
| .env | ||
| .venv | ||
| env/ | ||
| venv/ | ||
| ENV/ | ||
| env.bak/ | ||
| venv.bak/ | ||
|
|
||
| # Spyder project settings | ||
| .spyderproject | ||
| .spyproject | ||
|
|
||
| # Rope project settings | ||
| .ropeproject | ||
|
|
||
| # mkdocs documentation | ||
| /site | ||
|
|
||
| # mypy | ||
| .mypy_cache/ | ||
| .dmypy.json | ||
| dmypy.json | ||
|
|
||
| # Pyre type checker | ||
| .pyre/ | ||
|
|
||
| # pytype static type analyzer | ||
| .pytype/ | ||
|
|
||
| # Cython debug symbols | ||
| cython_debug/ | ||
|
|
||
| # PyCharm | ||
| .idea/ | ||
|
|
||
| # Snakemake | ||
| .snakemake | ||
|
|
||
| # Output | ||
| /output | ||
| /web/output | ||
|
|
||
| # pnpm | ||
| .pnpm-store | ||
|
|
||
| # mac | ||
| .DS_Store |
This file contains hidden or 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,3 @@ | ||
| [submodule "spras"] | ||
| path = spras | ||
| url = https://github.com/Reed-CompBio/spras |
This file contains hidden or 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,33 @@ | ||
| # See https://pre-commit.com for more information | ||
| # See https://pre-commit.com/hooks.html for more hooks | ||
| default_language_version: | ||
| # Match this to the version specified in environment.yml | ||
| python: python3.11 | ||
| repos: | ||
| - repo: https://github.com/pre-commit/pre-commit-hooks | ||
| rev: v4.4.0 # Use the ref you want to point at | ||
| hooks: | ||
| # Attempts to load all yaml files to verify syntax. | ||
| - id: check-yaml | ||
| # Attempts to load all TOML files to verify syntax. | ||
| - id: check-toml | ||
| # Trims trailing whitespace. | ||
| - id: trailing-whitespace | ||
| # Preserves Markdown hard linebreaks. | ||
| args: [--markdown-linebreak-ext=md] | ||
| # Do not trim whitespace from all files, input files may need trailing whitespace for empty values in columns. | ||
| types_or: [markdown, python, yaml] | ||
| # Skip this Markdown file, which has an example of an input text file within it. | ||
| exclude: input/README.md | ||
| - repo: https://github.com/astral-sh/ruff-pre-commit | ||
| rev: 'v0.15.4' | ||
| hooks: | ||
| - id: ruff | ||
| - repo: https://github.com/google/yamlfmt | ||
| rev: v0.17.0 | ||
| hooks: | ||
| - id: yamlfmt | ||
| - repo: https://github.com/crate-ci/typos | ||
| rev: v1.34.0 | ||
| hooks: | ||
| - id: typos |
This file contains hidden or 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 @@ | ||
| 3.13 |
tristan-f-r marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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 @@ | ||
| { | ||
| "recommendations": ["astro-build.astro-vscode"], | ||
| "unwantedRecommendations": [] | ||
| } |
This file contains hidden or 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,5 @@ | ||
| { | ||
| "editor.rulers": [ | ||
| 150 | ||
| ] | ||
| } |
This file contains hidden or 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 @@ | ||
| formatter: | ||
| retain_line_breaks_single: true |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.