Skip to content

Commit e7baa13

Browse files
committed
Added version 1.15.1
1 parent d509915 commit e7baa13

28 files changed

+541
-0
lines changed

1.15.1/Singularity

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Bootstrap: docker
2+
From: alpine:edge
3+
4+
%labels
5+
MAINTAINER icaoberg
6+
7+
8+
REPOSITORY https://github.com/pscedu/singularity-samtools
9+
COPYRIGHT Copyright © 2021 Pittsburgh Supercomputing Center. All Rights Reserved.
10+
VERSION 1.15.1
11+
12+
%post
13+
apk update # Ensure the package list is up to date
14+
apk add autoconf automake make gcc musl-dev perl bash zlib-dev bzip2-dev xz-dev curl-dev libressl-dev ncurses-dev wget
15+
wget -nc https://github.com/samtools/samtools/releases/download/1.15.1/samtools-1.15.1.tar.bz2
16+
tar -xvf samtools-1.15.1.tar.bz2 && rm -f samtools-1.15.1.tar.bz2
17+
mv samtools-1.15.1 /opt/
18+
cd /opt/samtools-1.15.1
19+
./configure
20+
make
21+
make install

1.15.1/ace2sam

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
VERSION=1.15.1
4+
PACKAGE=samtools
5+
TOOL=ace2sam
6+
DIRECTORY=$(dirname $0)
7+
8+
PERSISTENT_FILE_STORAGE=/ocean
9+
if [ -d $PERSISTENT_FILE_STORAGE ]; then
10+
OPTIONS="-B $PERSISTENT_FILE_STORAGE"
11+
fi
12+
13+
if [ -d /local ]; then
14+
OPTIONS=$OPTIONS" -B /local"
15+
fi
16+
17+
singularity exec $OPTIONS $DIRECTORY/singularity-$PACKAGE-$VERSION.sif $TOOL "$@"

1.15.1/blast2sam.pl

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
VERSION=1.15.1
4+
PACKAGE=samtools
5+
TOOL=blast2sam.pl
6+
DIRECTORY=$(dirname $0)
7+
8+
PERSISTENT_FILE_STORAGE=/ocean
9+
if [ -d $PERSISTENT_FILE_STORAGE ]; then
10+
OPTIONS="-B $PERSISTENT_FILE_STORAGE"
11+
fi
12+
13+
if [ -d /local ]; then
14+
OPTIONS=$OPTIONS" -B /local"
15+
fi
16+
17+
singularity exec $OPTIONS $DIRECTORY/singularity-$PACKAGE-$VERSION.sif $TOOL "$@"

1.15.1/bowtie2sam.pl

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
VERSION=1.15.1
4+
PACKAGE=samtools
5+
TOOL=bowtie2sam.pl
6+
DIRECTORY=$(dirname $0)
7+
8+
PERSISTENT_FILE_STORAGE=/ocean
9+
if [ -d $PERSISTENT_FILE_STORAGE ]; then
10+
OPTIONS="-B $PERSISTENT_FILE_STORAGE"
11+
fi
12+
13+
if [ -d /local ]; then
14+
OPTIONS=$OPTIONS" -B /local"
15+
fi
16+
17+
singularity exec $OPTIONS $DIRECTORY/singularity-$PACKAGE-$VERSION.sif $TOOL "$@"

1.15.1/build.sh

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
# Copyright © 2021 Pittsburgh Supercomputing Center.
4+
# All Rights Reserved.
5+
6+
IMAGE=singularity-samtools-1.15.1.sif
7+
DEFINITION=Singularity
8+
9+
if [ -f $IMAGE ]; then
10+
rm -fv $IMAGE
11+
fi
12+
13+
sudo singularity build $IMAGE $DEFINITION
14+
15+
if [ -f $IMAGE ]; then
16+
exit 0
17+
else
18+
exit 1
19+
fi

1.15.1/export2sam.pl

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
VERSION=1.15.1
4+
PACKAGE=samtools
5+
TOOL=export2sam.pl
6+
DIRECTORY=$(dirname $0)
7+
8+
PERSISTENT_FILE_STORAGE=/ocean
9+
if [ -d $PERSISTENT_FILE_STORAGE ]; then
10+
OPTIONS="-B $PERSISTENT_FILE_STORAGE"
11+
fi
12+
13+
if [ -d /local ]; then
14+
OPTIONS=$OPTIONS" -B /local"
15+
fi
16+
17+
singularity exec $OPTIONS $DIRECTORY/singularity-$PACKAGE-$VERSION.sif $TOOL "$@"

1.15.1/fasta-sanitize.pl

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
VERSION=1.15.1
4+
PACKAGE=samtools
5+
TOOL=fasta-sanitize.pl
6+
DIRECTORY=$(dirname $0)
7+
8+
PERSISTENT_FILE_STORAGE=/ocean
9+
if [ -d $PERSISTENT_FILE_STORAGE ]; then
10+
OPTIONS="-B $PERSISTENT_FILE_STORAGE"
11+
fi
12+
13+
if [ -d /local ]; then
14+
OPTIONS=$OPTIONS" -B /local"
15+
fi
16+
17+
singularity exec $OPTIONS $DIRECTORY/singularity-$PACKAGE-$VERSION.sif $TOOL "$@"

