alterlab-dnanexus
Installation
SKILL.md
DNAnexus Integration
Overview
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.
Keyless Path (default — no DNAnexus account)
- Write the app (
dxapp.json+src/<name>.pyor.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. - Lint the spec offline:
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"), thatrunSpec.fileexists, and thatmain()'s parameters and returned keys matchinputSpec/outputSpec.dx build --dry-runis not a keyless check: without a login it stops withResolutionError: Cannot resolve "."(verified 2026-10-22). - Run the entry point locally in dxpy's debug harness. With
DX_JOB_IDunset,dxpy.run()calls the entry point named byDX_TEST_FUNCTION(defaultmain) with the inputs in./job_input.jsonand 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}