TheNoyesLab/WGS_SNP_pipelines:latest
$ singularity pull shub://TheNoyesLab/WGS_SNP_pipelines:latest
Singularity Recipe
Bootstrap: docker
From: debian:jessie-slim
#Includes cfsan-snp-pipeline smalt picard varscan tabix bcftools bowtie2 bwa gatk libdeflate samtools
%environment
export LC_ALL=C
%post
apt update \
&& apt install -y --no-install-recommends \
build-essential ca-certificates sudo tcsh\
git make automake autoconf wget gzip unzip sed\
zlib1g-dev curl libbz2-dev locales libncurses5-dev liblzma-dev libcurl4-openssl-dev software-properties-common apt-transport-https\
python3-pip python3-docopt python3-pytest python-dev python3-dev\
libcurl4-openssl-dev libssl-dev zlib1g-dev fonts-texgyre \
gcc g++ gfortran libblas-dev liblapack-dev dos2unix\
r-base-core r-recommended hmmer\
&& rm -rf /var/lib/apt/lists/*
# Not my favorite workaround, but to get cfsan snp to work with samtools, we have to change which libncurses library is used. Problem is anaconda doesn't have the right version of samtools.
sudo ln -s /lib/x86_64-linux-gnu/libncursesw.so.5 /lib/x86_64-linux-gnu/libncursesw.so.6
#Installing Anaconda 2 and Conda 4.5.11
wget -c https://repo.continuum.io/archive/Anaconda2-5.3.0-Linux-x86_64.sh
sh Anaconda2-5.3.0-Linux-x86_64.sh -bfp /usr/local
# add bioconda channels
conda config --add channels defaults
conda config --add channels conda-forge
conda config --add channels bioconda
conda config --add channels cyclus
# install bulk of bioinformatic tools using conda
conda install smalt picard varscan tabix bcftools bowtie2 bwa gatk libdeflate samtools java-jdk snp-pipeline
## Workaround to get 3.8 version of GenomeAnalysisTK.jar
git clone https://github.com/EnriqueDoster/sing_biotools.git
mv sing_biotools/bin/GenomeAnalysisTK.jar /usr/local/bin/GenomeAnalysisTK.jar
#ln -s /usr/local/envs/snp-tools/bin/* /usr/local/bin/
#Still experimenting with how to change $PATH location. Need to remove GATK jar file to work with cfsan snp
#echo 'export PATH=$PATH:/usr/local/envs/snp-tools/bin/' >> $SINGULARITY_ENVIRONMENT
echo 'export CLASSPATH=/usr/local/share/varscan-2.4.4-0/VarScan.jar:$CLASSPATH' >> $SINGULARITY_ENVIRONMENT
echo 'export CLASSPATH=/usr/local/share/picard-2.21.6-0/picard.jar:$CLASSPATH' >> $SINGULARITY_ENVIRONMENT
echo 'export CLASSPATH=/usr/local/bin/GenomeAnalysisTK.jar:$CLASSPATH' >> $SINGULARITY_ENVIRONMENT
# Make sure all the tools have the right permissions to use the tools
chmod -R 777 /usr/local/
%test
which bwa
Collection
- Name: TheNoyesLab/WGS_SNP_pipelines
- License: MIT License
View on Datalad
Metrics
key | value |
---|---|
id | /containers/TheNoyesLab-WGS_SNP_pipelines-latest |
collection name | TheNoyesLab/WGS_SNP_pipelines |
branch | master |
tag | latest |
commit | 9176ac75a70553fb6da8f07b75a9cf974f8b48da |
version (container hash) | 79d793cd1e5761756cc94b0209d25882 |
build date | 2020-11-23T21:20:58.897Z |
size (MB) | 6934.0 |
size (bytes) | 3645857823 |
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.