2021-08-10 16:51:12 +00:00
|
|
|
Bootstrap: library
|
|
|
|
From: default/alpine:3.14.0
|
|
|
|
|
|
|
|
%post
|
|
|
|
# Declare version variable
|
|
|
|
export SNIFFLES_VERSION='1.0.12'
|
|
|
|
export SNIFFLES_TAG="v${SNIFFLES_VERSION}b"
|
|
|
|
|
|
|
|
# Install build dependencies
|
|
|
|
apk add --no-cache --virtual .build-deps \
|
|
|
|
git cmake make gcc g++ zlib-dev
|
|
|
|
|
|
|
|
# Install real dependencies
|
|
|
|
apk add --no-cache bash
|
|
|
|
|
|
|
|
# Get Sniffles
|
2021-08-10 18:21:02 +00:00
|
|
|
cd /opt || exit 1
|
2021-08-10 16:51:12 +00:00
|
|
|
git clone https://github.com/fritzsedlazeck/Sniffles.git
|
|
|
|
cd Sniffles || exit 1
|
|
|
|
git checkout $SNIFFLES_TAG
|
|
|
|
|
|
|
|
# Build Sniffles
|
|
|
|
mkdir build && cd build || exit 1
|
|
|
|
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local
|
|
|
|
make
|
|
|
|
|
2021-08-10 18:21:02 +00:00
|
|
|
# Add Sniffles to PATH
|
|
|
|
export PATH=/opt/Sniffles/bin/sniffles-core-$SNIFFLES_VERSION:$PATH
|
2021-08-10 16:51:12 +00:00
|
|
|
|
|
|
|
# Cleanup packages
|
|
|
|
apk del --no-cache .build-deps
|
|
|
|
|
2021-08-10 18:21:02 +00:00
|
|
|
%environment
|
|
|
|
export SNIFFLES_VERSION='1.0.12'
|
|
|
|
export SNIFFLES_TAG="v${SNIFFLES_VERSION}b"
|
|
|
|
export PATH=/opt/Sniffles/bin/sniffles-core-$SNIFFLES_VERSION:$PATH
|
|
|
|
|
2021-08-10 16:51:12 +00:00
|
|
|
%test
|
|
|
|
command -v bash
|
|
|
|
command -v ps
|
|
|
|
command -v sniffles
|
|
|
|
command -v sniffles-debug
|
|
|
|
|
|
|
|
%runscript
|
|
|
|
sniffles "$@"
|
|
|
|
|
|
|
|
%labels
|
|
|
|
Author 25492070+MillironX@users.noreply.github.com
|
|
|
|
SoftwareVersion v1.0.12b
|
2021-08-10 18:21:02 +00:00
|
|
|
SingularityDefinitionVersion 2
|
2021-08-10 16:51:12 +00:00
|
|
|
|
|
|
|
%help
|
|
|
|
Sniffles
|
|
|
|
========
|
|
|
|
|
|
|
|
Sniffles is a structural variation caller using third generation sequencing
|
|
|
|
(PacBio or Oxford Nanopore). It detects all types of SVs (10bp+) using
|
|
|
|
evidence from split-read alignments, high-mismatch regions, and coverage
|
|
|
|
analysis.
|
|
|
|
|
|
|
|
For more help, see
|
|
|
|
- <https://github.com/fritzsedlazeck/Sniffles>
|
|
|
|
- <https://github.com/MillironX/singularity-builds>
|