7081 |
28 Mar 23 |
nicklas |
Bootstrap: library |
7081 |
28 Mar 23 |
nicklas |
From: library/default/rockylinux:9.0 |
7081 |
28 Mar 23 |
nicklas |
3 |
|
7081 |
28 Mar 23 |
nicklas |
%post |
7081 |
28 Mar 23 |
nicklas |
yum -y install glibc-langpack-en libxcrypt-compat |
7103 |
11 Apr 23 |
nicklas |
yum -y install findutils wget unzip tar bzip2 hostname which |
7081 |
28 Mar 23 |
nicklas |
7 |
|
7081 |
28 Mar 23 |
nicklas |
## Minconda 23.1 with Python 3.10 |
7081 |
28 Mar 23 |
nicklas |
mkdir -p /download |
7081 |
28 Mar 23 |
nicklas |
wget https://repo.anaconda.com/miniconda/Miniconda3-py310_23.1.0-1-Linux-x86_64.sh -O /download/miniconda.sh |
7081 |
28 Mar 23 |
nicklas |
11 |
|
7081 |
28 Mar 23 |
nicklas |
bash /download/miniconda.sh -b -p /miniconda |
7081 |
28 Mar 23 |
nicklas |
PATH=/miniconda/bin:$PATH |
7081 |
28 Mar 23 |
nicklas |
conda config --add channels defaults |
7081 |
28 Mar 23 |
nicklas |
conda config --add channels bioconda |
7081 |
28 Mar 23 |
nicklas |
conda config --add channels conda-forge |
7081 |
28 Mar 23 |
nicklas |
17 |
|
7081 |
28 Mar 23 |
nicklas |
conda install -y \ |
7081 |
28 Mar 23 |
nicklas |
samtools=1.16.1 \ |
7090 |
04 Apr 23 |
nicklas |
bwa-mem2=2.2.1 \ |
7183 |
17 May 23 |
nicklas |
bwa=0.7.17 \ |
7103 |
11 Apr 23 |
nicklas |
picard=3.0.0 \ |
7090 |
04 Apr 23 |
nicklas |
gatk4=4.4.0.0 |
7081 |
28 Mar 23 |
nicklas |
24 |
|
7081 |
28 Mar 23 |
nicklas |
## Need ncurses to avoid issues with samtools |
7081 |
28 Mar 23 |
nicklas |
conda install -y -c conda-forge ncurses=6.3 |
7081 |
28 Mar 23 |
nicklas |
27 |
|
7090 |
04 Apr 23 |
nicklas |
## Cleanup |
7090 |
04 Apr 23 |
nicklas |
rm -rf /download |
7090 |
04 Apr 23 |
nicklas |
conda clean -y --all |
7090 |
04 Apr 23 |
nicklas |
yum clean all |
7090 |
04 Apr 23 |
nicklas |
32 |
|
7090 |
04 Apr 23 |
nicklas |
33 |
|
7081 |
28 Mar 23 |
nicklas |
%environment |
7081 |
28 Mar 23 |
nicklas |
export PATH=/miniconda/bin:$PATH |
7081 |
28 Mar 23 |
nicklas |
export SAMTOOLS=/miniconda/bin/samtools |
7183 |
17 May 23 |
nicklas |
export BWA=/miniconda/bin/bwa |
7081 |
28 Mar 23 |
nicklas |
export BWA_MEM2=/miniconda/bin/bwa-mem2 |
7090 |
04 Apr 23 |
nicklas |
export JAVA=/miniconda/bin/java |
7090 |
04 Apr 23 |
nicklas |
export PICARD=`find /miniconda/share -name picard.jar -type f` |
7090 |
04 Apr 23 |
nicklas |
export GATK=`find /miniconda/share -name gatk*.jar -type f` |
7081 |
28 Mar 23 |
nicklas |
42 |
|
7081 |
28 Mar 23 |
nicklas |
%test |
7081 |
28 Mar 23 |
nicklas |
echo "Host : `hostname 2>&1`" |
7081 |
28 Mar 23 |
nicklas |
echo "OS : `cat /etc/os-release | grep PRETTY_NAME | cut -d '"' -f 2`" |
7183 |
17 May 23 |
nicklas |
echo "Bwa : `bwa 2>&1 | grep Version`" |
7081 |
28 Mar 23 |
nicklas |
echo "Bwa-mem2 : `bwa-mem2 version 2> /dev/null | head -1`" |
7081 |
28 Mar 23 |
nicklas |
echo "Samtools : `samtools --version 2>&1 | head -1`" |
7090 |
04 Apr 23 |
nicklas |
echo "Java : `java -version 2>&1 | head -1`" |
7090 |
04 Apr 23 |
nicklas |
echo "Picard : `java -jar ${PICARD} MarkDuplicates --version 2>&1`" |
7090 |
04 Apr 23 |
nicklas |
echo "GATK : `gatk --version 2> /dev/null | head -1`" |
7081 |
28 Mar 23 |
nicklas |
echo "Miniconda : `conda --version 2>&1`" |
7081 |
28 Mar 23 |
nicklas |
echo "Python : `python --version 2>&1`" |
7103 |
11 Apr 23 |
nicklas |
echo "R : `R --version 2>&1 | head -1`" |
7081 |
28 Mar 23 |
nicklas |
55 |
|
7081 |
28 Mar 23 |
nicklas |
%labels |
7081 |
28 Mar 23 |
nicklas |
PipelineVersion v1 |
7081 |
28 Mar 23 |
nicklas |
Author Nicklas Nordborg |
7081 |
28 Mar 23 |
nicklas |
59 |
|
7081 |
28 Mar 23 |
nicklas |
%help |
7081 |
28 Mar 23 |
nicklas |
A container with the tools that are needed to align DNA-seq |
7183 |
17 May 23 |
nicklas |
FASTQ files with bwa and bwa-mem2. To display versions of installed |
7081 |
28 Mar 23 |
nicklas |
programs use: |
7081 |
28 Mar 23 |
nicklas |
64 |
|
7081 |
28 Mar 23 |
nicklas |
singularity test <container.sif> |