Sign inSign up

skchronicles/samplot

By skchronicles

•Updated almost 4 years ago

samplot (v.1.3.1): https://github.com/ryanlayer/samplot

Image
0

10K+

skchronicles/samplot repository overview

⁠Samplot (v1.3.1)

This Docker image contains software dependencies for samplot⁠ . It is currently being used by our SV pipeline. Please note that a copy of the Dockerfile can also be found in the Docker image in the following location: /opt2/Dockerfile.

⁠Dockerfile
# Dockerfile for samplot:v1.3.1
# https://github.com/ryanlayer/samplot
# There is an issue with the latest conda
# release of samplot, building a docker
# image with the latest Github release.
# Using Ubuntu Focal (20.04 LTS) as base image
FROM ubuntu:20.04
LABEL [email protected]

# 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 \
        bzip2 \
        ca-certificates \
        curl \
        git \
        gzip \
        libz-dev \
        libbz2-dev \
        liblzma-dev \
        locales \
        pandoc \
        python3 \
        python3-pip \
        samtools \
        unzip \
        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

# Make python3 the default interpreter
# and install python packages
RUN ln -sf /usr/bin/python3.8 /usr/bin/python \
    && ln -sf /usr/bin/python3.8 /usr/bin/python3

# Install samplot (v1.3.1)
# As of 11/28/2022, there is no tagged release
# for the latest version of samplot (v1.3.1),
# cloning the repo and checkout out the latest
# commit ID: 70cad157e7764c59a6149538305dcccaea8e11b9
RUN git clone https://github.com/ryanlayer/samplot.git \
    && cd samplot \
    && git checkout 70cad157e7764c59a6149538305dcccaea8e11b9 \
    && pip install --upgrade pip \
    && pip install . \
    && pip install --upgrade numpy 

# Add Dockerfile and export env variables
ADD Dockerfile /opt2/Dockerfile
RUN chmod -R a+rX /opt2 
ENV PATH="/opt2:$PATH"
WORKDIR /data2

⁠Steps for Building Docker Images

Directly below are instructions for building a base image for the samplot using the provided Dockerfile:

# See listing of images on computer
docker image ls

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

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

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

# Check out new tag(s)
docker image ls

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

Scan your image for known vulnerabilities:

docker scan samplot: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:212dfb9d0…

Size

756.7 MB

Last updated

almost 4 years ago

docker pull skchronicles/samplot