6806 |
24 Aug 22 |
nicklas |
Bootstrap: library |
6806 |
24 Aug 22 |
nicklas |
From: library/default/rockylinux:9.0 |
6806 |
24 Aug 22 |
nicklas |
3 |
|
6806 |
24 Aug 22 |
nicklas |
%post |
6806 |
24 Aug 22 |
nicklas |
yum -y install glibc-langpack-en libxcrypt-compat |
6806 |
24 Aug 22 |
nicklas |
yum -y install findutils wget unzip tar bzip2 hostname |
6806 |
24 Aug 22 |
nicklas |
7 |
|
6806 |
24 Aug 22 |
nicklas |
## Minconda 4.12 with Python 3.9 |
6806 |
24 Aug 22 |
nicklas |
mkdir -p /download |
6806 |
24 Aug 22 |
nicklas |
wget https://repo.anaconda.com/miniconda/Miniconda3-py39_4.12.0-Linux-x86_64.sh -O /download/miniconda.sh |
6806 |
24 Aug 22 |
nicklas |
11 |
|
6806 |
24 Aug 22 |
nicklas |
bash /download/miniconda.sh -b -p /miniconda |
6806 |
24 Aug 22 |
nicklas |
PATH=/miniconda/bin:$PATH |
6806 |
24 Aug 22 |
nicklas |
conda config --add channels defaults |
6806 |
24 Aug 22 |
nicklas |
conda config --add channels bioconda |
6806 |
24 Aug 22 |
nicklas |
conda config --add channels conda-forge |
6806 |
24 Aug 22 |
nicklas |
17 |
|
6806 |
24 Aug 22 |
nicklas |
## Samtools, Bowtie2, Hisat2, Picard and GATK |
6806 |
24 Aug 22 |
nicklas |
conda install -y \ |
6806 |
24 Aug 22 |
nicklas |
samtools=1.15.1 \ |
6806 |
24 Aug 22 |
nicklas |
bowtie2=2.4.5 \ |
6806 |
24 Aug 22 |
nicklas |
hisat2=2.2.1 \ |
6806 |
24 Aug 22 |
nicklas |
picard-slim=2.27.4 \ |
6806 |
24 Aug 22 |
nicklas |
gatk4=4.2.6.1 |
6806 |
24 Aug 22 |
nicklas |
25 |
|
6806 |
24 Aug 22 |
nicklas |
## Need ncurses to avoid issues with samtools |
6806 |
24 Aug 22 |
nicklas |
conda install -y -c conda-forge ncurses=6.3 |
6806 |
24 Aug 22 |
nicklas |
28 |
|
6806 |
24 Aug 22 |
nicklas |
## Cleanup |
6806 |
24 Aug 22 |
nicklas |
rm -rf /download |
6806 |
24 Aug 22 |
nicklas |
conda clean -y --all |
6806 |
24 Aug 22 |
nicklas |
yum clean all |
6806 |
24 Aug 22 |
nicklas |
33 |
|
6806 |
24 Aug 22 |
nicklas |
%environment |
6806 |
24 Aug 22 |
nicklas |
export PATH=/miniconda/bin:$PATH |
6806 |
24 Aug 22 |
nicklas |
export JAVA=/miniconda/bin/java |
6806 |
24 Aug 22 |
nicklas |
export BOWTIE=/miniconda/bin/bowtie2 |
6806 |
24 Aug 22 |
nicklas |
export HISAT=/miniconda/bin/hisat2 |
6806 |
24 Aug 22 |
nicklas |
export SAMTOOLS=/miniconda/bin/samtools |
6806 |
24 Aug 22 |
nicklas |
export PICARD=`find /miniconda/share -name picard.jar -type f` |
6806 |
24 Aug 22 |
nicklas |
export GATK=`find /miniconda/share -name gatk*.jar -type f` |
6806 |
24 Aug 22 |
nicklas |
42 |
|
6806 |
24 Aug 22 |
nicklas |
%test |
6806 |
24 Aug 22 |
nicklas |
echo "Host : `hostname 2>&1`" |
6806 |
24 Aug 22 |
nicklas |
echo "OS : `cat /etc/os-release | grep PRETTY_NAME | cut -d '"' -f 2`" |
6806 |
24 Aug 22 |
nicklas |
echo "Hisat : `hisat2 --version 2>&1 | head -1`" |
6806 |
24 Aug 22 |
nicklas |
echo "Bowtie : `bowtie2 --version 2>&1 | head -1`" |
6806 |
24 Aug 22 |
nicklas |
echo "Java : `java -version 2>&1 | head -1`" |
6806 |
24 Aug 22 |
nicklas |
echo "Picard : `java -jar ${PICARD} MarkDuplicates --version 2>&1`" |
6806 |
24 Aug 22 |
nicklas |
echo "GATK : `gatk --version 2> /dev/null | head -1`" |
6806 |
24 Aug 22 |
nicklas |
echo "Samtools : `samtools --version 2>&1 | head -1`" |
6806 |
24 Aug 22 |
nicklas |
echo "Miniconda : `conda --version 2>&1`" |
6806 |
24 Aug 22 |
nicklas |
echo "Python : `python --version 2>&1`" |
6806 |
24 Aug 22 |
nicklas |
54 |
|
6806 |
24 Aug 22 |
nicklas |
%labels |
6806 |
24 Aug 22 |
nicklas |
PipelineVersion 2023.v1 |
6806 |
24 Aug 22 |
nicklas |
Author Nicklas Nordborg |
6806 |
24 Aug 22 |
nicklas |
58 |
|
6806 |
24 Aug 22 |
nicklas |
%help |
6806 |
24 Aug 22 |
nicklas |
A container with the tools that are needed to align RNA-seq |
6806 |
24 Aug 22 |
nicklas |
FASTQ files with Hisat. To display versions of installed |
6806 |
24 Aug 22 |
nicklas |
programs use: |
6806 |
24 Aug 22 |
nicklas |
63 |
|
6806 |
24 Aug 22 |
nicklas |
singularity test <container.sif> |