Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot

pacsomatic — Claude Code skill: what it does, how to install

Prepares a matched tumor-normal run of nf-core/pacsomatic on PacBio HiFi data: builds the samplesheet, writes launch artifacts, submits the Nextflow driver to a scheduler.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add K-Dense-AI/scientific-agent-skills --skill pacsomatic -a claude-code
Open on GitHub

What pacsomatic does

The skill wraps nf-core/pacsomatic, a pipeline for matched tumor-normal samples sequenced as PacBio HiFi reads. You give it two unaligned BAMs (with optional .pbi indexes), a patient ID, separate sample IDs, an output directory and exactly one reference mode: --fasta or --genome. The helper scripts/run_pacsomatic.py then writes the samplesheet, the params and the launch script, and pins the pipeline to the reviewed commit 24c84cb371b0339c1d65a4de9451671945e19772 because the repository carries no tags.

Start with --dry-run. That runs the helper checks and writes files without calling the pipeline; BAM contents and remote URI availability stay unchecked, and a missing Nextflow is only a warning at this stage. Real execution needs --run, while --executor sends the driver to LSF, Slurm, PBS Pro or SGE. Load cluster modules before you call the helper, since --module-load only replays those commands inside the generated script.

Prerequisites are Python 3.10+, Bash, Nextflow 24.04.2 or newer, a matching Java (17–26) and a container runtime. Network access is required for anything not already cached: pipeline code, plugins, references, containers. One thing worth knowing: config.yaml next to the skill is an operator reference, not a config that gets loaded on its own, so read it before trusting a launch. And this is a reviewed dev-branch snapshot, not a clinically validated assay.

What it helps with

  • generate a samplesheet from a tumor and a normal BAM
  • pin the pipeline revision so a run can be repeated
  • check input paths before spending cluster time
  • submit the Nextflow driver to Slurm with the right queue
  • triage a run that dies at startup

Example prompts for the agent

  • Prepare a pacsomatic run for /data/P001_T.bam and /data/P001_N.bam, patient P001, reference /refs/GRCh38.fa, dry run first.
  • Submit it to Slurm with `--executor slurm --queue compute --project my_account` and `--run`.
  • Walk me through the dry-run warnings before I send this to the cluster.

How to install pacsomatic

1Skills CLI (Vercel)

npx skills add K-Dense-AI/scientific-agent-skills --skill pacsomatic -a claude-code

2Manually: put the files in place

~/.claude/skills/pacsomatic/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/pacsomatic/

From the same set120

The whole set →
scientific-visualization K-Dense-AI Generates and audits publication-ready scientific figures in Matplotlib, Seaborn, and Plotly, focusing on truthful data encoding and accessibility. Claude Code CX Codex Cursor +1 2,400installs scientific-writing K-Dense-AI This skill drafts and audits scientific manuscripts and reports while tying claims to verified evidence. Use it for sections, references, declarations, and submission checks. Claude Code CX Codex Cursor +1 2,400installs statistical-analysis K-Dense-AI Runs hypothesis tests with assumption checking, effect sizes, and APA-formatted reports. Covers t-tests, ANOVA, correlation, regression, non-parametric and Bayesian methods. Claude Code CX Codex Cursor +1 2,300installs scientific-brainstorming K-Dense-AI Structures early-stage research ideation through independent idea generation, transparent scoring, and adversarial review. Useful for ranking hypotheses without premature consensus. Claude Code CX Codex Cursor +1 2,300installs literature-review K-Dense-AI This skill searches and synthesizes research literature, checks citations, and prepares Markdown or PDF reviews. Use it for reproducible searches and screening. Claude Code CX Codex Cursor +1 2,300installs scientific-critical-thinking K-Dense-AI Evaluates scientific claims, research methodology, and evidence quality. Applies GRADE and Cochrane Risk of Bias frameworks. Claude Code CX Codex Cursor +1 2,300installs scientific-schematics K-Dense-AI Creates PNG drafts of scientific diagrams and runs a separate quality review. Use it for neural network architectures, flowcharts, system diagrams, and biological pathways. Claude Code CX Codex Cursor +1 2,200installs scikit-learn K-Dense-AI A skill for Python machine learning tasks: classification, regression, clustering, preprocessing, and building ML pipelines with scikit-learn 1.9.1. Claude Code CX Codex Cursor +1 2,200installs

Similar

