HUB
Sign inSign up

skchronicles/modr

By skchronicles

•Updated almost 4 years ago

Official docker image of the modr pipeline: https://github.com/OpenOmics/modr

Image
0

473

skchronicles/modr repository overview

⁠modr 🔬

An Oxford Nanopore RNA modification Pipeline

tests docs GitHub issues GitHub license

This is the home of the pipeline, modr. Its long-term goals: to detect RNA modifications in Oxford Nanopore direct RNA-sequencing data like no pipeline before!

⁠Overview

Welcome to modr! Before getting started, we highly recommend reading through modr's documentation⁠.

The ./modr pipeline is composed several inter-related sub commands to setup and run the pipeline across different systems. Each of the available sub commands perform different functions:

modr is a pipeline to detect loci containing RNA modifications in Oxford Nanopore direct RNA sequencing data. It relies on technologies like Singularity1⁠ to maintain the highest-level of reproducibility. The pipeline consists of a series of data processing and quality-control steps orchestrated by Snakemake2⁠, a flexible and scalable workflow management system, to submit jobs to a cluster.

The pipeline is compatible with data generated from Nanopore sequencing technologies⁠. As input, it accepts a set of FastQ files and can be run locally on a compute instance or on-premise using a cluster. A user can define the method or mode of execution. The pipeline can submit jobs to a cluster using a job scheduler like SLURM (more coming soon!). A hybrid approach ensures the pipeline is accessible to all users.

Before getting started, we highly recommend reading through the usage⁠ section of each available sub command.

For more information about issues or trouble-shooting a problem, please checkout our FAQ⁠ prior to opening an issue on Github⁠.

⁠Dockerfile

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

# Depedencies of modr:
#  - nanofilt/2.8.0       # from pypi, installed: 2.8.0
#      @requires: python3
#      @requires: python3-biopython
#      @requires: python3-pandas
#  - minimap2/2.24        # apt-get, installed: 2.24
#  - nanoplot             # from pypi, installed: 1.41.0
#  - nanocount            # from pypi, installed: 1.0.0.post6
#  - nanostat             # from pypi, installed: 1.6.0
#  - deeptools            # from pypi, installed: 3.5.1
#  - fastqc/0.11.9        # apt-get, installed: 0.11.9
#  - multiqc/1.14         # from pypi, installed: 1.14
LABEL maintainer="Skyler Kuhn <[email protected]>" \
    base_image="ubuntu:22.04" \
    version="v0.1.0"   \
    software="modr" \
    about.summary="An awesome Oxford Nanopore Pipeline to detect RNA modifications" \
    about.home="https://github.com/OpenOmics/modr" \
    about.documentation="https://openomics.github.io/modr/" \
    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 \
        build-essential \
        cmake \
        curl \
        gawk \
        git \
        gzip \
        locales \
        make \
        unzip \
        wget \
        zlib1g-dev \
        # nanofilt dependencies
        python3 \
        python3-pip \
        python3-biopython \
        python3-pandas \
    && 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 
# and install nanofilt/2.8.0
# and install NanoPlot/1.41.0
# and install NanoCount/1.0.0.post6
# and install multiqc/1.14
RUN ln -sf /usr/bin/python3 /usr/bin/python
RUN pip3 install --upgrade pip \
	&& pip3 install argparse \
    && pip3 install matplotlib \
    && pip3 install nanofilt==2.8.0 \
    && pip3 install NanoPlot==1.41.0 \
    && pip3 install NanoCount==1.0.0.post6 \
    && pip3 install NanoStat==1.6.0 \
    && pip3 install deeptools==3.5.1 \
    && pip3 install multiqc==1.14

############### INSTALL ################
# Install any bioinformatics tools
# available with apt-get on Ubuntu/22.04
RUN apt-get update \
    && apt-get -y upgrade \
    && DEBIAN_FRONTEND=noninteractive apt-get install -y \
        # fastqc/0.11.9
        fastqc \
        # minimap2/2.24
        minimap2 \
        # samtools/1.13
        samtools \
    && apt-get clean && apt-get purge \
    && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
WORKDIR /opt2

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

################ POST #################
# Add Dockerfile and export environment 
# variables and update permissions
ADD Dockerfile /opt2/modr.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=modr:v0.1.0 .

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

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

# Check out new tag(s)
docker image ls

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

Scan your image for known vulnerabilities:

docker scan modr: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:cfa2cfd67…

Size

992.6 MB

Last updated

almost 4 years ago

docker pull skchronicles/modr