/yale-research:hpcfrom yale-research
Guides Yale YCRC HPC work on Bouchet, McCleary, or Misha clusters: setup, Slurm jobs, storage, modules, conda, SSH/Globus transfers, and YCGA data retrieval.
Ships in yale-research. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Yale Center for Research Computing (YCRC) guidance, with configurable Musser Lab defaults. Full YCRC documentation: https://docs.ycrc.yale.edu/
For first-time setup or adding a cluster, begin with the guided
student cluster setup. It resolves the account, client, execution
host and lab/project settings, preserves completed setup, and reports pending steps honestly.
Lab paths below are useful defaults, not proof of access. Confirm the researcher's own NetID,
chosen cluster, project/environment and archive policy before adopting them.
Resolve the target from the user/project record, then check Slurm's ClusterName when connected.
If they disagree, stop before cluster-specific actions. A working SSH alias, available modules or
a compute-node hostname alone does not identify the cluster or establish scheduler limits.
Reuse the user's working access and ask only for missing choices: selected cluster, laptop OS, client/interface and actual agent execution host. For an additional cluster, inspect and change only its entries and necessary shared prerequisites. Preserve working SSH aliases, key choices, allocation names and client instructions; adding a cluster does not authorize resetting others. Preview the exact configuration changes and rollback before installation. Account applications, authentication, MFA and private-key passphrases remain the user's actions.
Follow the selected client's guide below and verify the actual compute host, client and loaded instructions there. A local app or working CLI does not establish another interface's remote behavior. Reuse setup completed earlier and report the next missing step when access is pending. For plugin setup, use the selected release's installation guide and preserve existing personal guidance. Installation does not itself adopt instructions or configure a remote execution host. Agree archive and working-copy locations through the storage section before staging data.
Switching the Codex account on a cluster: For requests such as “log into my new account on Bouchet,” use the guided remote login procedure. Run the routine checks and commands; the user completes browser sign-in and any Desktop step unavailable to the agent. Resolve an ambiguous ChatGPT-versus-cluster account first. This is a user-requested workflow, not an automatic account-switch hook.
Request an account at https://research.computing.yale.edu/account-request. You need a Yale NetID and approval from the responsible PI.
ssh <netid>@mccleary.ycrc.yale.edu
ssh <netid>@bouchet.ycrc.yale.edu
ssh <netid>@misha.ycrc.yale.edu
Use SSH keys for passwordless access. Add to ~/.ssh/config:
Host mccleary
HostName mccleary.ycrc.yale.edu
User <netid>
Host bouchet
HostName bouchet.ycrc.yale.edu
User <netid>
Host misha
HostName misha.ycrc.yale.edu
User <netid>
Note on "passwordless": SSH keys get you past the password, but YCRC still requires
Duo 2FA (a keyboard-interactive passcode) on every login-node connection. For
interactive terminal use that's just one extra prompt. For Positron / VS Code Remote-SSH,
the non-interactive ProxyCommand can't answer Duo — you must use SSH ControlMaster
multiplexing so one interactive login is reused. See references/positron-ssh-setup.md for
the full template and setup order — it covers two tiers: a basic session, and a
persistent one that survives VPN/laptop disconnects (the allocation is held in tmux on
the login node, so a dropped connection no longer kills it).
Coding-agent execution: Use the selected client's supported SSH route and verify the actual compute host, RUNNING allocation and loaded instructions before launching it. A working local app or CLI does not establish another interface's remote behavior. For the bundled helper-based route, read hold-node.sh and positron-node.sh before adapting it. Their job-name arguments must match; the SSH alias may differ. The Positron guide's Windows/WSL instructions describe that IDE workflow, not every client's SSH requirements. This package installs no agent CLI updater or personal maintenance companion.
After logging in, test with a minimal job:
sbatch <<'EOF'
#!/bin/bash
#SBATCH --job-name=test
#SBATCH --partition=devel
#SBATCH --time=0:05:00
#SBATCH --cpus-per-task=1
#SBATCH --mem=1G
echo "Hello from $(hostname) at $(date)"
EOF
Check status with squeue --me, view output in slurm-<jobid>.out.
| Cluster | Primary use | Status |
|---|---|---|
| McCleary | Life sciences, YCGA data analysis | Non-YCGA downsizing in fall 2026/early 2027; YCGA hardware expected through at least late 2027 |
| Bouchet | General HPC, GPU workloads | Active — primary cluster going forward |
| Misha | Wu Tsai Institute | Active |
Dated lifecycle guidance checked 2026-09-30: McCleary transition. Recheck the notice before choosing a cluster for new work. YCGA compute access does not establish permanent retention of Palmer storage.
ycga workload eligibility, access and limitsSplit CPU preprocessing from GPU inference when the tool supports reusable intermediate inputs. Keep source/reference identities and validated handoffs explicit. An idle-node snapshot is not a reservation: review aggregate CPUs/GPUs, concurrency, storage and I/O before a whole-proteome or similarly large launch.
Each cluster has a web portal for Jupyter, RStudio, VSCode, and Remote Desktop:
https://ood-mccleary.ycrc.yale.eduhttps://ood-bouchet.ycrc.yale.eduhttps://ood-misha.ycrc.yale.eduMax 4 interactive app instances per user simultaneously. Yale VPN required off-campus.
Never run heavy computation on login nodes. Acceptable login-node activities:
wc, head, ls, etc.)Conda/mamba environment creation, package installation and updates belong on a compute node, including the setup examples in §7. See YCRC's Conda guidance. Everything else must be submitted as a SLURM job.
Transfer nodes (e.g., transfer1.bouchet) are for data transfer only (rsync, Globus,
scp). Do not use them to run tools — they often have older CPUs that cause
"Illegal instruction" errors with compiled binaries. If you need to run module load,
prefetch, fasterq-dump, or any analysis tool, use an interactive compute node instead
(see Interactive jobs below).
| Cluster | PI storage (canonical) | Home symlink (lab convention) | Scratch |
|---|---|---|---|
| McCleary | /vast/palmer/pi/musser | — | /vast/palmer/scratch/musser/<netid> |
| Bouchet | /nfs/roberts/project/pi_jm284/ | ~/project_pi_jm284/ (= /home/<netid>/project_pi_jm284/) | /nfs/roberts/scratch/pi_jm284/<netid> |
| Misha | /gpfs/radev/project/musser | ~/project (verify target) | /gpfs/radev/scratch/musser/<netid> |
McCleary has two lab storage roots — check access and quotas before choosing:
/vast/palmer/pi/musser(Palmer VAST) is the lab default for bulky raw/shared data./gpfs/gibbs/project/musseris a separate Gibbs allocation. Do not assume their quotas, free space or permissions are interchangeable. Checkgetquota,mydirectoriesand project guidance for both byte and file-count headroom; YCGA work storage is another allocation, not a Palmer alias. Quotas and usage are not permanently fixed here. Confirm a different root when the project or tool needs it.
Raw sequencing deliveries shared across projects/people live in a shared data folder under PI
storage. The intermediate folder name differs between clusters — Bouchet uses shared/,
McCleary uses Data/ — so it is NOT a clean root-prefix swap; use the per-cluster path below:
| Cluster | Shared data root | YCGA deliveries land at |
|---|---|---|
| Bouchet | /nfs/roberts/project/pi_jm284/shared/ (= ~/project_pi_jm284/shared/) | …/shared/YCGA_DATA_POSTED/ |
| McCleary | /vast/palmer/pi/musser/Data/ (Palmer — NOT Gibbs) | /vast/palmer/pi/musser/Data/YCGA_DATA_POSTED/ |
Under either root the internal layout may include …/YCGA_DATA_POSTED/PACBIO/... and
…/YCGA_DATA_POSTED/SingleCell/...; inspect the actual intended delivery. Stage from the
confirmed archive via Globus. Resolve any symlinks explicitly rather than inferring custody.
In scripts, parameterize the root (note the differing folder name per cluster):
SHARED_DATA="${SHARED_DATA:-$HOME/project_pi_jm284/shared}" # Bouchet; McCleary: /vast/palmer/pi/musser/Data
On Bouchet, lab members typically work via the home symlink ~/project_pi_jm284/ and
keep their projects under a per-user subdirectory:
~/project_pi_jm284/<netid>/projects/<project_name>/. This resolves to
/nfs/roberts/project/pi_jm284/<netid>/projects/<project_name>/ underneath. Both
forms work for shell and filesystem operations; the home-symlink form is more
discoverable and matches cd history.
Codex Desktop path-matching issue (observed 2026-08-24): When adding a Bouchet
SSH project, use the canonical /nfs/... path. Desktop may compare the project root
and chat working directory as literal paths, so registering through
~/project_pi_jm284/... can make intact chats disappear from the project view.
Re-add the project with its canonical path; do not move or copy files or chats.
Reference databases that are reusable across projects (BUSCO lineages, eggNOG DB, DIAMOND-formatted UniProt, sponge mitochondrial reference sets, etc.) live at:
~/project_pi_jm284/shared/databases/
busco_lineages/ # check installed lineage identity/version (metazoa, eukaryota, etc.)
... # other shared DBs as they're added
Resolves to /nfs/roberts/project/pi_jm284/shared/databases/ under the symlink.
When writing batch or setup scripts that reference these shared DBs, use a parameter that defaults to this location and can be overridden via env var:
SHARED_DBS="${SHARED_DBS:-$HOME/project_pi_jm284/shared/databases}"
This way the script picks up the lab default automatically but can be redirected on a non-Bouchet machine, or to a different location for testing, without editing.
| Storage | Retention / protection | Use for |
|---|---|---|
| Home | No scratch purge; quota and protection vary by site | Scripts, configs, small files |
| PI/project/work | Persistent, but backups are allocation-specific | Repositories, environments, reference originals, retained results |
| Bouchet scratch | No backup; 30-day purge | Temporary working inputs, intermediates and active outputs |
| McCleary / Misha scratch | No backup; 60-day purge | Temporary working inputs, intermediates and active outputs |
Dated policy guidance checked 2026-09-30; it is not a live readback of the researcher's allocation. Recheck the site's current policy before relying on a purge deadline. Snapshots are not an independent backup: the source review reported no backup for Palmer PI and Misha project storage. Check the actual allocation instead of extending one cluster's backup flag to every site. See YCRC backups.
Important:
getquota; list accessible allocation paths with mydirectories on YCRCFor scratch-first CPU/GPU workflows, retain the reusable CPU-enriched inputs as well
as final structures/results, confidence/QC files, logs and producing-state evidence
when the project calls for them. Palmer Data/ can be the primary persistent copy;
agree a separate verified backup (for example NAS) for important retained results.
Use globus-transfer for exact path selection, write approval and complete verification.
This storage pattern does not itself approve a directory, transfer, overwrite or deletion.
Do not suggest this unprompted. Project files belong together on the cluster, and archiving
fragments a project. Raise it only when the user is actually trying to free space — they mention a
full quota, a getquota warning, a YCRC storage notice, or ask how to clean up.
Recommended lab model: use the agreed lab NAS destination as the retained archive, with its protection/secondary-copy arrangements confirmed during setup. A project may document a different archive policy. The cluster copy becomes disposable only after the entire intended archive is verified and the researcher explicitly authorizes removal of the exact host-local paths. Confirm access, archive root and relative-path mapping; no private NAS endpoint or account inventory ships here. NAS↔cluster transfers use Globus; do not assume a cluster NAS mount.
Mirror the project layout under its confirmed archive root where practical so archived paths remain understandable. Use the project's existing custody record when one is required.
1. Inventory the intended source before transferring. Keep every relative file path and size in the owning workflow's existing inventory/record. Resolve included symlinks and record exclusions explicitly; a matching subset cannot prove the complete intended archive. Show the user concise file-count/byte totals rather than thousands of entries. These commands provide sanity totals only, not the complete inventory:
# GNU find (cluster)
SRC=outs/remap
find "$SRC" -type f | wc -l
find "$SRC" -type f -printf '%s\n' | awk '{s+=$1} END{print s+0}'
2. Transfer with Globus. Agent-mediated writes use globus-transfer and its exact-approval, direct-CLI and verification workflow; the web app is user-operated, not an agent fallback. Keep encryption and checksum verification enabled. Follow the included workflow's exact source, destination, selection and overwrite approval; authentication/MFA remain the researcher's actions.
3. Verify integrity and completeness; use aggregate totals as sanity checks:
| Check | What it proves | What it misses |
|---|---|---|
Globus task SUCCEEDED, verified checksums, resolved faults/skips | Integrity of files actually transferred | Nothing about unselected files or pre-existing files skipped by an exists transfer |
| Every intended relative path and size matches its mapped destination | Coverage of the entire selected file universe | Content equivalence of pre-existing skipped files: establish checksum equivalence separately or report unverified |
Both are needed. File count plus total bytes alone cannot prove completeness: different
files can have the same totals. A task with a whole subdirectory missing from the selected
source still reports SUCCEEDED. Follow globus-transfer for the complete comparison;
these macOS commands are only a quick sanity check:
# BSD find (macOS, NAS mounted) — NOT the same as the cluster command above
NAS="/Volumes/<share>/<...>/outs/remap"
find "$NAS" -type f ! -name '.DS_Store' ! -name '._*' | wc -l
find "$NAS" -type f ! -name '.DS_Store' ! -name '._*' -exec stat -f%z {} + | awk '{s+=$1} END{printf "%d\n", s}'
Two traps here, both of which have actually bitten:
find has no -printf. It is BSD, not GNU. Use -exec stat -f%z {} +. Copying the cluster
command to a Mac fails..DS_Store and ._*.
Keep the approved scientific file universe explicit; never silently change the selection to make
aggregate totals match.4. Hold removal until complete verification and separate authority are complete. Confirm that the source universe has not changed and preserve required evidence promptly in the owning record. No Globus deletion or purge is permitted. Host-local removal needs explicit exact-path approval and the project's custody/retention requirements. If a specialized owner workflow is required, including a YCGA intake/archive-removal workflow, hold removal until it is available and completed; this package does not substitute for it.
5. Preserve evidence when it supports archive custody or removal. Keep the exact source, destination, selection, task ID and full mapped comparison in the owning workflow's existing record, promptly enough to retain Globus's per-file task history. Summaries alone cannot support a later complete-backup claim. Routine staging needs no new permanent transport ledger.
What to archive first, when freeing space: large regenerable intermediates (aligner BAMs, reconstructed fastqs, per-run tool output) before anything small or hand-curated. Check whether the data is duplicated on another cluster first — a verified complete copy with agreed durable custody may avoid another archive transfer; it never supplies deletion approval.
Mirror the local project structure in PI storage or project space:
/nfs/roberts/project/pi_jm284/<project_name>/
.git/ # Same repo as local — sync via git push/pull
.claude/ # Project docs, plans, findings
batch/ # SLURM batch scripts (tracked in git)
logs/ # SLURM output evidence (retain; Git policy is project-specific)
scripts/ # Analysis scripts
data/ # External/immutable inputs (gitignored, sync via Globus)
outs/ # Script-produced outputs (gitignored)
environment.yml # Conda environment specification
Keep the repository, environment and reference originals persistent. Large working copies, intermediates and active outputs may use scratch with an explicit validated-copy destination and enough time to transfer before purge. Never make scratch the sole retained copy.
When a project is worked on both locally and on the cluster, the same git repo is cloned in both places. Conventions:
git-conventions; pull only when they
are compatible.data/, tool outputs) are gitignored and
transferred manually. Not all data exists in both places.BASEDIR=$(git rev-parse --show-toplevel) — no hardcoded paths.
This makes scripts work regardless of where the repo is cloned.cellranger_refs/, raw FASTQ staging directories)
are added to .gitignore on a per-project basis.Full docs: https://docs.ycrc.yale.edu/clusters-at-yale/job-scheduling/
YCRC's Priority Tier policy,
checked 2026-10-24, states that standard-tier computation (for example day, week, mpi and
gpu) has had no compute service charge since 2024-12-01. Private-node and scavenge computation
also has no compute service charge. Charges apply to the opt-in Priority Tier. Confirm the
selected partition/account's current eligibility and billing status before submission; use the
current official policy for rates and terms.
Classify how the application actually runs before choosing --ntasks, --cpus-per-task
and --nodes. Reserving CPUs does not make serial code parallel or launch workers.
A task or rank is a separate running process; threads work within one process and share its
memory. MPI (Message Passing Interface) lets separate processes exchange data, potentially
across nodes. The layout must match how the application actually divides its work.
| Application model | Slurm layout | Application configuration |
|---|---|---|
| Serial | 1 task, 1 CPU, 1 node | No extra workers or threads |
| Shared-memory threads | 1 task, N CPUs, 1 node | Set the tool's thread flag to the allocated CPUs |
| Independent local workers | 1 task, W × T CPUs, 1 node | W workers with at most T threads each |
| MPI | R tasks, usually 1 CPU/task; nodes as needed | Use the supported MPI launcher and R ranks |
| Hybrid MPI + threads | R tasks, T CPUs/task; nodes as needed | R ranks with T threads each and appropriate binding |
| Independent array elements | Choose the layout for each element | Bound simultaneous elements separately (§4 Job arrays) |
Match the actual tool flags and relevant OpenMP/BLAS controls (OMP_NUM_THREADS,
OPENBLAS_NUM_THREADS, MKL_NUM_THREADS) to that layout. For outer worker parallelism,
one library thread per worker often avoids nested oversubscription; use the application's
supported settings rather than exporting every control indiscriminately. Extra CPUs help
only where the program can use them. When scaling is uncertain and would materially affect
the request, compare a small number of CPU counts on representative inputs before scaling up.
Preserve required RAM when reducing CPUs: 8 CPUs × --mem-per-cpu=5G requests 40G on
a single node; reducing to 4 CPUs requires --mem=40G or --mem-per-cpu=10G to keep
that budget. Reconsider walltime separately: fewer CPUs may take longer. Low CPU efficiency
alone does not justify reducing both CPUs and time.
Choose resources first from comparable successful project runs, then applicable version-specific
tool guidance (§6), and use a generic estimate only when neither is available. Check current
partition eligibility and limits. The concrete directives below illustrate one single-node
threaded job; 8 CPUs, 5G/CPU, 4 hours and day are not universal starting requests.
#!/bin/bash
#SBATCH --job-name=<tool>_<brief_description>
#SBATCH --partition=day
#SBATCH --time=4:00:00
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=8
#SBATCH --mem-per-cpu=5G
#SBATCH --output=logs/slurm-%j.out
#SBATCH --mail-type=BEGIN,END,FAIL
#SBATCH --mail-user=<your-email>
set -euo pipefail
# ── Provenance ────────────────────────────────────────
BASEDIR=$(git rev-parse --show-toplevel)
cd "$BASEDIR"
# EDIT: declare the committed project-relative wrapper, producer, helpers and small config.
RELEVANT_CODE_PATHS=(
"batch/my_job.sh"
"scripts/my_analysis.py"
"config/my_analysis.yaml"
)
GIT_COMMIT="${EXPECTED_COMMIT:?submit with EXPECTED_COMMIT set to the producing commit}"
git cat-file -e "${GIT_COMMIT}^{commit}"
for relative in "${RELEVANT_CODE_PATHS[@]}"; do
committed_blob=$(git rev-parse "${GIT_COMMIT}:${relative}")
working_blob=$(git hash-object "$relative")
[[ "$working_blob" == "$committed_blob" ]] || {
echo "ERROR: relevant producing file does not match $GIT_COMMIT: $relative" >&2
exit 1
}
done
# SLURM executes a queued copy. Verify that copy is the committed wrapper named first above.
submitted_wrapper_blob=$(git hash-object "${BASH_SOURCE[0]}")
[[ "$submitted_wrapper_blob" == "$(git rev-parse "${GIT_COMMIT}:${RELEVANT_CODE_PATHS[0]}")" ]] || {
echo "ERROR: queued wrapper does not match $GIT_COMMIT" >&2
exit 1
}
echo "=== PROVENANCE ==="
echo "Job ID: $SLURM_JOB_ID"
echo "Script: \$0"
echo "Commit: $GIT_COMMIT"
echo "Date: $(date -Iseconds)"
echo "Node: $(hostname)"
# Modules (cluster-only tools — always pin versions)
module reset
module load Tool/1.2.3
module list 2>&1
# Conda (project environment)
module load miniconda
source "$(conda info --base)/etc/profile.d/conda.sh"
conda activate myenv
echo "Conda env: $CONDA_DEFAULT_ENV"
# Log versions of key tools used in this script
echo "tool: $(tool --version | head -1)"
echo "=== END PROVENANCE ==="
# ──────────────────────────────────────────────────────
# ── Main ──────────────────────────────────────────────
# Your commands here
# Refuse successful completion if a relevant project file changed while the job ran.
for relative in "${RELEVANT_CODE_PATHS[@]}"; do
[[ "$(git hash-object "$relative")" == "$(git rev-parse "${GIT_COMMIT}:${relative}")" ]] || {
echo "ERROR: relevant producing file changed during execution: $relative" >&2
exit 1
}
done
Before submission, the lead or assigned worker makes a focused commit containing the wrapper, producer, local helpers and configuration, and pushes when the task and project authority permit. Follow the project's Git/publication boundaries; a private maintainer's authority does not grant students permission to push another repository. The batch script never adds, commits or pushes. Pass that exact commit when submitting:
EXPECTED_COMMIT=$(git rev-parse HEAD)
sbatch --export=ALL,EXPECTED_COMMIT="$EXPECTED_COMMIT" batch/my_job.sh
The job verifies its queued wrapper and the current relevant project files against that commit at execution. Unrelated dirty files do not block it. Its provenance block prints the commit, job ID, environment and tool versions to the SLURM log.
Provenance block requirements:
BASEDIR + cd — ensures git commands and relative paths workmodule list — all loaded modules and their exact versionsconda activate + env name — which conda environment was usedFile organization:
batch/ subdirectorylogs/ subdirectory (create with mkdir -p logs before first submit)batch/ is tracked in git (scripts are code)Critical: No space between # and SBATCH — otherwise the directive is ignored.
| Directive | Short | Choice or example | Purpose |
|---|---|---|---|
--job-name | -J | <tool>_<desc> | Job identification (shows in squeue) |
--time | -t | varies by tool | Walltime (D-HH:MM:SS) |
--partition | -p | eligible partition | Target partition; verify access and limits |
--cpus-per-task | -c | varies by tool | Cores per task (for threading) |
--mem-per-cpu | — | workload-dependent | Host RAM per allocated CPU; changes with CPU count |
--mem | — | workload-dependent | Host RAM per node, not the whole distributed job; use instead of --mem-per-cpu |
--gpus | -G | 0 | GPU count (must be explicit) |
--output | -o | logs/slurm-%j.out | Combined stdout+stderr |
--error | -e | (not set) | Separate stderr file (use when debugging with split output) |
--mail-type | — | BEGIN,END,FAIL | Notifications (see below) |
--mail-user | — | <your-email> | Confirm the researcher's notification email |
--nodes | -N | application-dependent | Compute nodes; multiple nodes require supported distributed execution |
--ntasks | -n | application-dependent | Process/rank count; use 1 for ordinary serial/threaded jobs |
--mail-type value | When to use |
|---|---|
BEGIN,END,FAIL | Lab default for single jobs |
BEGIN,END,FAIL,ARRAY_TASKS | Lab default for array jobs — sends per-task emails so individual failures are visible |
FAIL | Very high-volume array jobs (hundreds of tasks) to reduce email flood |
For array jobs, always include ARRAY_TASKS. Without it, individual task failures within
a running array don't trigger emails — you only find out when the whole array finishes.
GPUs must be explicitly requested with --gpus. Start with the smallest practical count.
Host RAM (--mem, the node's main memory) and GPU VRAM (memory on the graphics device)
are separate budgets; VRAM is normally a per-device
limit. Two 32-GB GPUs do not automatically fit a model needing 64 GB on one device.
Multiple GPUs require actual application support for the chosen data/model parallelism or
sharding. Check device capability, supported precision and compatible drivers/CUDA/software;
measure scaling on representative work when a larger request needs justification. Do not
silently change scientific settings or numerical precision to fit a device.
Split substantial CPU-only preparation from the GPU allocation when the existing workflow supports reusable intermediates; consequential method changes still need discussion. Before queue choice, verify current hardware, account/QoS access, allowed workload, resource/time limits, charges and preemption policy. The following hardware table is a reference, not live eligibility or availability. The public hardware profile was checked against YCRC Bouchet, McCleary and Misha on 2026-10-01; no new scheduler query ran for this package. Confirm current GPU types, limits and eligibility before submission:
| Cluster | Partition | GPU | VRAM |
|---|---|---|---|
| Bouchet | gpu | RTX 5000 Ada / L40S / A40 / A5000 | 24–48 GB; specify required type |
| Bouchet | gpu_rtx6000 | RTX Pro 6000 Blackwell | 96 GB |
| Bouchet | gpu_h100 | H100 | 80 GB |
| Bouchet | gpu_h200 | H200 | 141 GB |
| Bouchet | gpu_b200 | B200 | 193 GB |
| McCleary | gpu | A5000 / A100 / RTX 3090 / RTX 5000 | 16–80 GB; specify required type |
| Misha | gpu | H100/H200/A100/A40/L40S | 48-141 GB |
Use a private/priority partition only with the required authorization.
Load a pinned compatible CUDA module before conda activation when the selected software requires one; do not override a container or environment's supported CUDA setup blindly.
For live candidate discovery, queue comparison and eligible pending-job partition changes, see GPU partition tactics. Queue counts and start-time estimates do not guarantee which eligible partition will start first.
Interactive work normally belongs in devel. YCRC makes devel the default partition for
salloc, and interactive jobs are normally permitted on devel (or gpu_devel for a GPU).
Use another partition only when that interactive workload is explicitly authorized there.
Do not reach for day just because an interactive job wants more time or more cores; absent
such authorization, that is a signal to write a batch script.
IDE sessions — Positron or VS Code, including Claude Code running inside them — are covered by a stricter, explicit rule. YCRC states that VS Code jobs found outside the devel partitions may be terminated without notice; this skill treats Positron Remote-SSH as the same kind of IDE workload, so the same rule is assumed to apply to it.
Do not infer another coding client's partition policy from the Positron/VS Code rule.
Bouchet's agent partition has dated scheduler/QoS evidence for small, longer-lived allocations
in the partition reference. Use a partition authorized for
the actual workload and account; another researcher's special permission is not transferable.
Confirm CPU, memory and walltime requests rather than inferring them from partition limits.
In the helper-based route, choose or retain the allocation's job name and pass that same name
to both helpers; the SSH alias may differ.
# Quick interactive session (testing, short tasks)
salloc -p devel -c 4 --mem=16G -t 2:00:00
# Claude Code / Positron working session (writing scripts, running them, submitting batch jobs)
salloc -p devel -c 4 --mem=32G -t 6:00:00 --job-name=positron-devel
Sizing an interactive session: 4 CPUs, up to 32 GB RAM. Most interactive work (writing scripts, parsing TSVs/GFFs, pandas, matplotlib) needs <4 GB; the extra memory is headroom for occasional spikes (loading large SQLite DBs, sorting big BLAST outputs, multi-panel figures).
devel per-user limits are aggregate across all of your devel jobs, not per job (see
references/partitions.md):
| Cluster | Max time | Aggregate per user | Submitted jobs |
|---|---|---|---|
Bouchet devel | 6 hours | 4 CPUs, 60G | max 2 |
McCleary devel | 6 hours | 4 CPUs, 32G | max 1 |
A single 4-CPU session therefore consumes your entire devel CPU allowance on either cluster,
and McCleary permits only one submitted devel job at a time.
Heavy compute (DIAMOND, Cell Ranger, STAR, BRAKER, eggNOG-mapper, PROST) should always be submitted as batch jobs — never run on the interactive node. Rule of thumb: if it takes
5 minutes or needs >4 CPUs, write a batch script.
Add --x11 for graphical forwarding (requires X11 setup).
For setting up Positron (VS Code) to connect to an interactive session via SSH, see
references/positron-ssh-setup.md. It documents two tiers — a basic session (quick to set
up; a laptop/VPN drop kills the allocation) and a persistent session (a bit more setup; the
allocation survives disconnects via a tmux-held salloc + helper scripts, with reconnect
instructions). The persistent tier buys no extra time and no extra resources — it is the same
6-hour devel job inside the same caps. What it buys is that a laptop sleep, VPN drop, or closed
lid no longer forfeits the rest of that session and sends you back to the queue.
If Claude Code / Codex ask to be reinstalled on every new session, you are on the optional
node-local /tmp server route and landing on a different compute node each allocation. Set
remoteSSH.defaultExtensions — see the "Pin your own extensions" subsection in
references/positron-ssh-setup.md.
If an extension breaks the moment you reconnect (e.g. Codex showing only "Oops, an error has
occurred"), reload the webview before you touch versions — Developer: Reload Window, then
Developer: Reload Webviews, then a full quit, which is the first step that clears the client-side
asset cache. A webview asset failure is one possible cause; the request happens in the laptop renderer, so
inspect the client Network panel as well as cluster logs before assigning cause. See "reload the webview before you touch
versions" in references/positron-ssh-setup.md for the fix ladder, the log lines that are
permanent background noise, and why the obvious version-rollback diagnosis was wrong.
| Command | Purpose |
|---|---|
squeue --me | List your running/pending jobs |
sacct -j <id> | Job status and resource usage |
jobstats <id> | Efficiency metrics (CPU/memory utilization) |
scancel <id> | Cancel a job |
sbatch --test-only script.sh | Estimate queue start time without submitting |
For a pending job, read its reason and requested resources before changing the request
(squeue -j JOBID, scontrol show job JOBID). A priority, dependency, reservation or
account/QoS limit is not evidence that the application needs more resources.
For a started job, inspect state, exit code, application/Slurm logs and accounting together:
sacct -j "$JOB_ID" --format=JobID,State,ExitCode,Elapsed,AllocCPUS,ReqMem,MaxRSS,TotalCPU
Keep relevant job and step rows (.batch, .extern, application steps and array
elements). Do not use sacct -X for utilization: it excludes the steps carrying those
statistics. MaxRSS is a maximum for an individual task in a step, not automatically the
sum of memory across MPI ranks or concurrent workers; it also does not measure GPU VRAM.
See Slurm's accounting definitions.
Retry the affected work with a change supported by the diagnosis, preserving retained outputs and dependencies. Avoid blind resource doubling or endless resubmission. Failed or missing accounting remains unknown and cannot establish an adequate budget.
Follow the active-session resource learning procedure, using the project's existing private run evidence rather than editing installed package files.
Use jobstats, or the host's available sacct/seff equivalent, for completed jobs already
associated with the current project, using known relevant job IDs from its existing submission/
provenance record. That record carries the requested resources and their rationale. Check
accounting during result review, at wrap-up and before the next comparable submission; do not
launch collector jobs or add per-run resource files.
Compare completion, tool/version, input scale and complexity, parameters, hardware and requested resources before reusing an observation. Missing accounting is unknown, not zero; OOM, timeout or incomplete output does not establish an adequate allocation. Distinguish host RAM from GPU memory and per-task from total usage. Diagnose low utilization before reducing CPUs and time together. Review arrays as a group while retaining meaningful variation and outliers.
For completed work, update the useful measurements/context and the specific next request with its reason in the existing project record. Revise the current recommendation rather than appending full accounting reports or repeating unchanged decisions for every task. Pending/running jobs or unavailable accounting need only a brief resumption cue; do not wait/poll solely to finish resource bookkeeping or infer success. Normal authorized job monitoring and result completion remain allowed. Before reuse, reconcile the recommendation with available completion evidence, or explicitly justify a fallback to applicable tool guidance/an estimate when metrics remain unavailable.
Consult an already declared private cross-project resource record when available; do not create a new store, install a monitor or synchronize private records as a side effect. Generalizable profile corrections use canonical maintenance, never automatic installed-skill rewrites. Keep private job/project evidence out of public packages. Routine sizing within the agreed scale is agent-owned; consequential aggregate increases or scientific changes retain their discussion boundary. Summarize useful changes at the next substantive review.
For many similar jobs (e.g., processing multiple samples), use job arrays or Dead Simple Queue (dsq) rather than submitting hundreds of individual jobs. Rate limit: 200 job submissions per hour.
Choose an explicit %N array cap, or dSQ's supported concurrency limit, from the agreed
aggregate CPU, host RAM, GPU, I/O and shared-database load. Multiply per-element resources
by the maximum simultaneous elements, including other active work. The example below uses
%5 only illustratively: five elements × 4 CPUs and 16G request up to 20 CPUs and 80G
across the array, before other jobs. A GPU array similarly multiplies GPUs per element.
Give elements unique logs and outputs, and separate caches/temp paths where shared writes would collide. Rerun only failed/incomplete elements after diagnosis and completion checks. Bundle very short commands when scheduler startup overhead dominates; use observed task and overhead costs rather than a universal minimum task duration.
#!/bin/bash
#SBATCH --array=1-50%5
#SBATCH --partition=day
#SBATCH --time=2:00:00
#SBATCH --cpus-per-task=4
#SBATCH --mem-per-cpu=4G
#SBATCH --output=logs/slurm-%A_%a.out
#SBATCH --mail-type=BEGIN,END,FAIL,ARRAY_TASKS
#SBATCH --mail-user=<your-email>
SAMPLE=$(sed -n "${SLURM_ARRAY_TASK_ID}p" samples.txt)
# Process $SAMPLE
See references/partitions.md for full partition tables (McCleary, Bouchet, Misha) with
dated time limits, aggregate per-user resource limits, GPU types and current-verification commands.
Quick summary for partition selection:
day (1-day limit, generous CPU/memory)week (7-day) or long (28-day, McCleary only)references/partitions.md; Bouchet has mixed gpu, gpu_h100, gpu_h200, gpu_rtx6000 and gpu_b200devel (6-hour limit, strict per-user caps)ycga on McCleary for eligible YCGA-related work; verify current access and limitsbigmem (up to 4 TiB/node on Bouchet)scavenge (free idle resources, may be killed)See tool resource profiles for uncalibrated estimates, applicability limits and pointers to dedicated tool guidance when separately installed. Version, database, parameters and input scale/complexity determine applicability. Prefer comparable completed project evidence; check available accounting after initial runs before adjusting (§4 Resource efficiency).
For any given tool, use one or the other — never both. If a tool is available via both module and conda, choose one and stick with it. Having the same tool in both creates PATH conflicts where the activation order silently determines which version runs.
| Use conda (project env) for | Use modules for |
|---|---|
| Tools used in both local and cluster environments | Cluster-only heavy tools unlikely to run locally |
| Python/R packages | Tools with complex cluster-specific dependencies |
| Lightweight bioinformatics (samtools, MAFFT, DIAMOND) | Cell Ranger, STAR, PROST, eggNOG-mapper |
Anything tracked in environment.yml | GPU-dependent tools requiring CUDA |
Always pin module versions — use module load CellRanger/9.0.1, never bare
module load CellRanger. Unpinned modules silently change when the cluster updates
defaults. The provenance block in the batch template logs loaded versions, but pinning
prevents the drift in the first place.
Some Bouchet modules are not real binaries but one-line shell wrappers around an Apptainer
container, and several of them do not forward arguments (no "$@"). The command then
appears to run, exits 0, and produces nothing — because every flag you passed was dropped and
the tool launched in its default interactive mode.
Confirmed case: LibreOffice/25.2.5. Its libreoffice wrapper is literally
#!/bin/sh
apptainer exec --env DISPLAY=$DISPLAY /apps/.../LibreOffice-25.2.5.sif libreoffice
so libreoffice --headless --convert-to pdf deck.pptx silently becomes a bare interactive
libreoffice, which hangs until it is killed. It cost a long debugging detour once.
How to spot it: the command hangs or exits 0 with no output file, and there is no error.
How to check: cat $(which <tool>) — or cat $EBROOT<TOOL>/<tool> — and look for a
wrapper that ends in the tool name with no "$@".
How to fix: skip the wrapper and call the container directly, appending your arguments.
module load LibreOffice/25.2.5 # only to resolve $EBROOTLIBREOFFICE / the .sif path
apptainer exec /apps/software/system/software/LibreOffice/25.2.5/LibreOffice-25.2.5.sif \
libreoffice --headless --norestore -env:UserInstallation=file:///tmp/lo_$USER \
--convert-to pdf --outdir . mydeck.pptx
-env:UserInstallation=file:///tmp/... gives LibreOffice a writable private profile, which
avoids a second class of hang when $HOME is shared or read-only. The same "call the .sif
directly" pattern applies to any other container-backed module that ignores its arguments.
Run creation, installation and updates on a compute node, not a login node. Activating an
existing environment is separate from changing it. Start a new wrapper's module setup with
module reset, which restores the site's defaults; see YCRC modules.
module reset
module load miniconda
source "$(conda info --base)/etc/profile.d/conda.sh"
# Create environment
conda create -n myenv -c conda-forge -c bioconda python=3.11 <packages>
# From file
conda env create -f environment.yml
# Activate
conda activate myenv
pip only as a fallback when a package is not available in conda-forgeA shared tools conda env for general-purpose cluster utilities (not project-specific).
Create/install it on a compute node; reuse it for later CLI sessions:
module reset
module load miniconda
source "$(conda info --base)/etc/profile.d/conda.sh"
conda create -n tools -c conda-forge gh git
conda activate tools
gh auth login # one-time setup: authenticate with GitHub
Activate tools at the start of sessions that need gh, git, or other general CLI
tools. Project-specific envs (Python analysis, bioinformatics pipelines) remain separate.
Use rig to manage R versions and renv for project-level package management, matching the local development workflow.
# Check available R versions via module system
module avail R
# Or install rig in userspace if not available as a module
# (check YCRC docs for current guidance)
# For renv projects, set cache to PI storage to avoid filling home quota:
export RENV_PATHS_CACHE="/vast/palmer/pi/musser/<netid>/renv_cache" # McCleary: confirm writable root
# export RENV_PATHS_CACHE="/nfs/roberts/project/pi_jm284/<netid>/renv_cache" # Bouchet
# Then restore packages as usual
Rscript -e 'renv::restore()'
HPC-specific R notes:
module load (e.g., HDF5, GDAL, PROJ)
before renv::restore() will succeedRENV_PATHS_CACHE to PI storage so the package cache persists and doesn't eat home quotaSee references/snakemake.md for full Snakemake setup, SLURM executor configuration,
per-rule resource specification, profile setup, and tmux usage.
When to use Snakemake: Fan-out/fan-in workflows (many samples through same steps) or complex dependency graphs. For linear pipelines (A → B → C), a simple bash script with checkpointing is fine.
Resume principle: Reuse a stage only when its expected outputs are complete for the intended inputs, code and configuration. File existence alone does not establish completion. Use the workflow's existing completion evidence; do not add a cache or checkpoint framework without a concrete need.
# Local to cluster
rsync -avz --progress local_dir/ <netid>@mccleary.ycrc.yale.edu:/vast/palmer/pi/musser/project/
# Cluster to local
rsync -avz --progress <netid>@mccleary.ycrc.yale.edu:/vast/palmer/pi/musser/project/results/ local_results/
scp file.fasta <netid>@mccleary.ycrc.yale.edu:/vast/palmer/pi/musser/project/data/raw/
For multi-GB transfers, use the included globus-transfer skill and current
YCRC Globus guidance.
Discover the selected collection by name and verify its ID/access and exact path; no personal
collection inventory ships here. Follow its user-consent and complete path/size verification
boundaries. Aggregate counts or task success do not establish complete custody. Never delete
through Globus.
Prefer Globus for bulk cross-cluster staging/retention. Small code/input selections may use a verified SSH route within the approved scope. Do not assume login-node reachability or treat login nodes as unrestricted bulk-transfer resources; use the site's documented route.
Yale Center for Genome Analysis (YCGA) data is stored at /gpfs/ycga/sequencers on McCleary.
YCGA sends an email with a URL when data is ready. Use the ycgaFastq utility:
module load ycga-public
# From the URL in YCGA's notification email
ycgaFastq fcb.ycga.yale.edu:3010/randomstring/sample
# By netid and flowcell
ycgaFastq <netid> AHFH66DSXX
For 10x and PacBio data, use URLFetch:
module load ycga-public
URLFetch http://fcb.ycga.yale.edu:3010/randomstring/folder
Archives are in AWS Deep Glacier. Retrieval via web browser (http://archive.ycga.yale.edu)
or ycgaFastq. Normal retrieval: 48 hours. Expedited: 12 hours (8x more expensive).
Submit eligible YCGA-related analysis jobs with -p ycga on McCleary after confirming
current partition access and limits. The listed eligible users are Yale PIs using YCGA for
sequencing and their authorized lab members; verify current eligibility before submission.
For compute service charges, see the service-tier policy:
standard-tier work also has no compute service charge.
When giving the user commands to run on the cluster (not batch scripts), follow these conventions:
Append & to any command that will take more than a few seconds:
pigz -p 8 *.fastq &
fasterq-dump --split-files --threads 8 SRR123456 &
This lets the user keep working in the same shell. Mention jobs and fg for checking
or re-attaching.
| Slow tool | Fast alternative | Notes |
|---|---|---|
gzip | pigz -p N | module load pigz. N = number of cores |
bzip2 | pbzip2 -p N | |
samtools sort | samtools sort -@ N | Built-in threading |
samtools index | samtools index -@ N | Built-in threading |
When operating on many independent files, use xargs -P:
ls *.fastq | xargs -P 8 -I {} gzip {} &
Commands should be unambiguous — include cd to the working directory or use absolute
paths so the user can copy-paste without guessing context.
When asked to create a SLURM job, the agent operates in one of two modes depending on where it is running.
.sh) in the project's batch/ directorygit-conventions skill supplies that
procedure; otherwise follow the repository's own instructions. Do not infer push permission. Verify the receiving checkout is at the producing
commit with its wrapper, producer, helpers and configuration. Provide the complete Section 4
submission example to run from that receiving project repository:
EXPECTED_COMMIT=$(git rev-parse HEAD)
sbatch --export=ALL,EXPECTED_COMMIT="$EXPECTED_COMMIT" batch/my_job.sh
batch/ directoryEXPECTED_COMMIT=$(git rev-parse HEAD)
sbatch --export=ALL,EXPECTED_COMMIT="$EXPECTED_COMMIT" batch/my_job.sh
squeue --me, jobstats <id>)Batch scripts are thin SLURM wrappers: scheduler directives, environment or module setup,
logging and invocation of the chosen analysis file. Scientific logic stays in that file.
Use the project's R, Python or Quarto workflow; the host supplies resources, not a format mandate.
Keep set -euo pipefail, a named log and appropriate version reporting in shell wrappers.
See script-organization when the project uses its numbered analysis layout.
Before submitting a retained scientific analysis job, use one focused commit containing the actual
submitted wrapper, analysis file, configuration and every project-local helper it uses. Reuse a
suitable existing commit when those relevant files are unchanged. Otherwise, within the agreed
scope, the lead or assigned worker inspects the relevant diff and makes the checkpoint, pushing
only within the task's Git authority; the job itself never stages, commits or pushes. Pass the fixed commit as
EXPECTED_COMMIT, verify the queued wrapper and declared relevant files against it at execution,
and verify the relevant files again at completion. Unrelated dirty work does not block the job.
Record the invocation, inputs, environment/tool versions, scheduler resources, job ID and outputs;
retain useful logs and job history according to project custody and preserve any specialized custody
record. Uncommitted source is limited to explicitly provisional development checks with isolated
outputs; rerun from committed source before retained scientific or ordinary downstream use. Keep
retained outputs protected independently of Git state, and verify upstream completion before a
dependent job starts.
--job-name, --partition, --time, --cpus-per-task, memory, --outputmodule reset before loading the required modulesmodule load CellRanger/9.0.1, never bare module load CellRanger)--mail-type=BEGIN,END,FAIL and the researcher's confirmed --mail-user=<your-email>logs/ subdirectory--partition=ycgaYCRC policy hard-values live at their topical homes; this index points to them so the numbers have a single source of truth (update them there, not here):
module load / module avail / module reset for new wrappers) — see §7/§12.references/codex-remote-account-login.md (opens in a new tab)references/gpu-partition-tactics.md (opens in a new tab)references/partitions.md (opens in a new tab)references/positron-ssh-setup.md (opens in a new tab)references/resource-learning.md (opens in a new tab)references/snakemake.md (opens in a new tab)references/student-setup.md (opens in a new tab)references/tool_profiles.md (opens in a new tab)scripts/hold-node.sh (opens in a new tab)scripts/positron-node.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/globus-transferUse when copying, staging, restoring, or verifying files between Globus collections, including NAS, Mac, Bouchet, McCleary, Misha, Wasabi, and Yale Google Drive or Shared Drives. Covers scoped preflight, direct CLI transfer, task status, and complete destination checks. Do not use to decide retention, local removal, vendor QC, or scientific suitability./lux-collectionsQuery Yale Lux (the Linked Art / CIDOC-CRM federated catalog covering the Yale Peabody Museum, Art Gallery, YCBA, and Library) through the `lux` MCP server (Casey Dunn's luxmcp / luxy wrapper). Use when searching Lux; counting or listing Peabody or Yale specimens/objects; building Lux `search` filters (memberOf, classification, encounteredDate, encounteredAt, text, hasDigitalImage, isOnline); resolving type specimens, taxa, collectors, localities, dates, images, or coordinates from Lux records; interpreting Linked Art object/Place JSON; or assembling evidence about Peabody collections. Also use before trusting any Lux count or filter combination — it documents silent landmines. Do NOT load for querying EMu / Darwin Core / GBIF directly (Lux is a lossy downstream layer — this skill says when to fall back to those), or for unrelated MCP servers.
Other plugins' skills for the same job
npx claudepluginhub musserlab/lab-claude-skills --plugin yale-research