1.15.1/generate_binaries.sh

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#!/bin/bash
2+
3+
# Copyright © 2021 Pittsburgh Supercomputing Center.
4+
# All Rights Reserved.
5+
6+
TOOLS=(ace2sam md5fa samtools.pl
7+
blast2sam.pl md5sum-lite seq_cache_populate.pl
8+
bowtie2sam.pl novo2sam.pl soap2sam.pl
9+
export2sam.pl plot-ampliconstats wgsim
10+
fasta-sanitize.pl plot-bamstats wgsim_eval.pl
11+
interpolate_sam.pl psl2sam.pl zoom2sam.pl
12+
maq2sam-long sam2vcf.pl
13+
maq2sam-short samtools)
14+
15+
cat << EOF > template
16+
#!/bin/bash
17+
18+
VERSION=1.15.1
19+
PACKAGE=samtools
20+
TOOL=TOOL_NAME
21+
DIRECTORY=\$(dirname \$0)
22+
23+
PERSISTENT_FILE_STORAGE=/ocean
24+
if [ -d \$PERSISTENT_FILE_STORAGE ]; then
25+
OPTIONS="-B \$PERSISTENT_FILE_STORAGE"
26+
fi
27+
28+
if [ -d /local ]; then
29+
OPTIONS=\$OPTIONS" -B /local"
30+
fi
31+
32+
singularity exec \$OPTIONS \$DIRECTORY/singularity-\$PACKAGE-\$VERSION.sif \$TOOL "\$@"
33+
EOF
34+
35+
for TOOL in "${TOOLS[@]}"
36+
do
37+
echo "* "$TOOL
38+
cp template $TOOL
39+
sed -i "s/TOOL_NAME/$TOOL/g" $TOOL
40+
chmod +x $TOOL
41+
git add $TOOL
42+
done
43+
44+
rm -f template

1.15.1/interpolate_sam.pl

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
VERSION=1.15.1
4+
PACKAGE=samtools
5+
TOOL=interpolate_sam.pl
6+
DIRECTORY=$(dirname $0)
7+
8+
PERSISTENT_FILE_STORAGE=/ocean
9+
if [ -d $PERSISTENT_FILE_STORAGE ]; then
10+
OPTIONS="-B $PERSISTENT_FILE_STORAGE"
11+
fi
12+
13+
if [ -d /local ]; then
14+
OPTIONS=$OPTIONS" -B /local"
15+
fi
16+
17+
singularity exec $OPTIONS $DIRECTORY/singularity-$PACKAGE-$VERSION.sif $TOOL "$@"

1.15.1/maq2sam-long

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
VERSION=1.15.1
4+
PACKAGE=samtools
5+
TOOL=maq2sam-long
6+
DIRECTORY=$(dirname $0)
7+
8+
PERSISTENT_FILE_STORAGE=/ocean
9+
if [ -d $PERSISTENT_FILE_STORAGE ]; then
10+
OPTIONS="-B $PERSISTENT_FILE_STORAGE"
11+
fi
12+
13+
if [ -d /local ]; then
14+
OPTIONS=$OPTIONS" -B /local"
15+
fi
16+
17+
singularity exec $OPTIONS $DIRECTORY/singularity-$PACKAGE-$VERSION.sif $TOOL "$@"

1.15.1/maq2sam-short

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
VERSION=1.15.1
4+
PACKAGE=samtools
5+
TOOL=maq2sam-short
6+
DIRECTORY=$(dirname $0)
7+
8+
PERSISTENT_FILE_STORAGE=/ocean
9+
if [ -d $PERSISTENT_FILE_STORAGE ]; then
10+
OPTIONS="-B $PERSISTENT_FILE_STORAGE"
11+
fi
12+
13+
if [ -d /local ]; then
14+
OPTIONS=$OPTIONS" -B /local"
15+
fi
16+
17+
singularity exec $OPTIONS $DIRECTORY/singularity-$PACKAGE-$VERSION.sif $TOOL "$@"

1.15.1/md5fa

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
VERSION=1.15.1
4+
PACKAGE=samtools
5+
TOOL=md5fa
6+
DIRECTORY=$(dirname $0)
7+
8+
PERSISTENT_FILE_STORAGE=/ocean
9+
if [ -d $PERSISTENT_FILE_STORAGE ]; then
10+
OPTIONS="-B $PERSISTENT_FILE_STORAGE"
11+
fi
12+
13+
if [ -d /local ]; then
14+
OPTIONS=$OPTIONS" -B /local"
15+
fi
16+
17+
singularity exec $OPTIONS $DIRECTORY/singularity-$PACKAGE-$VERSION.sif $TOOL "$@"

