pacsomatic
用于从 BAM 输入构建 nf-core/pacsomatic 匹配肿瘤-正常工作流的操作员工具包。当用户需要验证运行输入、生成符合 pacsomatic 的 samplesheet、准备可复现的 Nextflow 启动工件、在本地运行或提交到调度器(LSF/Slurm/PBS/SGE),以及对执行失败进行分诊排查时,请使用此能力。触发条件包括:请求运行 pacsomatic、准备启动命令/脚本、执行干运行检查,或排查流水线启动及调度器提交错误。
分类
开发工具安装
下载并解压到你的 skills 目录
复制命令,发送给智能体自动安装:
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.pyThe helper script:
patient,sample,status,bam,pbi)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:
Do not use this skill for:
Typical trigger phrases:
Routing and Execution Rules
scripts/run_pacsomatic.py for validation and artifact generation.--dry-run when the user asks for checks/validation only.--run only when the user asks to execute/submit..nextflow.log, pipeline_info, failing task logs).Inputs Required
Required:
--fasta or --genomeOptional:
-r)--dry-run and/or --runWorkflow
--dry-run and not --run, stop after artifact generation.--run, execute locally or submit to scheduler.Agent Response Contract
Every response after invocation should include:
dry-run vs run)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-runScheduler 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 \
--runConfiguration
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 -vReferences
references/agent-playbook.mdreferences/config-and-output.mdreferences/pacsomatic_guide.mdscripts/run_pacsomatic.py