mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 02:58:17 +00:00
d8bef6057b
* update snpeff to 5.1 and cache up to 105 * update dm5checksum
23 lines
760 B
Docker
23 lines
760 B
Docker
FROM nfcore/base:2.1
|
|
LABEL \
|
|
author="Maxime Garcia" \
|
|
description="snpEff image for nf-core pipelines" \
|
|
maintainer="maxime.garcia@scilifelab.se"
|
|
|
|
# Install the conda environment
|
|
COPY environment.yml /
|
|
RUN conda env create -f /environment.yml && conda clean -a
|
|
|
|
# Setup default ARG variables
|
|
ARG GENOME=GRCh38
|
|
ARG SNPEFF_CACHE_VERSION=99
|
|
ARG SNPEFF_VERSION=99
|
|
|
|
# Add conda installation dir to PATH (instead of doing 'conda activate')
|
|
ENV PATH /opt/conda/envs/nf-core-snpeff-${SNPEFF_VERSION}/bin:$PATH
|
|
|
|
# Download Genome
|
|
RUN snpEff download -v ${GENOME}.${SNPEFF_CACHE_VERSION}
|
|
|
|
# Dump the details of the installed packages to a file for posterity
|
|
RUN conda env export --name nf-core-snpeff-${SNPEFF_VERSION} > nf-core-snpeff-${SNPEFF_VERSION}.yml
|