Skip to content

Commit

Permalink
Add DRAGEN Array CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
jterstriep committed Jan 3, 2025
1 parent 6f01d2c commit 88c3d90
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
17 changes: 17 additions & 0 deletions dragena/container.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# fake path for locally built container
path: dragena.sif
url: https://help.dragenarray.illumina.com/
maintainer: "@jterstriep"

description: "DRAGEN (Dynamic Read Analysis for GENomics) Array secondary analysis is a powerful bioinformatics software for Illumina Infinium array-based assays. DRAGEN Array uses cutting-edge data analysis tools to provide accurate, comprehensive, and highly efficient secondary analysis to maximize genomic insights and meet your research needs across multiple applications."


# fake hashes for locally built container
latest:
"1.1.0": sha256:caae00cea035b1aba1a9a38e39cecf2ecc7f6ba443187204b405302645e7cac1
tags:
"1.1.0": sha256:caae00cea035b1aba1a9a38e39cecf2ecc7f6ba443187204b405302645e7cac1

aliases:
dragena: /opt/dragena/dragena
createdump: /opt/dragena/createdump
29 changes: 29 additions & 0 deletions dragena/dragena.def
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Bootstrap: docker
From: ubuntu:22.04

%files
${DRAGENA_TAR} /dragena.tar.gz

%post
if [ ! -f /dragena.tar.gz ]; then
echo Tar file not found, set \$DRAGENA_TAR prior to singularity build
exit 1
fi

apt-get update && apt-get install -y libicu70

cd /opt
TOPDIR=$(tar tvzf /dragena.tar.gz | head -1 | cut -d' ' -f6)
tar -xzf /dragena.tar.gz --strip-components=1 $TOPDIR

rm /dragena.tar.gz


%environment
export PATH=/opt/dragena:$PATH

%runscript
/opt/dragena/dragena

%labels
Author: Jeff Terstriep
12 changes: 12 additions & 0 deletions dragena/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
The dragena tar file must be specified using the environmental variable DRAGENA_TAR
during the singularity build command.

```bash
export DRAGENA_TAR=/usr/apps/install_files/dragena-linux-x64-DAv1.1.0-rc3.tar.gz
singularity build dragena.sif dragena.def
```

- The def file untars the files into /opt/dragena
- /opt/dragena is added to the PATH.
- The executable is located at /opt/dragena/dragena.
- The top level directory from the tar file is stripped.

0 comments on commit 88c3d90

Please sign in to comment.