TomHarrop/csdemux:csdemux_v0.0.4

$ singularity pull shub://TomHarrop/csdemux:csdemux_v0.0.4

Singularity Recipe

Bootstrap: docker
From: bioconductor/bioconductor_docker:bioc2020.1

%help
    Container for csdemux v0.0.4
    https://github.com/tomharrop/csdemux

    bbmap 38.73
    python 3.7.5
    R 4.0.0 with data.table 1.13.0 and ggplot2 3.3.2
    
%labels
    MAINTAINER "Tom Harrop"

%runscript
    exec /usr/local/bin/csdemux "$@"

%environment
    export LC_ALL=C

%post
    export DEBIAN_FRONTEND=noninteractive
    # set up apt
    apt-get clean
    rm -r /var/lib/apt/lists/*
    apt-get update
    apt-get upgrade -y --fix-missing
    (
        . /etc/os-release
        cat << _EOF_ > mirror.txt
deb mirror://mirrors.ubuntu.com/mirrors.txt ${UBUNTU_CODENAME} main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt ${UBUNTU_CODENAME}-updates main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt ${UBUNTU_CODENAME}-backports main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt ${UBUNTU_CODENAME}-security main restricted universe multiverse
deb-src mirror://mirrors.ubuntu.com/mirrors.txt ${UBUNTU_CODENAME} main restricted universe multiverse

_EOF_
        mv /etc/apt/sources.list /etc/apt/sources.list.bak
        cat mirror.txt /etc/apt/sources.list.bak > /etc/apt/sources.list
    )

    # packages
    apt-get update
    apt-get install -y \
        --no-install-recommends \
        build-essential \
        default-jre-headless \
        git \
        libpython3.7-dev \
        pigz \
        python3-pip \
        python3.7 \
        python3.7-dev \
        python3.7-venv \
        wget

    # re-build R packages
    Rscript -e "options(Ncpus=8); \
        BiocManager::install(c( \
            'bit64', \
            'Cairo', \
            'data.table', \
            'future.apply', \
            'ggplot2', \
            'scales', \
            'viridis' \
        ))"

    # bbmap
    wget -O "bbmap.tar.gz" \
        https://sourceforge.net/projects/bbmap/files/BBMap_38.73.tar.gz
    mkdir bbmap
    tar -zxf bbmap.tar.gz \
        -C bbmap \
        --strip-components 1
    cp -r bbmap/resources/* /
    cp -r bbmap/* /usr/local/bin/
    rm -rf bbmap.tar.gz bbmap

    # install pipeline package
    # have to install python3.7 via apt and then upgrade pip, because
    # bioconductor is using ubuntu18.04 which ships with python3.6
    /usr/bin/python3.7 -m pip \
        install --upgrade pip
    /usr/bin/python3.7 -m pip \
        install --upgrade setuptools wheel
    /usr/bin/python3.7 -m pip \
        install \
        git+git://github.com/tomharrop/csdemux.git@v0.0.4

Collection


View on Datalad

Metrics

key value
id /containers/TomHarrop-csdemux-csdemux_v0.0.4
collection name TomHarrop/csdemux
branch master
tag csdemux_v0.0.4
commit 0f97b8b3083a94a096a61171ba61334d88765cfd
version (container hash) a81bbe96cdba270f0c2c00ac74154c6439bf8064beecaf487bfdba557dac6803
build date 2020-12-10T20:46:14.476Z
size (MB) 1382.2890625
size (bytes) 1449435136
SIF Download URL (please use pull with shub://)
Datalad URL View on Datalad
Singularity Recipe Singularity Recipe on Datalad
We cannot guarantee that all containers will still exist on GitHub.