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)

  1. Write the app (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.
  2. 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"), 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).
  3. Run the entry point locally in dxpy's debug harness. With 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}
Installs
68
GitHub Stars
86
First Seen
Apr 12, 2026