7386 |
30 Oct 23 |
nicklas |
Bootstrap: library |
7386 |
30 Oct 23 |
nicklas |
From: library/default/rockylinux:9.0 |
7386 |
30 Oct 23 |
nicklas |
3 |
|
7386 |
30 Oct 23 |
nicklas |
%post |
7386 |
30 Oct 23 |
nicklas |
yum -y install glibc-langpack-en libxcrypt-compat |
7386 |
30 Oct 23 |
nicklas |
yum -y install findutils wget unzip tar bzip2 hostname which |
7386 |
30 Oct 23 |
nicklas |
7 |
|
7386 |
30 Oct 23 |
nicklas |
## Minconda 23.1 with Python 3.10 |
7386 |
30 Oct 23 |
nicklas |
mkdir -p /download |
7386 |
30 Oct 23 |
nicklas |
wget https://repo.anaconda.com/miniconda/Miniconda3-py310_23.3.1-0-Linux-x86_64.sh -O /download/miniconda.sh |
7386 |
30 Oct 23 |
nicklas |
11 |
|
7386 |
30 Oct 23 |
nicklas |
bash /download/miniconda.sh -b -p /miniconda |
7386 |
30 Oct 23 |
nicklas |
PATH=/miniconda/bin:$PATH |
7386 |
30 Oct 23 |
nicklas |
conda config --add channels defaults |
7386 |
30 Oct 23 |
nicklas |
conda config --add channels bioconda |
7386 |
30 Oct 23 |
nicklas |
conda config --add channels conda-forge |
7386 |
30 Oct 23 |
nicklas |
17 |
|
7386 |
30 Oct 23 |
nicklas |
## Install mamba |
7386 |
30 Oct 23 |
nicklas |
conda install -y mamba |
7386 |
30 Oct 23 |
nicklas |
20 |
|
7386 |
30 Oct 23 |
nicklas |
mamba install -y \ |
7386 |
30 Oct 23 |
nicklas |
gatk4=4.4.0.0 \ |
7386 |
30 Oct 23 |
nicklas |
bcftools=1.17 \ |
7424 |
14 Nov 23 |
nicklas |
samtools=1.17 \ |
7424 |
14 Nov 23 |
nicklas |
vcfanno=0.3.3 \ |
7424 |
14 Nov 23 |
nicklas |
snpeff=5.2.0 |
7424 |
14 Nov 23 |
nicklas |
27 |
|
7386 |
30 Oct 23 |
nicklas |
28 |
|
7386 |
30 Oct 23 |
nicklas |
## Need ncurses to avoid issues with samtools |
7386 |
30 Oct 23 |
nicklas |
mamba install -y -c conda-forge ncurses=6.3 |
7386 |
30 Oct 23 |
nicklas |
31 |
|
7386 |
30 Oct 23 |
nicklas |
## Cleanup |
7386 |
30 Oct 23 |
nicklas |
rm -rf /download |
7386 |
30 Oct 23 |
nicklas |
conda clean -y --all |
7386 |
30 Oct 23 |
nicklas |
yum clean all |
7386 |
30 Oct 23 |
nicklas |
36 |
|
7386 |
30 Oct 23 |
nicklas |
37 |
|
7386 |
30 Oct 23 |
nicklas |
%environment |
7386 |
30 Oct 23 |
nicklas |
export PATH=/miniconda/bin:$PATH |
7386 |
30 Oct 23 |
nicklas |
export GATK=/miniconda/bin/gatk |
7386 |
30 Oct 23 |
nicklas |
export SAMTOOLS=/miniconda/bin/samtools |
7386 |
30 Oct 23 |
nicklas |
export BCFTOOLS=/miniconda/bin/bcftools |
7424 |
14 Nov 23 |
nicklas |
export VCFANNO=/miniconda/bin/vcfanno |
7424 |
14 Nov 23 |
nicklas |
export SNPEFF=`find /miniconda/share -name snpEff.jar -type f` |
7386 |
30 Oct 23 |
nicklas |
export JAVA=/miniconda/bin/java |
7386 |
30 Oct 23 |
nicklas |
46 |
|
7386 |
30 Oct 23 |
nicklas |
%test |
7386 |
30 Oct 23 |
nicklas |
echo "Host : `hostname 2>&1`" |
7386 |
30 Oct 23 |
nicklas |
echo "OS : `cat /etc/os-release | grep PRETTY_NAME | cut -d '"' -f 2`" |
7386 |
30 Oct 23 |
nicklas |
echo "Samtools : `samtools --version 2>&1 | head -1`" |
7386 |
30 Oct 23 |
nicklas |
echo "Bcftools : `bcftools --version 2>&1 | head -1`" |
7386 |
30 Oct 23 |
nicklas |
echo "Java : `java -version 2>&1 | head -1`" |
7386 |
30 Oct 23 |
nicklas |
echo "GATK : `gatk --version 2> /dev/null | head -1`" |
7424 |
14 Nov 23 |
nicklas |
echo "Vcfanno : `vcfanno 2>&1 | grep vcfanno | head -1`" |
7424 |
14 Nov 23 |
nicklas |
echo "SnpEff : `snpEff ann -h 2>&1 | head -1`" |
7386 |
30 Oct 23 |
nicklas |
echo "Miniconda : `conda --version 2>&1`" |
7386 |
30 Oct 23 |
nicklas |
echo "Mamba : `mamba --version 2>&1 | head -1`" |
7386 |
30 Oct 23 |
nicklas |
echo "Python : `python --version 2>&1`" |
7386 |
30 Oct 23 |
nicklas |
59 |
|
7386 |
30 Oct 23 |
nicklas |
%labels |
7386 |
30 Oct 23 |
nicklas |
PipelineVersion v1 |
7386 |
30 Oct 23 |
nicklas |
Author Nicklas Nordborg |
7386 |
30 Oct 23 |
nicklas |
63 |
|
7386 |
30 Oct 23 |
nicklas |
%help |
7386 |
30 Oct 23 |
nicklas |
A container with the tools that are needed for variant calling |
7386 |
30 Oct 23 |
nicklas |
of paired WGS data with the GATK Mutect2 tool. To display |
7386 |
30 Oct 23 |
nicklas |
versions of installed programs use: |
7386 |
30 Oct 23 |
nicklas |
68 |
|
7386 |
30 Oct 23 |
nicklas |
singularity test <container.sif> |