HUB
Sign inSign up

skchronicles/flair

By skchronicles

•Updated over 3 years ago

Docker image for FLAIR: Full-Length Alternative Isoform analysis of RNA

Image
0

1.5K

skchronicles/flair repository overview

⁠Dockerfile (v0.1.0)

A copy of the Dockerfile can also be found in the /opt2 directory of the container's filesystem.

# Base image for flair,
# uses Ubuntu Jammy (LTS)
FROM ubuntu:22.04

# Depedencies of FLAIR/1.7:
#  - python>=3.6.5
#      @requires: numpy       # from pypi
#      @requires: tqdm        # from pypi
#      @requires: ncls        # from pypi
#      @requires: pybedtools  # from pypi
#      @requires: pysam       # from pypi
# - minimap2
# - samtools 
# - bedtools=2.25.0
LABEL maintainer="Skyler Kuhn <[email protected]>" \
    base_image="ubuntu:22.04" \
    version="v0.1.0"   \
    software="flair" \
    about.summary="Full-Length Alternative Isoform analysis of RNA" \
    about.home="https://github.com/BrooksLabUCSC/flair" \
    about.documentation="https://flair.readthedocs.io/en/latest/" \
    about.tags="Transcriptomics"

############### INIT ################
# Create Container filesystem specific 
# working directory and opt directories
# to avoid collisions with the host's
# filesystem, i.e. /opt and /data
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

############### SETUP ################
# 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 \
        bedtools \
        build-essential \
        cmake \
        curl \
        gawk \
        git \
        gzip \
        libcurl4-openssl-dev \
        libssl-dev \
        libxml2-dev \
        locales \
        # minimap2/2.24
        minimap2 \
        pkg-config \
        python3 \
        python3-pip \ 
        r-base \
        # samtools/1.13
        salmon \
        samtools \
        wget \
        zlib1g-dev \
    && 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 ################
# Install any bioinformatics tools
# available with other package managers
# Make python3 the default interpreter
# and install Python Packages 
# and install remaining 3rd 
# python packes from PyPi
RUN ln -sf /usr/bin/python3 /usr/bin/python
RUN pip3 install --upgrade pip \
    && pip3 install argparse \
    && pip3 install flair-brookslab==1.7.0 \
    && pip3 install matplotlib \
    && pip3 install ncls \
    && pip3 install numpy \
    && pip3 install pandas \
    && pip3 install pybedtools \
    && pip3 install pysam \
    && pip3 install rpy2 \
    && pip3 install scipy \
    && pip3 install seaborn \
    && pip3 install tqdm 

# Install other recommended R packages
# CRAN packages 
RUN Rscript -e 'install.packages(c("devtools", "BiocManager", "ggplot2", "qqman", "lazyeval"), repos="http://cran.r-project.org")'
# Bioconductor packages
RUN Rscript -e 'BiocManager::install(c("DRIMSeq", "stageR", "DESeq2", "apeglm"))' 
WORKDIR /opt2

############### MANUAL ################
# Install tools from src manually

################ POST #################
# Add Dockerfile and export environment 
# variables and update permissions
ADD Dockerfile /opt2/flair.dockerfile
RUN chmod -R a+rX /opt2
ENV PATH="/opt2:$PATH"
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=flair:v0.1.0 .

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

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

# Check out new tag(s)
docker image ls

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

Scan your image for known vulnerabilities:

docker scan flair: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:1d709cbdb…

Size

870.3 MB

Last updated

over 3 years ago

docker pull skchronicles/flair