Operator toolkit for nf-core/pacsomatic matched tumor-normal

Operator toolkit for nf-core/pacsomatic matched tumor-normal workflows from BAM inputs. Use this skill when the user needs to validate run inputs, generate pacsomatic-compliant samplesheets, prepare reproducible Nextflow launch…
--- name: pacsomatic description: Operator toolkit for nf-core/pacsomatic matched tumor-normal workflows from BAM inputs. Use this skill when the user needs to validate run inputs, generate pacsomatic-compliant samplesheets, prepare reproducible Nextflow launch artifacts, run locally or submit to schedulers (LSF/Slurm/PBS/SGE), and triage execution failures. Triggers on requests to run pacsomatic, prepare launch commands/scripts, perform dry-run checks, or troubleshoot pipeline startup and scheduler submission errors. license: MIT metadata: version: "1.2" skill-author: Beifang Niu contributors: Haidong, Wenchao upstream-pipeline: https://github.com/nf-core/pacsomatic --- # pacsomatic ## Overview This skill provides a reproducible execution workflow for nf-core/pacsomatic, centered on a single helper entrypoint that handles validation, artifact generation, and optional execution. Primary entrypoint:
Overview
This skill provides a reproducible execution workflow for nf-core/pacsomatic, centered on a single helper entrypoint that handles validation, artifact generation, and optional execution.
Manual install (npx, ZIP)
npx skills add K-Dense-AI/scientific-agent-skills --skill pacsomatic -g -a claude-codemkdir -p ~/.claude/skills && curl -sL https://codeload.github.com/K-Dense-AI/scientific-agent-skills/tar.gz/49c6e97775ea \
| tar -xz -C ~/.claude/skills --strip-components=2 scientific-agent-skills-49c6e97775ea/skills/pacsomaticNew-Item -ItemType Directory -Force "$HOME\.claude\skills" | Out-Null; Invoke-WebRequest "https://m.agentalley.io/zip/1ed7e50b51e1cbf677d1/pacsomatic.zip" -OutFile "$env:TEMP\pacsomatic.zip"; Expand-Archive "$env:TEMP\pacsomatic.zip" -DestinationPath "$HOME\.claude\skills" -ForceConnects with Agent Alley MCP · agentalley.io/mcp
Files included
SKILL.md4.9 KBLICENSE1.0 KBconfig.yaml1.0 KBreferences/3 files · 11.3 KBscripts/1 file · 28.5 KB
Read the files here
K-Dense-AI/
Show the full text151 lines
pacsomatic
Overview
This skill provides a reproducible execution workflow for nf-core/pacsomatic, centered on a single helper entrypoint that handles validation, artifact generation, and optional execution.
Primary entrypoint:
scripts/run_pacsomatic.py
The helper script:
- validates required identifiers, files, reference mode, and runtime prerequisites
- writes a pacsomatic-compatible samplesheet (
patient,sample,status,bam,pbi) - generates a params YAML and launch script for reproducible reruns
- supports dry-run validation and run/submit execution paths
Use this skill as the default path for pacsomatic operations. Do not bypass it with manually assembled nextflow run nf-core/pacsomatic commands unless the user explicitly asks for manual command construction.
When to Use This Skill
Invoke this skill when the user asks to:
- run matched tumor-normal analysis from BAM files
- generate or fix pacsomatic samplesheet and launch artifacts
- execute locally or submit to schedulers (LSF/Slurm/PBS/SGE)
- perform dry-run validation before execution
- troubleshoot launch failures or summarize run outputs
Do not use this skill for:
- deep biological interpretation beyond run-level sanity checks
- editing pipeline internals unless explicitly requested
Typical trigger phrases:
- "run nf-core/pacsomatic for this tumor-normal pair"
- "prepare pacsomatic samplesheet and launch script"
- "do a dry run first and tell me what is missing"
- "submit pacsomatic to slurm/lsf and return the job id"
- "why did pacsomatic submission fail"
Routing and Execution Rules
- Always collect required run inputs first.
- Always route through
scripts/run_pacsomatic.pyfor validation and artifact generation. - Default to
--dry-runwhen the user asks for checks/validation only. - Use
--runonly when the user asks to execute/submit. - For scheduler modes, include executor-specific resource arguments and return detected job ID when available.
- If execution fails, report first failure point and next triage target (
.nextflow.log,pipeline_info, failing task logs).
Inputs Required
Required:
- tumor BAM path
- normal BAM path
- patient ID
- tumor sample ID
- normal sample ID
- output directory
- exactly one reference mode:
--fastaor--genome
Optional:
- profile, resources, scheduler account/queue
- pipeline version (
-r) - params file, resume/report/dag flags
--dry-runand/or--run
Workflow
- Validate identity and input constraints.
- Validate required local paths (BAM, optional PBI, optional FASTA).
- Resolve runtime and dependency checks.
- Build samplesheet and generated params YAML.
- Generate launch script for selected executor.
- If
--dry-runand not--run, stop after artifact generation. - If
--run, execute locally or submit to scheduler. - Return command/script path, validation status, and job ID (if detected).
Agent Response Contract
Every response after invocation should include:
- exact command used or generated script path
- confirmation that validation checks ran
- run type (
dry-runvsrun) - scheduler job ID when available
- one concrete next step for validation/triage
Quick Start
Dry run:
python scripts/run_pacsomatic.py \
--tumor-bam /path/to/tumor.bam \
--normal-bam /path/to/normal.bam \
--patient-id P001 \
--tumor-sample-id P001_T \
--normal-sample-id P001_N \
--outdir /path/to/output \
--genome GRCh38 \
--profile singularity,sanger \
--dry-run
Scheduler execution example (Slurm):
python scripts/run_pacsomatic.py \
--tumor-bam /path/to/tumor.bam \
--normal-bam /path/to/normal.bam \
--patient-id P001 \
--tumor-sample-id P001_T \
--normal-sample-id P001_N \
--outdir /path/to/output \
--genome GRCh38 \
--profile singularity,sanger \
--executor slurm \
--queue compute \
--project my_account \
--cpus 16 \
--memory-gb 64 \
--walltime 48:00 \
--run
Configuration
Use config.yaml as the baseline for profile/executor/runtime defaults. Override at invocation time when user requirements differ.
Testing
Run unit tests from skill root:
python -m unittest discover -s tests/pacsomatic -v
References
references/agent-playbook.mdreferences/config-and-output.mdreferences/pacsomatic_guide.mdscripts/run_pacsomatic.py
| 1 | |
| 2 | name pacsomatic |
| 3 | description Operator toolkit for nf-core/pacsomatic matched tumor-normal workflows from BAM inputs. Use this skill when the user needs to validate run inputs, generate pacsomatic-compliant samplesheets, prepare reproducible Nextflow launch artifacts, run locally or submit to schedulers (LSF/Slurm/PBS/SGE), and triage execution failures. Triggers on requests to run pacsomatic, prepare launch commands/scripts, perform dry-run checks, or troubleshoot pipeline startup and scheduler submission errors. |
| 4 | license MIT |
| 5 | metadata |
| 6 | version "1.2" |
| 7 | skill-author Beifang Niu |
| 8 | contributors Haidong, Wenchao |
| 9 | upstream-pipeline https://github.com/nf-core/pacsomatic |
| 10 | |
| 11 | |
| 12 | # pacsomatic |
| 13 | |
| 14 | ## Overview |
| 15 | |
| 16 | This skill provides a reproducible execution workflow for nf-core/pacsomatic, centered on a single helper entrypoint that handles validation, artifact generation, and optional execution. |
| 17 | |
| 18 | Primary entrypoint: |
| 19 | `scripts/run_pacsomatic.py` |
| 20 | |
| 21 | The helper script: |
| 22 | validates required identifiers, files, reference mode, and runtime prerequisites |
| 23 | writes a pacsomatic-compatible samplesheet (`patient,sample,status,bam,pbi`) |
| 24 | generates a params YAML and launch script for reproducible reruns |
| 25 | supports dry-run validation and run/submit execution paths |
| 26 | |
| 27 | Use this skill as the default path for pacsomatic operations. Do not bypass it with manually assembled `nextflow run nf-core/pacsomatic` commands unless the user explicitly asks for manual command construction. |
| 28 | |
| 29 | ## When to Use This Skill |
| 30 | |
| 31 | Invoke this skill when the user asks to: |
| 32 | run matched tumor-normal analysis from BAM files |
| 33 | generate or fix pacsomatic samplesheet and launch artifacts |
| 34 | execute locally or submit to schedulers (LSF/Slurm/PBS/SGE) |
| 35 | perform dry-run validation before execution |
| 36 | troubleshoot launch failures or summarize run outputs |
| 37 | |
| 38 | Do not use this skill for: |
| 39 | deep biological interpretation beyond run-level sanity checks |
| 40 | editing pipeline internals unless explicitly requested |
| 41 | |
| 42 | Typical trigger phrases: |
| 43 | "run nf-core/pacsomatic for this tumor-normal pair" |
| 44 | "prepare pacsomatic samplesheet and launch script" |
| 45 | "do a dry run first and tell me what is missing" |
| 46 | "submit pacsomatic to slurm/lsf and return the job id" |
| 47 | "why did pacsomatic submission fail" |
| 48 | |
| 49 | ## Routing and Execution Rules |
| 50 | |
| 51 | Always collect required run inputs first. |
| 52 | Always route through `scripts/run_pacsomatic.py` for validation and artifact generation. |
| 53 | Default to `--dry-run` when the user asks for checks/validation only. |
| 54 | Use `--run` only when the user asks to execute/submit. |
| 55 | For scheduler modes, include executor-specific resource arguments and return detected job ID when available. |
| 56 | If execution fails, report first failure point and next triage target (`.nextflow.log`, `pipeline_info`, failing task logs). |
| 57 | |
| 58 | ## Inputs Required |
| 59 | |
| 60 | Required: |
| 61 | tumor BAM path |
| 62 | normal BAM path |
| 63 | patient ID |
| 64 | tumor sample ID |
| 65 | normal sample ID |
| 66 | output directory |
| 67 | exactly one reference mode: `--fasta` or `--genome` |
| 68 | |
| 69 | Optional: |
| 70 | profile, resources, scheduler account/queue |
| 71 | pipeline version (`-r`) |
| 72 | params file, resume/report/dag flags |
| 73 | `--dry-run` and/or `--run` |
| 74 | |
| 75 | ## Workflow |
| 76 | |
| 77 | Validate identity and input constraints. |
| 78 | Validate required local paths (BAM, optional PBI, optional FASTA). |
| 79 | Resolve runtime and dependency checks. |
| 80 | Build samplesheet and generated params YAML. |
| 81 | Generate launch script for selected executor. |
| 82 | If `--dry-run` and not `--run`, stop after artifact generation. |
| 83 | If `--run`, execute locally or submit to scheduler. |
| 84 | Return command/script path, validation status, and job ID (if detected). |
| 85 | |
| 86 | ## Agent Response Contract |
| 87 | |
| 88 | Every response after invocation should include: |
| 89 | exact command used or generated script path |
| 90 | confirmation that validation checks ran |
| 91 | run type (`dry-run` vs `run`) |
| 92 | scheduler job ID when available |
| 93 | one concrete next step for validation/triage |
| 94 | |
| 95 | ## Quick Start |
| 96 | |
| 97 | Dry run: |
| 98 | |
| 99 | |
| 100 | python scripts/run_pacsomatic.py \ |
| 101 | --tumor-bam /path/to/tumor.bam \ |
| 102 | --normal-bam /path/to/normal.bam \ |
| 103 | --patient-id P001 \ |
| 104 | --tumor-sample-id P001_T \ |
| 105 | --normal-sample-id P001_N \ |
| 106 | --outdir /path/to/output \ |
| 107 | --genome GRCh38 \ |
| 108 | --profile singularity,sanger \ |
| 109 | --dry-run |
| 110 | |
| 111 | |
| 112 | Scheduler execution example (Slurm): |
| 113 | |
| 114 | |
| 115 | python scripts/run_pacsomatic.py \ |
| 116 | --tumor-bam /path/to/tumor.bam \ |
| 117 | --normal-bam /path/to/normal.bam \ |
| 118 | --patient-id P001 \ |
| 119 | --tumor-sample-id P001_T \ |
| 120 | --normal-sample-id P001_N \ |
| 121 | --outdir /path/to/output \ |
| 122 | --genome GRCh38 \ |
| 123 | --profile singularity,sanger \ |
| 124 | --executor slurm \ |
| 125 | --queue compute \ |
| 126 | --project my_account \ |
| 127 | --cpus 16 \ |
| 128 | --memory-gb 64 \ |
| 129 | --walltime 48:00 \ |
| 130 | --run |
| 131 | |
| 132 | |
| 133 | ## Configuration |
| 134 | |
| 135 | Use `config.yaml` as the baseline for profile/executor/runtime defaults. Override at invocation time when user requirements differ. |
| 136 | |
| 137 | ## Testing |
| 138 | |
| 139 | Run unit tests from skill root: |
| 140 | |
| 141 | |
| 142 | python -m unittest discover -s tests/pacsomatic -v |
| 143 | |
| 144 | |
| 145 | ## References |
| 146 | |
| 147 | `references/agent-playbook.md` |
| 148 | `references/config-and-output.md` |
| 149 | `references/pacsomatic_guide.md` |
| 150 | `scripts/run_pacsomatic.py` |
| 151 |
Details
- Updated
- Sep 21, 2026
- License
- MIT
- Stars on the repo
- ★ 45,977
- Checked
- Source
- K-Dense-AI/scientific-agent-skills ↗
- Creator
- K-Dense-AI · 168 listings
Similar skills
See all →
SkillTurn the current project website into a short, polished/brag
SkillTurn a project directory or a website URL into a short/brag-slim
SkillPlan, build and quality-check a premium short commercialBusiness motion film
SkillLaunch your AI product to global attentionAI Product Launch Playbook
SkillBuild motion graphics and launch videos in codeMotion os
SkillBuild a 30-60s motion-graphics launch video for a <YOURBRANDLaunch video creatorMore from K-Dense-AI
SkillHow to use the Adaptyv Bio Foundry API and Python SDK
SkillAeon Time Series Machine Learning
SkillPlan, execute, and document validation, verificationAnalytical method validation
SkillData structure for annotated matrices in single-cellAnndata
SkillAutonomously improve a real artifact against an objectiveArbor — Autonomous Optimization via Hypothesis Tree Refinement
SkillInfer gene regulatory networks from gene expression dataArboreto