Develops genomics apps, applets and workflows for the DNAnexus platform using dxpy and dx CLI. Writes and lints dxapp.json, runs entry points locally, and checks WDL with miniwdl — all without an account.
Ships in alterlab-lab-integrations. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
DNAnexus is a cloud platform for biomedical data analysis and genomics. Build and deploy apps/applets, manage data objects, run workflows, and use the dxpy Python SDK for genomics pipeline development and execution. Writing, linting and locally testing the app needs no account; only dx build, data transfer and jobs touch the platform.
dxapp.json + src/<name>.py or .sh) against dxpy 0.417.1. Keep the processing in a plain function that takes local paths, so it can be tested without the platform.python3 scripts/lint_dxapp.py my-app/ checks classes (lower case: file, int, array:file, ...), interpreter (python3/bash), the execution environment (Ubuntu 24.04 or 20.04, version "0"), that runSpec.file exists, and that main()'s parameters and returned keys match inputSpec/outputSpec. dx build --dry-run is not a keyless check: without a login it stops with ResolutionError: Cannot resolve "." (verified 2026-10-22).DX_JOB_ID unset, dxpy.run() calls the entry point named by DX_TEST_FUNCTION (default main) with the inputs in ./job_input.json and writes ./job_output.json. Platform calls (download_dxfile, upload_local_file) still need a login, so add a test entry point around the pure function:@dxpy.entry_point("local_test") # never called on the platform
def local_test(reads_path, min_mean_quality=30):
kept, total = filter_fastq(reads_path, "filtered.fastq", min_mean_quality)
return {"kept": kept, "total": total}
echo '{"reads_path": "test.fastq", "min_mean_quality": 30}' > job_input.json
DX_TEST_FUNCTION=local_test uv run --with dxpy python src/my-app.py # -> job_output.json
uv run --python ">=3.11" --with miniwdl miniwdl check workflow.wdl first (catches undefined identifiers, type errors, missing outputs); java -jar dxCompiler.jar compile then needs the login.dx login, dx build, dx run ... --instance-type ...), an instance type and timeoutPolicy chosen on purpose, and a note that jobs bill the user's org. Without a login, stop there — never claim a build, upload or job happened.This skill should be used when:
| Scenario | Use Instead |
|---|---|
Latch SDK workflows (@workflow/@task, LatchFile/LatchDir) on LatchBio | alterlab-latchbio |
| Running the nf-core/sarek germline/somatic variant-calling pipeline itself | alterlab-nf-core-sarek |
| Generic serverless GPU/CPU jobs or SLURM/HPC submission outside DNAnexus | alterlab-modal / alterlab-remote-compute |
| Reading or filtering BAM/VCF records locally in Python | alterlab-pysam |
| Registry, inventory, or ELN records in Benchling | alterlab-benchling |
Hand-off rule. When the request matches a row above, open your answer by naming that skill by its exact id (for example alterlab-latchbio) and saying in one line why it fits better, then stop applying this skill's procedure. Name it even when you also need to ask for missing input. If only part of the request is out of scope, name the skill for that part and do only the in-scope part. A brief general pointer is fine; the named skill does the work.
The skill is organized into five main areas, each with detailed reference documentation:
Purpose: Create executable programs (apps/applets) that run on the DNAnexus platform.
Key Operations:
dx-app-wizarddx build or dx build --appCommon Use Cases:
Reference: See references/app-development.md for:
Purpose: Manage files, records, and other data objects on the platform.
Key Operations:
dxpy.upload_local_file() and dxpy.download_dxfile()Common Use Cases:
Reference: See references/data-operations.md for:
Purpose: Run analyses, monitor execution, and orchestrate workflows.
Key Operations:
applet.run() or app.run()Common Use Cases:
Reference: See references/job-execution.md for:
Purpose: Programmatic access to DNAnexus platform through Python.
Key Operations:
Common Use Cases:
Reference: See references/python-sdk.md for:
Purpose: Configure app metadata and manage dependencies.
Key Operations:
Common Use Cases:
Reference: See references/configuration.md for:
import dxpy
# Upload input file
input_file = dxpy.upload_local_file("sample.fastq", project="project-xxxx")
# Run analysis
job = dxpy.DXApplet("applet-xxxx").run({
"reads": dxpy.dxlink(input_file.get_id())
})
# Wait for completion
job.wait_on_done()
# Download results
output_id = job.describe()["output"]["aligned_reads"]["$dnanexus_link"]
dxpy.download_dxfile(output_id, "aligned.bam")
import dxpy
# Find BAM files from a specific experiment.
# name defaults to exact match; pass name_mode="glob" to use wildcards.
files = dxpy.find_data_objects(
classname="file",
name="*.bam",
name_mode="glob",
properties={"experiment": "exp001"},
project="project-xxxx"
)
# Download each file
for file_result in files:
file_obj = dxpy.DXFile(file_result["id"])
filename = file_obj.describe()["name"]
dxpy.download_dxfile(file_result["id"], filename)
# src/my-app.py
import dxpy
import subprocess
@dxpy.entry_point('main')
def main(input_file, quality_threshold=30):
# Download input
dxpy.download_dxfile(input_file["$dnanexus_link"], "input.fastq")
# Process
subprocess.check_call([
"quality_filter",
"--input", "input.fastq",
"--output", "filtered.fastq",
"--threshold", str(quality_threshold)
])
# Upload output
output_file = dxpy.upload_local_file("filtered.fastq")
return {
"filtered_reads": dxpy.dxlink(output_file)
}
dxpy.run()
When working with DNAnexus, follow this decision tree:
Need to create a new executable?
Need to manage files or data?
Need to run an analysis or workflow?
Writing Python scripts for automation?
Configuring app settings or dependencies?
Often you'll need multiple capabilities together (e.g., app development + configuration, or data operations + job execution).
uv pip install dxpy
dx login
This authenticates your session and sets up access to projects and data. Non-interactive scripts can instead set DX_SECURITY_CONTEXT='{"auth_token_type": "Bearer", "auth_token": "..."}' from a secret store.
dx --version
dx whoami
Batch processing (find files, launch parallel jobs) is shown in the Quick Start above; see references/job-execution.md for scatter-gather and subjobs.
Chain multiple analyses together (get_output_ref passes one job's output as the next job's input):
# Step 1: Quality control
qc_job = qc_applet.run({"reads": input_file})
# Step 2: Alignment (uses QC output)
align_job = align_applet.run({
"reads": qc_job.get_output_ref("filtered_reads")
})
# Step 3: Variant calling (uses alignment output)
variant_job = variant_applet.run({
"bam": align_job.get_output_ref("aligned_bam")
})
Organize analysis results systematically:
# Create organized folder structure
dxpy.api.project_new_folder(
"project-xxxx",
{"folder": "/experiments/exp001/results", "parents": True}
)
# Upload with metadata
result_file = dxpy.upload_local_file(
"results.txt",
project="project-xxxx",
folder="/experiments/exp001/results",
properties={
"experiment": "exp001",
"sample": "sample1",
"analysis_date": "2025-10-20"
},
tags=["validated", "published"]
)
dx login or DX_SECURITY_CONTEXT.find_* name filters match exactly by default — pass name_mode="glob" for wildcards.get_output_ref() directly (it is already a dxlink).timeoutPolicy to cap runaway cost.Each reference file ends with topic-specific best practices for deeper guidance.
dxapp.json + entry-point source); exit 1 lists every problemLoad these references when you need detailed information about specific operations or when working on complex tasks.
Part of the AlterLab Academic Skills suite.
evals/evals.json (opens in a new tab)evals/fixtures/align_and_sort.wdl (opens in a new tab)evals/fixtures/qfilter_applet/dxapp.json (opens in a new tab)evals/fixtures/qfilter_applet/src/qfilter.py (opens in a new tab)evals/fixtures/reads.fastq (opens in a new tab)evals/fixtures/sample.fastq (opens in a new tab)references/app-development.md (opens in a new tab)references/configuration.md (opens in a new tab)references/data-operations.md (opens in a new tab)references/job-execution.md (opens in a new tab)references/python-sdk.md (opens in a new tab)scripts/lint_dxapp.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/alterlab-lab-integrations:alterlab-dnanexusfrom alterlab-lab-integrations
npx claudepluginhub alterlab-ieu/alterlab-academic-skills --plugin alterlab-lab-integrations9 skills in this plugin
/alterlab-benchlingWrites Benchling integration code against the official benchling-sdk — registry DNA/protein entities, inventory, ELN entries, workflow tasks, Benchling Apps, Data Warehouse SQL — and validates every create/update payload offline by building the SDK's typed models and serializing them, with no Benchling account; analyses Benchling CSV/warehouse exports locally. Running the code against a tenant is an optional step with the user's own API key or OAuth app. Use when scripting a Benchling registry import, inventory audit, ELN entry or workflow task, checking a Benchling payload or script before it touches a tenant, analysing a Benchling export, or querying the Benchling Data Warehouse. Part of the AlterLab Academic Skills suite./alterlab-ginkgo-cloudPrepares and validates Ginkgo Bioworks Cloud Lab orders with no account — picks the right protocol (cell-free protein expression validation/optimization, fluorescent pixel art, and the newer catalog), validates the inputs offline (DNA length/format for CFPS, image-to-7-strain-palette mapping for pixel art), and assembles the sample counts, pricing and Additional Details into a ready-to-order package. Placing the order runs through the cloud.ginkgo.bio web interface (there is no public ordering API) with the user's own account. Use when running cell-free protein expression (validation or optimization), generating fluorescent pixel art, preparing or pricing a Ginkgo Cloud Lab order, or interacting with Ginkgo Cloud Lab services. Part of the AlterLab Academic Skills suite./alterlab-labarchiveWrites and validates LabArchives ELN integration code and analyses exported notebooks with no account — reviews labapi/labarchives-py usage, drafts entry HTML and upload plans, and audits a LabArchives notebook export (folder tree or backup) offline for structure and provenance gaps with scripts/analyze_export.py. Reading or writing a live notebook (entries, attachments, backups) and the Protocols.io/Jupyter/REDCap bridges run against the user's own LabArchives account with their keys. Use when automating LabArchives ELN workflows, checking integration code, auditing an exported notebook, programmatically reading/writing entries or attachments, backing up a notebook, or syncing it with Protocols.io, Jupyter, or REDCap. Part of the AlterLab Academic Skills suite./alterlab-latchbioAuthors bioinformatics pipelines with the Latch SDK — @workflow/@task decorators, LatchFile/LatchDir I/O, CPU/GPU task sizing, the Latch Registry, and Nextflow/Snakemake wrapping — and validates them with no account, type-checking the decorators and workflow graph at import, running task functions locally on plain files, and inspecting the no-code UI metadata offline. Registering and running the workflow on LatchBio is an optional step with the user's own latch login and Docker. Use when developing a Latch SDK workflow, sizing task resources, checking a workflow before latch register, working with the Registry, or porting a Nextflow/Snakemake pipeline onto LatchBio. Not for DNAnexus (dxpy/dx CLI) or generic Flyte. Part of the AlterLab Academic Skills suite./alterlab-omeroWorks with microscopy image data via the OMERO Python API (BlitzGateway) — writes and validates the integration code, analyses local OME-TIFF/microscopy pixels, ROIs and channels with tifffile offline, and browses or pulls from public OMERO servers (the IDR JSON API, webgateway and OME-Zarr) with no credentials. Connecting to the user's own OMERO server to read, write or batch-process their images is an optional step with their host, port and login. Use when writing OMERO/BlitzGateway code, analysing microscopy pixels or ROIs, pulling images or datasets, managing annotations, or running high-content screening and microscopy workflows. Part of the AlterLab Academic Skills suite./alterlab-opentronsWrites liquid-handling protocols for Opentrons OT-2 and Flex robots using the official Opentrons Protocol API v2, with full access to v2 features for production-grade, officially compatible protocols. Use when authoring or running protocols specifically for Opentrons hardware. For multi-vendor automation or broader equipment control use pylabrobot instead. Part of the AlterLab Academic Skills suite.2 plugins in one repository ship this exact skill · first indexed Nov 9, 2026
Other plugins' skills for the same job