paper-spine WUBING2023 Orchestrates academic paper drafting with evidence-bound citations, interactive web intake, and full in-task revisions. Claude Code CX Codex Cursor +1 1,200installs tavily-research tavily-ai Runs deep web research via the Tavily CLI and returns a structured report with source citations. Useful for market reviews and multi-source technical comparisons. Claude Code CX Codex Cursor +1 21,900installs huggingface-papers huggingface Pulls the paper ID out of a Hugging Face or arXiv link, reads the page as markdown, and fetches authors, models and datasets from the papers API. Claude Code CX Codex Cursor +1 2,200installs deep-research ruvnet Orchestrates multi-phase research using web search, codebase analysis, and memory storage. It generates structured findings with evidence ratings for complex topics. Claude Code CX Codex Cursor +1 893installs anysearch anysearch-ai This skill gives an agent web search, domain-specific queries, parallel batch search, and page extraction. Use it when a task needs current information or a claim needs checking. Claude Code CX Codex Cursor +1 38,500installs academic-paper Imbad0202 This skill runs a 12-agent academic pipeline across 11 modes. It guides projects from literature searches and outlines to citation audits and rebuttal reviews. Claude Code CX Codex Cursor +1 10,800installs nature-figure Yuan1z0825 A skill that builds, revises and audits scientific figures for manuscripts in Python or R. Useful when plots go to submission, not to a report. Claude Code CX Codex Cursor +1 18,700installs academic-paper-reviewer Imbad0202 This skill reviews an academic paper through five role-based perspectives. Use it for peer review, revision checks, or a focused methodology assessment. Claude Code CX Codex Cursor +1 9,800installs

Questions about pacsomatic

How to install pacsomatic in Claude Code?

Run npx skills add K-Dense-AI/scientific-agent-skills --skill pacsomatic -a claude-code. The skill lands at ~/.claude/skills/pacsomatic/SKILL.md.

What does pacsomatic do?

It prepares a matched tumor-normal nf-core/pacsomatic run from unaligned PacBio HiFi BAMs: samplesheet, params, launch script, and scheduler submission when asked. It is not built for short-read somatic analysis or medical imaging PACS.

What do I need to run the pipeline?

Python 3.10+ for the helper, Bash, Nextflow 24.04.2 or newer, a compatible Java runtime (17–26) and a container runtime. Network access is needed for containers, references and plugins that are not cached yet.

Source text

SKILL.md · MIT
---
name: pacsomatic
description: Prepares and launches nf-core/pacsomatic matched tumor-normal PacBio HiFi genomics workflows from unaligned BAM inputs. Supports samplesheet generation, pinned Nextflow launch artifacts, local checks, LSF/Slurm/PBS Pro/SGE launcher submission, and startup troubleshooting. Use for pacsomatic run preparation and execution, not general short-read somatic analysis or medical imaging PACS.
license: MIT
compatibility: Requires Python 3.10+ for the standard-library helper. Execution requires Bash, Nextflow >=24.04.2, a compatible Java runtime (current Nextflow supports Java 17-26), the selected container runtime and optionally a scheduler. Network access is needed for uncached pipeline code, plugins, references and containers.
metadata:
  version: "1.4"
  skill-author: Beifang Niu
  contributors: Haidong, Wenchao
  upstream-pipeline: https://github.com/nf-core/pacsomatic
  upstream-revision: "24c84cb371b0339c1d65a4de9451671945e19772"
  last-reviewed: "2026-10-01"
---

# pacsomatic

## When to use

Use [scripts/run_pacsomatic.py](scripts/run_pacsomatic.py) to prepare one matched
PacBio HiFi tumor/normal pair, generate a samplesheet and reproducible launch
artifacts, and launch locally or submit the **Nextflow driver** to a scheduler.
The pipeline realigns input BAMs; this helper targets unaligned HiFi BAMs and
optional PacBio `.pbi` indexes. Do not substitute short reads or treat a BAM
filename as evidence of platform, matched identity, or methylation information.

The reviewed upstream `dev` commit is
`24c84cb371b0339c1d65a4de9451671945e19772`. GitHub had no releases or tags on
2026-10-01, despite the internal manifest saying `1.0.0`. The helper pins that
commit by default for `nf-core/pacsomatic`; it does not invent a release tag.
This is a source-reviewed development workflow, not a clinically validated assay.
See [references/pacsomatic_guide.md](references/pacsomatic_guide.md) for sources
and scientific checks.

