mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 19:18:17 +00:00
luslab-umitools | Cleaned up docker files and removed groovy dependancy
This commit is contained in:
parent
6ecf54d73c
commit
9092ae8c01
4 changed files with 8 additions and 36 deletions
|
@ -1,13 +1,14 @@
|
||||||
FROM continuumio/miniconda3:4.8.2
|
FROM continuumio/miniconda3:4.8.2
|
||||||
LABEL authors="chris.cheshire@crick.ac.uk" \
|
LABEL authors="chris.cheshire@crick.ac.uk" \
|
||||||
description="Docker image containing all requirements for the nf-core umi_tools module"
|
description="Docker image containing all requirements for the nf-core umi_tools module"
|
||||||
|
|
||||||
# Install apt packages
|
# Install apt packages
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
procps=2:3.3.15-2 \
|
procps=2:3.3.15-2 \
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Install conda packages
|
# Install conda packages
|
||||||
COPY environment.yml /
|
COPY environment.yml /
|
||||||
RUN conda env create -f /environment.yml && conda clean -a
|
RUN conda env create -f /environment.yml && conda clean -a
|
||||||
ENV PATH /opt/conda/envs/nfcore-umitools-0.1/bin:$PATH
|
|
|
@ -3,14 +3,6 @@
|
||||||
// Specify DSL2
|
// Specify DSL2
|
||||||
nextflow.preview.dsl = 2
|
nextflow.preview.dsl = 2
|
||||||
|
|
||||||
// Include NfUtils
|
|
||||||
params.internal_classpath = "umi_tools/groovy/NfUtils.groovy"
|
|
||||||
Class groovyClass = new GroovyClassLoader(getClass().getClassLoader()).parseClass(new File(params.internal_classpath));
|
|
||||||
GroovyObject nfUtils = (GroovyObject) groovyClass.newInstance();
|
|
||||||
|
|
||||||
// Define internal params
|
|
||||||
module_name = 'dedup'
|
|
||||||
|
|
||||||
// Local default params
|
// Local default params
|
||||||
params.internal_outdir = 'results'
|
params.internal_outdir = 'results'
|
||||||
params.internal_process_name = 'dedup'
|
params.internal_process_name = 'dedup'
|
||||||
|
@ -212,6 +204,8 @@ process dedup {
|
||||||
publishDir "umi_tools/dedup/${params.internal_outdir}/${params.internal_process_name}",
|
publishDir "umi_tools/dedup/${params.internal_outdir}/${params.internal_process_name}",
|
||||||
mode: "copy", overwrite: true
|
mode: "copy", overwrite: true
|
||||||
|
|
||||||
|
container 'luslab/nf-modules-umitools:latest'
|
||||||
|
|
||||||
input:
|
input:
|
||||||
tuple val(sample_id), path(bai), path(bam)
|
tuple val(sample_id), path(bai), path(bam)
|
||||||
|
|
||||||
|
|
|
@ -1,17 +1,13 @@
|
||||||
# This file creates a conda environment for the umi_tools module
|
# This file creates a conda environment for the umi_tools module
|
||||||
# conda env create -f environment.yml
|
# conda env create -f environment.yml
|
||||||
name: nfcore-umitools-0.1
|
name: nfcore-module-umitools
|
||||||
channels:
|
channels:
|
||||||
- conda-forge
|
- conda-forge
|
||||||
- bioconda
|
- bioconda
|
||||||
- defaults
|
- defaults
|
||||||
dependencies:
|
dependencies:
|
||||||
## basic packages
|
## basic packages
|
||||||
- pigz=2.3.4
|
#- pigz=2.3.4
|
||||||
|
|
||||||
## bioconda packages, see above
|
## bioconda packages, see above
|
||||||
- umi_tools=1.0.1
|
- umi_tools=1.0.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,19 +0,0 @@
|
||||||
class NfUtils{
|
|
||||||
def check_internal_overrides(String moduleName, Map params)
|
|
||||||
{
|
|
||||||
// get params set of keys
|
|
||||||
Set paramsKeySet = params.keySet()
|
|
||||||
|
|
||||||
// Interate through and set internals to the correct parameter at runtime
|
|
||||||
paramsKeySet.each {
|
|
||||||
if(it.startsWith("internal_")) {
|
|
||||||
|
|
||||||
def searchString = moduleName + '_' + it.replace('internal_', '');
|
|
||||||
|
|
||||||
if(paramsKeySet.contains(searchString)) {
|
|
||||||
params.replace(it, params.get(searchString))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in a new issue