forked from singularityhub/shpc-registry
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6f01d2c
commit 88c3d90
Showing
3 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |