بنقرة واحدة
add-testdata
Add a new test data download task to the ww-testdata module for use in module/pipeline testruns
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Add a new test data download task to the ww-testdata module for use in module/pipeline testruns
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Create a new WILDS WDL module for a bioinformatics tool following project conventions
Create a new WILDS WDL pipeline that combines existing modules into a workflow
Run WDL linting on a WILDS module or pipeline and fix any issues found
Draft a pull request description using the project's PR template
Run the testrun.wdl for a WILDS module or pipeline using sprocket or miniwdl
| name | add-testdata |
| description | Add a new test data download task to the ww-testdata module for use in module/pipeline testruns |
| argument-hint | <task-name> |
Add a new task called $ARGUMENTS to modules/ww-testdata/ww-testdata.wdl.
Clarify with the user if not obvious:
Read modules/ww-testdata/ww-testdata.wdl to understand the existing task patterns. Key conventions:
Docker images used for test data tasks:
getwilds/samtools:1.11 — reference genome prep, BAM/CRAM handling, general file downloads via curl/wgetgetwilds/awscli:2.27.49 — AWS S3 downloads (no-sign-request), general downloadsgetwilds/bcftools:1.19 — VCF filtering, region extraction, normalizationgetwilds/deseq2:1.40.2 — R/Bioconductor data generationgetwilds/r-utils:0.1.0 — general R scriptsCommon data sources:
Optimization strategies (keep test data small!):
samtools view -s)samtools faidx, bcftools view -r)Add the task to modules/ww-testdata/ww-testdata.wdl following this template:
task $ARGUMENTS {
meta {
author: "WILDS Team"
email: "wilds@fredhutch.org"
description: "Description of what this test data task provides"
url: "https://raw.githubusercontent.com/getwilds/wilds-wdl-library/refs/heads/main/modules/ww-testdata/ww-testdata.wdl"
outputs: {
output_name: "Description of each output file"
}
}
parameter_meta {
cpu_cores: "Number of CPU cores allocated for the task"
memory_gb: "Memory allocated for the task in GB"
}
input {
# Add task-specific inputs with defaults where possible
Int cpu_cores = 1
Int memory_gb = 4
}
command <<<
set -eo pipefail
# Download or generate test data
# Keep files small for CI testing!
>>>
output {
# Define typed outputs
}
runtime {
docker: "getwilds/<appropriate-image>:<version>"
cpu: cpu_cores
memory: "~{memory_gb} GB"
}
}
Read modules/ww-testdata/testrun.wdl and add a call to the new task. The testdata testrun calls ALL tasks to validate they work. Add:
validate_outputs task if one existsRead modules/ww-testdata/README.md and add documentation for the new task, including:
make lint NAME=ww-testdata
Fix any issues and re-run until clean.
Report: