HUB
Sign inSign up

skchronicles/ncbr_sigprofiler

By skchronicles

•Updated over 4 years ago

SigProfiler: https://cancer.sanger.ac.uk/signatures/tools/

Image
0

1.7K

skchronicles/ncbr_sigprofiler repository overview

⁠SigProfiler

Contains reference files for GRCh38 in the image (not ideal). See this issue opened with the author about fixing that in the future.

Dockerfile (v0.1.0)

# SigProfiler Dockerfile
# Using Ubuntu Jammy (22.04 LTS) as base image.
# SigProfiler is a suite of seperate tools with 
# that perform different functions:
# https://cancer.sanger.ac.uk/signatures/tools/
# This docker image contains:
#  • SigProfilerMatrixGenerator:
#    • https://github.com/AlexandrovLab/SigProfilerMatrixGenerator
#  • SigProfilerExtractor:
#    • https://github.com/AlexandrovLab/SigProfilerExtractor
#  • SigProfilerSimulator:
#    • https://github.com/AlexandrovLab/SigProfilerSimulator
#  • SigProfilerPlotting:
#    • https://github.com/AlexandrovLab/SigProfilerPlotting
FROM ubuntu:22.04
LABEL [email protected]

# Overview of Dependencies
#  • python version >= 3:   python3 (3.10.4)
#  • Python3 Package(s):
#    • SigProfilerMatrixGenerator
#    • SigProfilerExtractor
#    • SigProfilerSimulator
#    • SigProfilerPlotting

# Create Container filesystem specific 
# working directory and opt directories
# to avoid collisions with host filesyetem 
RUN mkdir -p /opt2 && mkdir -p /data2
WORKDIR /opt2 

# Set time zone to US east coast 
ENV TZ=America/New_York
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \
    && echo $TZ > /etc/timezone

# This section installs system packages 
# required for your project. If you need 
# extra system packages add them here.
RUN apt-get update \
    && apt-get -y upgrade \
    && DEBIAN_FRONTEND=noninteractive apt-get install -y \
        build-essential \
        curl \
        git \
        locales \
        python3 \
        python3-pip \
        rsync \
        wget \
    && apt-get clean && apt-get purge \
    && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Set the locale
RUN localedef -i en_US -f UTF-8 en_US.UTF-8

# Install Python Packages
RUN ln -s /usr/bin/python3.10 /usr/bin/python
RUN pip3 install --upgrade pip \
	  && pip3 install numpy pandas matplotlib argparse \
      && pip3 install \
            SigProfilerMatrixGenerator \
            SigProfilerExtractor \
            SigProfilerSimulator \
            SigProfilerPlotting

# Install GRCh38 reference files,
# In future more refs maybe addded.
RUN wget http://ngs.sanger.ac.uk/scratch/project/mutographs/SigProf/GRCh38.tar.gz \
    && echo 'from SigProfilerMatrixGenerator import install as genInstall' > /opt2/install.py \
    && echo 'genInstall.install("GRCh38", offline_files_path="/opt2/")' >> /opt2/install.py \
    && python3 /opt2/install.py \
    && rm -f /opt2/GRCh38.tar.gz

# Install PDF unite to manipulate 
# and merge PDF files 
RUN apt-get update \
    && apt-get -y upgrade \
    && DEBIAN_FRONTEND=noninteractive apt-get install -y \
        poppler-utils \
    && apt-get clean && apt-get purge \
    && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Add Dockerfile and export env variables
WORKDIR /data2
ADD Dockerfile /opt2/Dockerfile
RUN chmod -R a+rX /opt2
WORKDIR /data2

⁠Steps for Building Docker Images

Directly below are instructions for building an image using the provided Dockerfile:

# See listing of images on computer
docker image ls

# Build from Dockerfile
docker build --no-cache -f Dockerfile --tag=ncbr_sigprofiler:v0.1.0 .

# Testing, take a peek inside
docker run -ti ncbr_sigprofiler:v0.1.0 /bin/bash

# Updating Tag  before pushing to DockerHub
docker tag ncbr_sigprofiler:v0.1.0 skchronicles/ncbr_sigprofiler:v0.1.0
docker tag ncbr_sigprofiler:v0.1.0 skchronicles/ncbr_sigprofiler         # latest

# Check out new tag(s)
docker image ls

# Push new tagged image to DockerHub
docker push skchronicles/ncbr_sigprofiler:v0.1.0
docker push skchronicles/ncbr_sigprofiler:latest

Scan your image for known vulnerabilities:

docker scan ncbr_sigprofiler:v0.1.0

Please Note: Any references to skchronicles should be replaced your username if you would also like to push the image to a non-org account.

Tag summary

Content type

Image

Digest

sha256:89b59ec4a…

Size

2.8 GB

Last updated

over 4 years ago

docker pull skchronicles/ncbr_sigprofiler