1.15.1/md5sum-lite

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
VERSION=1.15.1
4+
PACKAGE=samtools
5+
TOOL=md5sum-lite
6+
DIRECTORY=$(dirname $0)
7+
8+
PERSISTENT_FILE_STORAGE=/ocean
9+
if [ -d $PERSISTENT_FILE_STORAGE ]; then
10+
OPTIONS="-B $PERSISTENT_FILE_STORAGE"
11+
fi
12+
13+
if [ -d /local ]; then
14+
OPTIONS=$OPTIONS" -B /local"
15+
fi
16+
17+
singularity exec $OPTIONS $DIRECTORY/singularity-$PACKAGE-$VERSION.sif $TOOL "$@"

1.15.1/modulefile.lua

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
--
2+
-- samtools 1.15.1 modulefile
3+
--
4+
-- "URL: https://www.psc.edu/resources/software"
5+
-- "Category: Biological Sciences"
6+
-- "Description: Samtools is a suite of programs for interacting with high-throughput sequencing data."
7+
-- "Keywords: singularity bioinformatics"
8+
9+
whatis("Name: samtools")
10+
whatis("Version: 1.15.1")
11+
whatis("Category: Biological Sciences")
12+
whatis("URL: https://www.psc.edu/resources/software")
13+
whatis("Description: samtools is a suite of programs for interacting with high-throughput sequencing data.")
14+
15+
help([[
16+
samtools is a suite of programs for interacting with high-throughput sequencing data.
17+
18+
To load the module type
19+
20+
> module load samtools/1.15.1
21+
22+
To unload the module type
23+
24+
> module unload samtools/1.15.1
25+
26+
Documentation
27+
-------------
28+
For help, type
29+
30+
> samtools --help
31+
32+
Tools included in this module are
33+
34+
* ace2sam
35+
* md5fa
36+
* samtools.pl
37+
* blast2sam.pl
38+
* md5sum-lite
39+
* seq_cache_populate.pl
40+
* bowtie2sam.pl
41+
* novo2sam.pl
42+
* soap2sam.pl
43+
* export2sam.pl
44+
* plot-ampliconstats
45+
* wgsim
46+
* fasta-sanitize.pl
47+
* plot-bamstats
48+
* wgsim_eval.pl
49+
* interpolate_sam.pl
50+
* psl2sam.pl
51+
* zoom2sam.pl
52+
* maq2sam-long
53+
* sam2vcf.pl
54+
* maq2sam-short
55+
* samtools
56+
]])
57+
58+
local package = "samtools"
59+
local version = "1.15.1"
60+
local base = pathJoin("/opt/packages",package,version)
61+
prepend_path("PATH", base)

1.15.1/novo2sam.pl

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
VERSION=1.15.1
4+
PACKAGE=samtools
5+
TOOL=novo2sam.pl
6+
DIRECTORY=$(dirname $0)
7+
8+
PERSISTENT_FILE_STORAGE=/ocean
9+
if [ -d $PERSISTENT_FILE_STORAGE ]; then
10+
OPTIONS="-B $PERSISTENT_FILE_STORAGE"
11+
fi
12+
13+
if [ -d /local ]; then
14+
OPTIONS=$OPTIONS" -B /local"
15+
fi
16+
17+
singularity exec $OPTIONS $DIRECTORY/singularity-$PACKAGE-$VERSION.sif $TOOL "$@"

1.15.1/plot-ampliconstats

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
VERSION=1.15.1
4+
PACKAGE=samtools
5+
TOOL=plot-ampliconstats
6+
DIRECTORY=$(dirname $0)
7+
8+
PERSISTENT_FILE_STORAGE=/ocean
9+
if [ -d $PERSISTENT_FILE_STORAGE ]; then
10+
OPTIONS="-B $PERSISTENT_FILE_STORAGE"
11+
fi
12+
13+
if [ -d /local ]; then
14+
OPTIONS=$OPTIONS" -B /local"
15+
fi
16+
17+
singularity exec $OPTIONS $DIRECTORY/singularity-$PACKAGE-$VERSION.sif $TOOL "$@"

1.15.1/plot-bamstats

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
VERSION=1.15.1
4+
PACKAGE=samtools
5+
TOOL=plot-bamstats
6+
DIRECTORY=$(dirname $0)
7+
8+
PERSISTENT_FILE_STORAGE=/ocean
9+
if [ -d $PERSISTENT_FILE_STORAGE ]; then
10+
OPTIONS="-B $PERSISTENT_FILE_STORAGE"
11+
fi
12+
13+
if [ -d /local ]; then
14+
OPTIONS=$OPTIONS" -B /local"
15+
fi
16+
17+
singularity exec $OPTIONS $DIRECTORY/singularity-$PACKAGE-$VERSION.sif $TOOL "$@"

0 commit comments

Comments
 (0)