关于
The pacsomatic skill prepares and launches nf-core/pacsomatic workflows for tumor-normal PacBio HiFi genomics analysis from unaligned BAMs. It handles samplesheet generation, pinned Nextflow launches, local checks, and submission to common HPC schedulers like LSF and Slurm. Use this specifically for pacsomatic run preparation and execution, not for general short-read analysis.
快速安装
Claude Code
推荐npx skills add K-Dense-AI/claude-scientific-skills -a claude-code/plugin add https://github.com/K-Dense-AI/claude-scientific-skillsgit clone https://github.com/K-Dense-AI/claude-scientific-skills.git ~/.claude/skills/pacsomatic在 Claude Code 中复制并粘贴此命令以安装该技能
技能文档
pacsomatic
When to use
Use 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 for sources
and scientific checks.
Workflow
- Obtain distinct tumor and normal BAM paths, patient ID, distinct sample IDs,
output directory, and exactly one reference mode:
--fastaor--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. - 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.
- 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-runcannot be combined with--run/--submit, cloning, or environment creation. - 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.yamlis an operator reference, not an automatically loaded configuration file. - For execution, select the actual runtime with
--use-current-pathor an existing--conda-env. Load cluster modules before invoking the helper;--module-loadonly repeats those commands in the generated script. No Conda YAML is bundled; creating an environment needs--conda-env-fileexplicitly. - Use
--runonly for requested execution. For HPC, distinguish the outer launcher scheduler (--executor) from Nextflow's per-taskprocess.executor, configured by a site profile or--nextflow-config. Driver CPU/memory requests do not constrain task resources. Read references/config-and-output.md. - 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.
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):
--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
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.
GitHub 仓库
常见问题
什么是 pacsomatic Skill?
pacsomatic 是一个 Claude Skill,作者为 K-Dense-AI。Skill 将 Claude 按需加载的说明和资源打包,让 Claude 无需额外提示即可执行与 pacsomatic 相关的任务。
如何安装 pacsomatic?
使用本页的安装命令:将 pacsomatic 作为插件添加到 Claude Code,或将其仓库克隆到 skills 目录,然后重启 Claude 以加载该 Skill。
pacsomatic 属于哪个分类?
pacsomatic 属于元分类。
pacsomatic 可以免费使用吗?
可以。pacsomatic 已收录在 AIMCP,可免费安装。
相关推荐技能
Content Collections 是一个 TypeScript 优先的构建工具,可将本地 Markdown/MDX 文件转换为类型安全的数据集合。它专为构建博客、文档站和内容密集型 Vite+React 应用而设计,提供基于 Zod 的自动模式验证。该工具涵盖从 Vite 插件配置、MDX 编译到生产环境部署的完整工作流。
这个Claude Skill为开发者提供完整的Polymarket预测市场开发支持,涵盖API调用、交易执行和市场数据分析。关键特性包括实时WebSocket数据流,可监控实时交易、订单和市场动态。开发者可用它构建预测市场应用、实施交易策略并集成实时市场预测功能。
该Skill帮助开发者创建OpenCode插件,用于接入命令、文件、LSP等25+种事件。它提供了插件结构、事件API规范和JavaScript/TypeScript实现模式,适合需要拦截操作、扩展功能或自定义事件处理的场景。开发者可通过它快速构建响应式模块来增强OpenCode AI助手的能力。
SGLang是一个专为LLM设计的高性能推理框架,特别适用于需要结构化输出的场景。它通过RadixAttention前缀缓存技术,在处理JSON、正则表达式、工具调用等具有重复前缀的复杂工作流时,能实现极速生成。如果你正在构建智能体或多轮对话系统,并追求远超vLLM的推理性能,SGLang是理想选择。
