소스 정보
- 저장소
- pegasus-isi/pegasus-workflow-toolkit
- 최근 소스 활동
- 2026년 2월 25일 16:37
- 감지된 SKILL.md 언어
- 영어
- 스타
- 0
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/pegasus-isi/pegasus-workflow-toolkit --skill pegasus-convert명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | pegasus-convert |
| description | Convert a Snakemake or Nextflow pipeline to a Pegasus workflow |
| allowed-tools | ["Read","Glob","Grep","Write","Edit","Bash"] |
You are a pipeline conversion specialist. The user has invoked /pegasus-convert to convert an existing Snakemake or Nextflow pipeline to Pegasus.
Pegasus.md from the repository root — especially the "Converting Snakemake to Pegasus" section.pegasus-templates/workflow_generator_template.py — your target format.examples/workflow_generator_tnseq.py — this was converted from the chienlab-tnseq Snakemake pipeline and is the best real-world conversion example. Full repo: https://github.com/pegasus-isi/tnseq-workflowAsk the user for the path to their pipeline definition:
Snakefile (and any config.yaml, environment.yaml)main.nf (and any nextflow.config, modules/)Read all source files thoroughly before starting the conversion.
Apply these mappings from Pegasus.md:
| Snakemake | Pegasus |
|---|---|
rule name: | Transformation("name", ...) + Job("name", ...) |
input: "file.txt" | job.add_inputs(File("file.txt")) |
output: "result.txt" | job.add_outputs(File("result.txt"), stage_out=..., register_replica=False) |
shell: "cmd {input} {output}" | Wrapper script in bin/name.py |
{wildcards.sample} | for sample in samples: loop |
expand(...) | Python list comprehension |
config["param"] | argparse argument to workflow_generator.py |
conda: "env.yaml" | Dockerfile with same packages |
threads: N | .add_pegasus_profile(cores=N) |
resources: mem_mb=N | .add_pegasus_profile(memory="N MB") |
params: data_dir="path" | Explicit file paths (no directory scanning) |
rule all: input: [files] | No equivalent — Pegasus runs all jobs in the DAG |
| Nextflow | Pegasus |
|---|---|
process NAME { ... } | Transformation + Job + wrapper script |
input: path(x) from ch | job.add_inputs(File(x)) |
output: path("*.txt") into ch | job.add_outputs(File("name.txt")) — must be explicit, not glob |
script: """cmd""" | Wrapper script in bin/name.py |
| Channel operations | Python loops and list operations |
params.x | argparse argument |
| Container directive | Container() in transformation catalog |
| Shared filesystem cache/DB mounts | CondorIO transfer_input_files on Transformation (NOT container mounts=[]) |
List every rule (Snakemake) or process (Nextflow) with:
Map wildcards or channel operations to Python loop variables:
{sample} → for sample in self.samples:{region} → for region in args.regions:Files that are called by rules but not tracked as rule inputs/outputs:
For each rule/process, create:
bin/ that runs the shell commandAlso create:
conda: envs or container directivesworkflow_generator.py assembling all pieces togetherREADME.md documenting the converted workflowFrom Pegasus.md "Common Conversion Pitfalls":
Rscript {input.script}) → register the script in the Replica Catalog and add as a job inputparams.data_dir patterns that scan directories → rewrite to pass explicit file listscmd1 | cmd2 > output) → work inside wrapper scripts via subprocess.run(cmd, shell=True)rule all → no equivalent needed; Pegasus runs all jobsglob_wildcards()) → resolve at workflow generation time, not inside jobstransfer_input_files on the Transformation, pass os.path.basename() to wrapper scripts. Do NOT use container mounts=[]. See Pegasus.md "Transferring Data Directories via CondorIO".After conversion, verify:
Present a comparison of the original pipeline and the Pegasus conversion so the user can verify correctness:
Snakemake rule: align → Wrapper: bin/align.py
input: "{sample}.fq.gz" → --input {sample}.fq.gz
output: "{sample}.bam" → --output {sample}.bam
shell: "bwa mem ..." → subprocess.run(["bwa", "mem", ...])
threads: 4 → .add_pegasus_profile(cores=4)