-
Notifications
You must be signed in to change notification settings - Fork 0
release: drift probes, HPC container path, and README deduplication #325
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
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
420be1e
fix: real drift probes for gevir and insider, with review fixes (#319)
enriquea 9b19484
feat: real drift probes for the five remaining documentation-only plu…
enriquea 0bb8d94
docs(hpc): fix the container build path so it actually works on a clu…
enriquea c2b5d42
docs: fold the README's duplicated sections into the docs site (#324)
enriquea 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
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,58 @@ | ||
| Bootstrap: docker | ||
| From: python:3.10-slim-bullseye | ||
|
|
||
| # hvantk container image, built from the committed poetry.lock | ||
| # (hail 0.2.137 + pyspark 3.5.8). See docs_site/guide/hpc-migration.md section 3. | ||
| # | ||
| # BASE IMAGE: bullseye, not bookworm. Debian 12 (bookworm) has no openjdk-11 package | ||
| # at all -- apt reports it is replaced by openjdk-17-jre-headless, and Hail 0.2.x / | ||
| # Spark 3.5 support Java 8 or 11 ONLY. Debian 11 (bullseye) still ships | ||
| # openjdk-11-jdk-headless. Do not "modernise" this base without checking `java -version` | ||
| # inside the built image. | ||
| # | ||
| # EXTRAS: checked against [project.optional-dependencies] in pyproject.toml. This set | ||
| # covers every unique package across all extras. `expression` is required or | ||
| # `hvantk expression ...` has no scanpy. `ml` and `interactive` are deliberately | ||
| # omitted as redundant: scikit-learn arrives via ancestry/psroc, plotly via viz. | ||
|
|
||
| %files | ||
| pyproject.toml /opt/hvantk/pyproject.toml | ||
| poetry.lock /opt/hvantk/poetry.lock | ||
| hvantk /opt/hvantk/hvantk | ||
| README.md /opt/hvantk/README.md | ||
|
|
||
| %post | ||
| set -e | ||
| # --- Java 11 (Hail 0.2.137 / Spark 3.5 support Java 8 or 11 ONLY) + native libs --- | ||
| apt-get update && apt-get install -y --no-install-recommends \ | ||
| openjdk-11-jdk-headless \ | ||
| build-essential g++ \ | ||
| zlib1g-dev libbz2-dev liblzma-dev libcurl4-openssl-dev libdeflate-dev \ | ||
| libopenblas-dev liblapack-dev liblz4-dev libhdf5-dev git | ||
| # --- hvantk from the committed lock (reproducible; not unpinned pip install) --- | ||
| pip install --no-cache-dir "poetry>=2.0" | ||
| cd /opt/hvantk | ||
| poetry config virtualenvs.create false | ||
| poetry install --no-interaction --no-root \ | ||
| --extras "hgc ptm ancestry psroc constraint enrichex cohort viz duckdb expression" | ||
| poetry install --no-interaction --only-root | ||
| apt-get purge -y build-essential g++ git && apt-get autoremove -y | ||
| apt-get clean && rm -rf /var/lib/apt/lists/* | ||
| # fail the build here rather than shipping a broken image | ||
| java -version 2>&1 | head -1 | ||
| python -c "import hail; print('hail', hail.__version__)" | ||
|
|
||
| %environment | ||
| export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 | ||
| export PATH=$JAVA_HOME/bin:$PATH | ||
| export LC_ALL=C.UTF-8 LANG=C.UTF-8 | ||
| export NO_PROXY=localhost,127.0.0.1,0.0.0.0,::1 | ||
| export OMP_NUM_THREADS=1 OPENBLAS_NUM_THREADS=1 | ||
|
|
||
| %runscript | ||
| exec hvantk "$@" | ||
|
|
||
| %labels | ||
| org hvantk | ||
| hail 0.2.137 | ||
| pyspark 3.5.8 |
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,30 @@ | ||
| #!/bin/bash | ||
| # Run hvantk from the Apptainer/Singularity image with Spark scratch set up correctly. | ||
| # | ||
| # Without SPARK_LOCAL_DIRS on a writable NODE-LOCAL dir, Hail init inside the container | ||
| # fails with "DiskBlockManager: Failed to create any local dir" followed by a misleading | ||
| # "[Errno 111] Connection refused" from py4j. Always go through this wrapper. | ||
| # | ||
| # bash hvantk_run.sh utils check-install | ||
| # bash hvantk_run.sh reprocess clinvar:variants --raw-dir ... --output ... | ||
| # HVANTK_SIF=/path/to/hvantk.sif bash hvantk_run.sh --help | ||
| set -euo pipefail | ||
|
|
||
| HVANTK_SIF="${HVANTK_SIF:-${WORK:?WORK unset}/containers/hvantk.sif}" | ||
| [[ -f "$HVANTK_SIF" ]] || { echo "ERROR: image not found: $HVANTK_SIF" >&2; exit 1; } | ||
|
|
||
| # node-local scratch, never home/Lustre/GPFS (guide section 4.1) | ||
| SPARK_SCRATCH="${SLURM_TMPDIR:-/tmp/spark-$USER-${SLURM_JOB_ID:-$$}}" | ||
| mkdir -p "$SPARK_SCRATCH" | ||
| cleanup(){ rm -rf "$SPARK_SCRATCH"; } | ||
| trap cleanup EXIT | ||
|
|
||
| # Bind any extra data roots the command needs, e.g. HVANTK_BIND="$WORK:$WORK" | ||
| BINDS=(-B "$SPARK_SCRATCH:$SPARK_SCRATCH") | ||
| [[ -n "${HVANTK_BIND:-}" ]] && BINDS+=(-B "$HVANTK_BIND") | ||
|
|
||
| exec singularity exec "${BINDS[@]}" \ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 2. Apptainer-only clusters cannot run The wrapper advertises Apptainer/Singularity support but unconditionally invokes singularity exec. On clusters exposing only the documented apptainer executable, every wrapper command fails before starting hvantk. Agent Prompt
|
||
| --env SPARK_LOCAL_DIRS="$SPARK_SCRATCH" \ | ||
| --env TMPDIR="$SPARK_SCRATCH" \ | ||
| --env HAIL_TMPDIR="$SPARK_SCRATCH" \ | ||
| "$HVANTK_SIF" hvantk "$@" | ||
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. Scheduler scratch can be deleted
🐞 Bug☼ ReliabilityAgent Prompt
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools