pacsomatic
できること
このスクリプトは、PacBio HiFi Pacsomaticというゲノムデータ解析の準備と実行を行います。同じ患者さんから採取した腫瘍サンプルと正常サンプルを比較するために使われます。
使う場面
- ✓同じ患者さんの腫瘍サンプルと正常サンプルのゲノムデータがあるとき。
- ✓PacBio HiFi DNA解析ワークフローの実行を準備するとき。
- ✓設定ファイルを生成し、計算サーバーで解析を開始したいとき。
スキルのリンク
https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/pacsomatic/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“患者P001について、提供されたBAMファイルとGRCh38リファレンスゲノムを使い、腫瘍サンプルと正常サンプルでPacsomatic解析を準備して実行してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
腫瘍と正常のデータのパス、サンプルと患者ごとの一意の識別子、結果を保存する場所を指定します。スクリプトが解析の設定を行い、実行します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
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
…
よくある質問
「対応する腫瘍・正常サンプル」とは何ですか?
同じ患者さんから採取した2つの組織サンプルのことです。一方は腫瘍から、もう一方は健康な(正常な)組織から採取し、遺伝子の変化を比較するために使います。
PacBio HiFiとは何ですか?
長く、かつ正確な読み取り結果を生成するDNAシーケンシング技術の一種で、複雑なゲノム解析に適しています。
このスクリプトでショートリードのシーケンシングデータは使えますか?
いいえ。このスクリプトはPacBio HiFiのロングリードデータ専用です。
詳細
作者による元の説明
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.
人気
- GitHubのスター
- 51k
- ランキング
- #3516
- ライセンス
- MIT
- 更新日
- 2026/10/15
コメント
- …
このリポジトリの他のスキル
13c-metabolic-flux
51k炭素13同位体トレーシングのデータを使って代謝フラックスを推定します。細胞の代謝や生化学経路の分析に役立ちます。
adaptyv
51kAdaptyv APIを使ってタンパク質の特性評価実験を設計します。コストの見積もり、配列の提出、ラボの結果の監視を支援します。
aeon
51k時系列データに対して機械学習のタスクを実行します。逐次データの分類、予測、異常検知、パターンの発見に役立ちます。
alphagenome
51k遺伝的変異に対して、事前に計算されたゲノム上の効果を検索します。スコアと説明を提供し、変異がゲノムに与える影響を理解するのに役立ちます。
似ているスキル
gitcrawl
394k保存されたGitHubのイシューとプルリクエストのアーカイブを検索し、重複をまとめ、GitHub上の現在の状態を確認するようエージェントを支援します。
slacrawl
394kローカルのSlackアーカイブ内のメッセージを検索して件数を数え、アーカイブの新しさを確認し、必要に応じて更新するようエージェントを支援します。
goplaces
394kGoogle Placesを使って、場所を検索し、詳細や口コミを取得し、場所の名前を解決するようエージェントを支援します。スクリプト用にJSON出力もできます。