2021-07-06 12:11:11 +00:00
|
|
|
FROM nfcore/base:1.14
|
|
|
|
LABEL \
|
|
|
|
author="Maxime Garcia" \
|
|
|
|
description="VEP 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 SPECIES=homo_sapiens
|
2022-07-13 11:43:03 +00:00
|
|
|
ARG VEP_CACHE_VERSION=106
|
|
|
|
ARG VEP_VERSION=106.1
|
2022-05-05 10:57:14 +00:00
|
|
|
|
|
|
|
# Add conda installation dir to PATH (instead of doing 'conda activate')
|
2022-07-13 11:43:03 +00:00
|
|
|
ENV PATH /opt/conda/envs/nf-core-vep-${VEP_VERSION}/bin:$PATH
|
2021-07-06 12:11:11 +00:00
|
|
|
|
|
|
|
# Download Genome
|
|
|
|
RUN vep_install \
|
|
|
|
-a c \
|
|
|
|
-c .vep \
|
|
|
|
-s ${SPECIES} \
|
|
|
|
-y ${GENOME} \
|
2022-07-13 11:43:03 +00:00
|
|
|
--CACHE_VERSION ${VEP_CACHE_VERSION} \
|
2021-07-06 12:11:11 +00:00
|
|
|
--CONVERT \
|
|
|
|
--NO_BIOPERL --NO_HTSLIB --NO_TEST --NO_UPDATE
|
|
|
|
|
|
|
|
# Dump the details of the installed packages to a file for posterity
|
2022-07-13 11:43:03 +00:00
|
|
|
RUN conda env export --name nf-core-vep-${VEP_VERSION} > nf-core-vep-${VEP_VERSION}.yml
|