TomHarrop/honeybee-genotype-pipeline:honeybee_genotype_pipeline_v0.0.12
$ singularity pull shub://TomHarrop/honeybee-genotype-pipeline:honeybee_genotype_pipeline_v0.0.12
Singularity Recipe
Bootstrap: docker
From: ubuntu:20.04
%help
Container for honeybee-genotype-pipeline v0.0.12
https://github.com/tomharrop/honeybee-genotype-pipeline
bbmap 38.73
bwa 0.7.17-r1188
freebayes 1.3.2
python 3.8.2
R 3.6.3 with data.table 1.12.8 and ggplot2 3.2.1
samtools 1.10 and bcftools 1.10.2 using htslib 1.10.2
vcflib 1.0.1
vcftools 0.1.16
%labels
MAINTAINER "Tom Harrop"
%runscript
exec /usr/local/bin/honeybee_genotype_pipeline "$@"
%environment
export PATH="${PATH}:/vcflib/bin:/freebayes/bin:/freebayes/scripts"
export LC_ALL=C
%post
export DEBIAN_FRONTEND=noninteractive
export LC_ALL=C
(
. /etc/os-release
cat << _EOF_ > mirror.txt
deb mirror://mirrors.ubuntu.com/mirrors.txt ${UBUNTU_CODENAME} main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt ${UBUNTU_CODENAME}-updates main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt ${UBUNTU_CODENAME}-backports main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt ${UBUNTU_CODENAME}-security main restricted universe multiverse
_EOF_
mv /etc/apt/sources.list /etc/apt/sources.list.bak
cat mirror.txt /etc/apt/sources.list.bak > /etc/apt/sources.list
)
# packages
apt-get update
apt-get install -y \
bc \
bcftools \
build-essential \
bwa \
cmake \
default-jre-headless \
git \
libbz2-dev \
liblzma-dev \
libtabixpp-dev \
parallel \
python \
python3 \
python3-pip \
r-cran-cairo \
r-cran-data.table \
r-cran-ggplot2 \
samtools \
tabix \
wget \
zlib1g-dev
# bbmap
wget -O "bbmap.tar.gz" \
https://sourceforge.net/projects/bbmap/files/BBMap_38.73.tar.gz
mkdir bbmap
tar -zxf bbmap.tar.gz \
-C bbmap \
--strip-components 1
cp -r bbmap/resources/* /
cp -r bbmap/* /usr/local/bin/
rm -rf bbmap.tar.gz bbmap
# vcflib
git clone \
https://github.com/vcflib/vcflib.git
cd vcflib || exit 1
git checkout tags/v1.0.1
git submodule update --init --recursive
make openmp
cd .. || exit 1
# freebayes
git clone \
https://github.com/ekg/freebayes.git
cd freebayes || exit 1
git checkout tags/v1.3.2
git submodule update --init --recursive
make
# fix freebayes scripts
sed \
's/..\/vcflib\/scripts\/vcffirstheader/vcffirstheader/g' \
scripts/freebayes-parallel \
| sed \
's/..\/vcflib\/bin\/vcfstreamsort/vcfstreamsort/g' \
> scripts/freebayes-parallel.new
rm scripts/freebayes-parallel
mv scripts/freebayes-parallel.new scripts/freebayes-parallel
chmod 755 scripts/freebayes-parallel
cd .. || exit 1
# vcftools
mkdir vcftools
wget \
-O "vcftools.tar.gz" \
--no-check-certificate \
https://github.com/vcftools/vcftools/releases/download/v0.1.16/vcftools-0.1.16.tar.gz
tar -zxf vcftools.tar.gz \
-C vcftools \
--strip-components 2
cd vcftools || exit 1
./configure
make
make install
cd .. || exit 1
rm -rf vcftools vcftools.tar.gz
# install pipeline package
python3 -m pip install --upgrade \
pip \
setuptools \
wheel
# just until the following commit is released
# https://github.com/snakemake/snakemake/commit/fb504ac55f3c6c785881e4514ed1171ea8aab5d3
python3 -m pip install \
git+git://github.com/snakemake/snakemake.git@07f73006dcee1e6ce6c271355fff83705f188de4
python3 -m pip install \
git+git://github.com/tomharrop/honeybee-genotype-pipeline.git@v0.0.12
Collection
- Name: TomHarrop/honeybee-genotype-pipeline
- License: None
View on Datalad
Metrics
key | value |
---|---|
id | /containers/TomHarrop-honeybee-genotype-pipeline-honeybee_genotype_pipeline_v0.0.12 |
collection name | TomHarrop/honeybee-genotype-pipeline |
branch | master |
tag | honeybee_genotype_pipeline_v0.0.12 |
commit | ddd2ac66495709c4da9d8b00355984034b53b240 |
version (container hash) | c8f7ea94ab2da32c52c60bd4f7d3b5ee8232eed3573ccf32970288c84fa794a4 |
build date | 2021-01-27T23:38:53.224Z |
size (MB) | 919.8828125 |
size (bytes) | 964567040 |
SIF | Download URL (please use pull with shub://) |
Datalad URL | View on Datalad |
Singularity Recipe | Singularity Recipe on Datalad |
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.