6680 |
20 Apr 22 |
nicklas |
Bootstrap: library |
6680 |
20 Apr 22 |
nicklas |
From: library/default/rockylinux:8.4 |
6680 |
20 Apr 22 |
nicklas |
3 |
|
6680 |
20 Apr 22 |
nicklas |
%post |
6686 |
21 Apr 22 |
nicklas |
yum install -y wget unzip tar bzip2 hostname |
6680 |
20 Apr 22 |
nicklas |
mkdir -p /download |
6680 |
20 Apr 22 |
nicklas |
7 |
|
6680 |
20 Apr 22 |
nicklas |
## Minconda 4.11 with Python 3.7 |
6680 |
20 Apr 22 |
nicklas |
wget https://repo.anaconda.com/miniconda/Miniconda3-py37_4.11.0-Linux-x86_64.sh -O /download/miniconda.sh |
6680 |
20 Apr 22 |
nicklas |
bash /download/miniconda.sh -b -p /miniconda |
6680 |
20 Apr 22 |
nicklas |
PATH=/miniconda/bin:$PATH |
6680 |
20 Apr 22 |
nicklas |
conda config --add channels defaults |
6680 |
20 Apr 22 |
nicklas |
conda config --add channels bioconda |
6680 |
20 Apr 22 |
nicklas |
conda config --add channels conda-forge |
6680 |
20 Apr 22 |
nicklas |
15 |
|
6680 |
20 Apr 22 |
nicklas |
## GATK, SnpEff, Vcfanno, Samtools |
6680 |
20 Apr 22 |
nicklas |
conda install -y \ |
6680 |
20 Apr 22 |
nicklas |
gatk4=4.1.8.1 \ |
6680 |
20 Apr 22 |
nicklas |
vcfanno=0.3.2 \ |
6680 |
20 Apr 22 |
nicklas |
snpeff=4.3.1t \ |
6680 |
20 Apr 22 |
nicklas |
samtools=1.9 |
6680 |
20 Apr 22 |
nicklas |
22 |
|
6680 |
20 Apr 22 |
nicklas |
23 |
|
6680 |
20 Apr 22 |
nicklas |
## Cleanup |
6680 |
20 Apr 22 |
nicklas |
rm -rf /download |
6680 |
20 Apr 22 |
nicklas |
conda clean -y --all |
6680 |
20 Apr 22 |
nicklas |
yum clean all |
6680 |
20 Apr 22 |
nicklas |
28 |
|
6680 |
20 Apr 22 |
nicklas |
29 |
|
6680 |
20 Apr 22 |
nicklas |
%environment |
6680 |
20 Apr 22 |
nicklas |
export PATH=/miniconda/bin:$PATH |
6680 |
20 Apr 22 |
nicklas |
export JAVA=/miniconda/bin/java |
6685 |
20 Apr 22 |
nicklas |
export GATK=`find /miniconda/share -name gatk*.jar -type f` |
6680 |
20 Apr 22 |
nicklas |
export VCFANNO=/miniconda/bin/vcfanno |
6680 |
20 Apr 22 |
nicklas |
export SNPEFF=`find /miniconda/share -name snpEff.jar -type f` |
6680 |
20 Apr 22 |
nicklas |
36 |
|
6680 |
20 Apr 22 |
nicklas |
37 |
|
6680 |
20 Apr 22 |
nicklas |
%test |
6686 |
21 Apr 22 |
nicklas |
echo "Host : `hostname 2>&1`" |
6686 |
21 Apr 22 |
nicklas |
echo "OS : `cat /etc/os-release | grep PRETTY_NAME | cut -d '"' -f 2`" |
6686 |
21 Apr 22 |
nicklas |
echo "Java : `java -version 2>&1 | head -1`" |
6686 |
21 Apr 22 |
nicklas |
echo "GATK : `java -jar ${GATK} --version 2>&1 | head -1`" |
6686 |
21 Apr 22 |
nicklas |
echo "Vcfanno : `vcfanno 2>&1 | grep vcfanno | head -1`" |
6686 |
21 Apr 22 |
nicklas |
echo "SnpEff : `snpEff -version 2>&1`" |
6686 |
21 Apr 22 |
nicklas |
echo "Samtools : `samtools --version 2>&1 | head -1`" |
6686 |
21 Apr 22 |
nicklas |
echo "Miniconda : `conda --version 2>&1`" |
6686 |
21 Apr 22 |
nicklas |
echo "Python : `python --version 2>&1`" |
6680 |
20 Apr 22 |
nicklas |
48 |
|
6680 |
20 Apr 22 |
nicklas |
49 |
|
6680 |
20 Apr 22 |
nicklas |
%labels |
6680 |
20 Apr 22 |
nicklas |
PipelineVersion v1 |
6680 |
20 Apr 22 |
nicklas |
Author Nicklas Nordborg |
6680 |
20 Apr 22 |
nicklas |
53 |
|
6680 |
20 Apr 22 |
nicklas |
%help |
6680 |
20 Apr 22 |
nicklas |
A container with the tools that are needed for the targeted |
6680 |
20 Apr 22 |
nicklas |
genotyping. To display versions of installed programs use: |
6680 |
20 Apr 22 |
nicklas |
57 |
|
6680 |
20 Apr 22 |
nicklas |
singularity test <container.sif> |