## Workflow

1. Obtain distinct tumor and normal BAM paths, patient ID, distinct sample IDs,
   output directory, and exactly one reference mode: `--fasta` or `--genome`.
   IDs and BAM/PBI/FASTA paths must have no whitespace. Local inputs must be
   nonempty regular files. Remote BAM/PBI/FASTA URIs are passed through without
   downloading or authenticating; use managed filesystem/cloud credentials,
   never embed secrets or signed URLs in generated files.
2. Confirm PacBio HiFi read groups and sample identity from acquisition metadata;
   confirm that MM/ML modification tags needed for methylation have been retained.
   Verify reference sequence/contig compatibility for every annotation resource.
3. Generate artifacts with `--dry-run`. This performs helper checks and writes
   files, but does **not** invoke the pipeline, validate BAM contents, check remote
   availability, resolve every pipeline parameter, or verify biological suitability.
   Missing runtime tools are warnings here. `--dry-run` cannot be combined with
   `--run`/`--submit`, cloning, or environment creation.
4. Review samplesheet, generated params YAML, script, pipeline revision, profiles,
   and branch-specific resources/skips. Existing artifacts require explicit
   `--overwrite`; input files can never be artifact targets. `config.yaml` is an
   operator reference, not an automatically loaded configuration file.
5. For execution, select the actual runtime with `--use-current-path` or an
   existing `--conda-env`. Load cluster modules **before** invoking the helper;
   `--module-load` only repeats those commands in the generated script. No Conda
   YAML is bundled; creating an environment needs `--conda-env-file` explicitly.
6. Use `--run` only for requested execution. For HPC, distinguish the outer
   launcher scheduler (`--executor`) from Nextflow's per-task `process.executor`,
   configured by a site profile or `--nextflow-config`. Driver CPU/memory requests
   do not constrain task resources. Read [references/config-and-output.md](references/config-and-output.md).
7. Report artifact paths, revision, checks/warnings, run type, submission ID if
   present, and a concrete next QC or failure-triage step. Scheduler acceptance
   is not pipeline completion. Keep the output directory and work/cache state
   stable for `--resume`; scripts run with the output directory as their cwd.

## Examples

Run these from the repository root. Paths and site settings are **illustrative**;
local tests use synthetic placeholders only, not human genomic data.

```bash
python skills/pacsomatic/scripts/run_pacsomatic.py \
  --tumor-bam /data/P001_T.bam --normal-bam /data/P001_N.bam \
  --patient-id P001 --tumor-sample-id P001_T --normal-sample-id P001_N \
  --outdir /results/P001 --fasta /refs/GRCh38.fa \
  --profile apptainer --use-current-path --dry-run
```

After reviewing artifacts, a Slurm launch can use the same inputs plus the
following options (replace `--dry-run` with `--run`):

```text
--executor slurm --queue compute --project my_account
--cpus 2 --memory-gb 8 --walltime 48:00
--nextflow-config /configs/slurm.config --overwrite --run
```

Those resources are for the driver, assuming the reviewed infrastructure config
sets `process.executor = 'slurm'` and suitable task queue/resources. The helper
normalizes `48:00` to Slurm `48:00:00` (48 hours). Do not add a `sanger` profile
unless actually using that institution's LSF infrastructure.

Custom pipeline parameters go in `--params-file`; infrastructure goes in
`--nextflow-config` (`-c`). The helper's explicit input/outdir/reference options
win over params-file values. `--extra-args` is tokenized and shell-quoted, but
cannot override these managed inputs/configuration options. Keep paths inside
external params/config files absolute because the launcher cwd is the outdir.

## Verification and references

```bash
uv run skills-ref validate skills/pacsomatic
python tests/run_all.py --isolated pacsomatic
```

The standard-library suite checks local artifact behavior, path protections,
CLI modes, runtime failures and mocked scheduler submissions. Native Nextflow
checks use a tiny local workflow; they do not establish that pacsomatic's full
containerized scientific pipeline succeeds on a given dataset or cluster.

- [Operator playbook](references/agent-playbook.md)
- [Configuration, scheduler and output contracts](references/config-and-output.md)
- [Upstream sources and scientific checks](references/pacsomatic_guide.md)

© K-Dense-AI · MIT · K-Dense-AI/scientific-agent-skills

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor