diff --git a/src/nf_modules/cutadapt/cutadapt.config b/src/nf_modules/cutadapt/adaptor_removal_paired.config
similarity index 50%
rename from src/nf_modules/cutadapt/cutadapt.config
rename to src/nf_modules/cutadapt/adaptor_removal_paired.config
index 07efa9be0c8808c0cf730fb5d0dcb7ae8d351b3f..aa1a372b694db02c9d290a0dccf3c67e14f1c5f7 100644
--- a/src/nf_modules/cutadapt/cutadapt.config
+++ b/src/nf_modules/cutadapt/adaptor_removal_paired.config
@@ -24,30 +24,3 @@ profiles {
     }
   }
 }
-
-profiles {
-  docker {
-    docker.temp = 'auto'
-    docker.enabled = true
-    process {
-      $trimming {
-        container = "cutadapt:1.14"
-      }
-    }
-  }
-  sge {
-    process{
-      $trimming {
-        beforeScript = "module purge; module load cutadapt/1.14"
-        executor = "sge"
-        cpus = 1
-        memory = "5GB"
-        time = "6h"
-        queueSize = 1000
-        pollInterval = '60sec'
-        queue = 'h6-E5-2667v4deb128'
-        penv = 'openmp8'
-      }
-    }
-  }
-}
diff --git a/src/nf_modules/cutadapt/tests/adaptor_removal_paired.nf b/src/nf_modules/cutadapt/adaptor_removal_paired.nf
similarity index 100%
rename from src/nf_modules/cutadapt/tests/adaptor_removal_paired.nf
rename to src/nf_modules/cutadapt/adaptor_removal_paired.nf
diff --git a/src/nf_modules/cutadapt/adaptor_removal_single.config b/src/nf_modules/cutadapt/adaptor_removal_single.config
new file mode 100644
index 0000000000000000000000000000000000000000..aa1a372b694db02c9d290a0dccf3c67e14f1c5f7
--- /dev/null
+++ b/src/nf_modules/cutadapt/adaptor_removal_single.config
@@ -0,0 +1,26 @@
+profiles {
+  docker {
+    docker.temp = 'auto'
+    docker.enabled = true
+    process {
+      $adaptor_removal {
+        container = "cutadapt:1.14"
+      }
+    }
+  }
+  sge {
+    process{
+      $adaptor_removal {
+        beforeScript = "module purge; module load cutadapt/1.14"
+        executor = "sge"
+        cpus = 1
+        memory = "5GB"
+        time = "6h"
+        queueSize = 1000
+        pollInterval = '60sec'
+        queue = 'h6-E5-2667v4deb128'
+        penv = 'openmp8'
+      }
+    }
+  }
+}
diff --git a/src/nf_modules/cutadapt/tests/adaptor_removal_single.nf b/src/nf_modules/cutadapt/adaptor_removal_single.nf
similarity index 100%
rename from src/nf_modules/cutadapt/tests/adaptor_removal_single.nf
rename to src/nf_modules/cutadapt/adaptor_removal_single.nf
diff --git a/src/nf_modules/cutadapt/cutadapt.nf b/src/nf_modules/cutadapt/cutadapt.nf
deleted file mode 100644
index c7428637e75eb7bef584d6d42aba48e3006fe0fa..0000000000000000000000000000000000000000
--- a/src/nf_modules/cutadapt/cutadapt.nf
+++ /dev/null
@@ -1,131 +0,0 @@
-/*
-* cutadapt :
-* Imputs : fastq files
-* Output : fastq files
-*/
-
-/*                      Illumina adaptor removal                             */
-
-/*
-* for paired-end data
-*/
-
-params.fastq = "$baseDir/data/fastq/*_{1,2}.fastq"
-
-log.info "fastq files : ${params.fastq}"
-
-Channel
-  .fromFilePairs( params.fastq )
-  .ifEmpty { error "Cannot find any fastq files matching: ${params.fastq}" }
-  .set { fastq_files }
-
-process adaptor_removal {
-  tag "$pair_id"
-  publishDir "results/fastq/adaptor_removal/", mode: 'copy'
-
-  input:
-  set pair_id, file(reads) from fastq_files
-
-  output:
-  set pair_id, "*_cut_R{1,2}.fastq.gz" into fastq_files_cut
-
-  script:
-  """
-  cutadapt -a AGATCGGAAGAG -g CTCTTCCGATCT -A AGATCGGAAGAG -G CTCTTCCGATCT \
-  -o ${pair_id}_cut_R1.fastq.gz -p ${pair_id}_cut_R2.fastq.gz \
-  ${reads[0]} ${reads[1]} > ${pair_id}_report.txt
-  """
-}
-
-/*
-* for single-end data
-*/
-
-log.info "fastq files : ${params.fastq}"
-
-Channel
-  .fromPath( params.fastq )
-  .ifEmpty { error "Cannot find any fastq files matching: ${params.fastq}" }
-  .map { it -> [(it.baseName =~ /([^\.]*)/)[0][1], it]}
-  .set { fastq_files }
-
-process adaptor_removal {
-  tag "$file_id"
-
-  input:
-  set file_id, file(reads) from fastq_files
-
-  output:
-  set file_id, "*_cut.fastq.gz" into fastq_files_cut
-
-  script:
-  """
-  cutadapt -a AGATCGGAAGAG -g CTCTTCCGATCT\
-  -o ${file_id}_cut.fastq.gz \
-  ${reads} > ${file_id}_report.txt
-  """
-}
-
-
-/*                      quality trimming                                     */
-
-/*
-* for paired-end data
-*/
-
-params.fastq = "$baseDir/data/fastq/*_{1,2}.fastq"
-
-log.info "fastq files : ${params.fastq}"
-
-Channel
-  .fromFilePairs( params.fastq )
-  .ifEmpty { error "Cannot find any fastq files matching: ${params.fastq}" }
-  .set { fastq_files }
-
-process trimming {
-  tag "$pair_id"
-  publishDir "results/fastq/trimming/", mode: 'copy'
-
-  input:
-  set pair_id, file(reads) from fastq_files
-
-  output:
-  set pair_id, "*_trim_R{1,2}.fastq.gz" into fastq_files_trim
-
-  script:
-  """
-  cutadapt -q 20,20 \
-  -o ${pair_id}_trim_R1.fastq.gz -p ${pair_id}_trim_R2.fastq.gz \
-  ${reads[0]} ${reads[1]} > ${pair_id}_report.txt
-  """
-}
-
-/*
-* for single-end data
-*/
-
-log.info "fastq files : ${params.fastq}"
-
-Channel
-  .fromPath( params.fastq )
-  .ifEmpty { error "Cannot find any fastq files matching: ${params.fastq}" }
-  .map { it -> [(it.baseName =~ /([^\.]*)/)[0][1], it]}
-  .set { fastq_files }
-
-process trimming {
-  tag "$file_id"
-
-  input:
-  set file_id, file(reads) from fastq_files
-
-  output:
-  set file_id, "*_trim.fastq.gz" into fastq_files_cut
-
-  script:
-  """
-  cutadapt -q 20,20 \
-  -o ${file_id}_trim.fastq.gz \
-  ${reads} > ${file_id}_report.txt
-  """
-}
-
diff --git a/src/nf_modules/cutadapt/tests.sh b/src/nf_modules/cutadapt/tests.sh
new file mode 100755
index 0000000000000000000000000000000000000000..cf2b529ea9b4a3f4f81c0d5b5ccbfaa403a40dda
--- /dev/null
+++ b/src/nf_modules/cutadapt/tests.sh
@@ -0,0 +1,19 @@
+nextflow src/nf_modules/cutadapt/adaptor_removal_paired.nf \
+  -c src/nf_modules/cutadapt/adaptor_removal_paired.config \
+  -profile docker \
+  --fastq "data/tiny_dataset/fastq/tiny_R{1,2}.fastq"
+
+nextflow src/nf_modules/cutadapt/adaptor_removal_single.nf \
+  -c src/nf_modules/cutadapt/adaptor_removal_single.config \
+  -profile docker \
+  --fastq "data/tiny_dataset/fastq/tiny*_S.fastq"
+
+nextflow src/nf_modules/cutadapt/trimming_paired.nf \
+  -c src/nf_modules/cutadapt/trimming_paired.config \
+  -profile docker \
+  --fastq "data/tiny_dataset/fastq/tiny_R{1,2}.fastq"
+
+nextflow src/nf_modules/cutadapt/trimming_single.nf \
+  -c src/nf_modules/cutadapt/trimming_single.config \
+  -profile docker \
+  --fastq "data/tiny_dataset/fastq/tiny*_S.fastq"
diff --git a/src/nf_modules/cutadapt/tests/tests.sh b/src/nf_modules/cutadapt/tests/tests.sh
deleted file mode 100755
index 68623dbb2b54a87cc80bacefa28a25a7676acdae..0000000000000000000000000000000000000000
--- a/src/nf_modules/cutadapt/tests/tests.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-nextflow src/nf_modules/cutadapt/tests/adaptor_removal_paired.nf \
-  -c src/nf_modules/cutadapt/cutadapt.config \
-  -profile docker \
-  --fastq "data/tiny_dataset/fastq/tiny_R{1,2}.fastq"
-
-nextflow src/nf_modules/cutadapt/tests/adaptor_removal_single.nf \
-  -c src/nf_modules/cutadapt/cutadapt.config \
-  -profile docker \
-  --fastq "data/tiny_dataset/fastq/tiny*_S.fastq"
-
-nextflow src/nf_modules/cutadapt/tests/trimming_paired.nf \
-  -c src/nf_modules/cutadapt/cutadapt.config \
-  -profile docker \
-  --fastq "data/tiny_dataset/fastq/tiny_R{1,2}.fastq"
-
-nextflow src/nf_modules/cutadapt/tests/trimming_single.nf \
-  -c src/nf_modules/cutadapt/cutadapt.config \
-  -profile docker \
-  --fastq "data/tiny_dataset/fastq/tiny*_S.fastq"
diff --git a/src/nf_modules/cutadapt/trimming_paired.config b/src/nf_modules/cutadapt/trimming_paired.config
new file mode 100644
index 0000000000000000000000000000000000000000..be03e9d728f08bf863f6909e4673f3c0bef810be
--- /dev/null
+++ b/src/nf_modules/cutadapt/trimming_paired.config
@@ -0,0 +1,26 @@
+profiles {
+  docker {
+    docker.temp = 'auto'
+    docker.enabled = true
+    process {
+      $trimming {
+        container = "cutadapt:1.14"
+      }
+    }
+  }
+  sge {
+    process{
+      $trimming {
+        beforeScript = "module purge; module load cutadapt/1.14"
+        executor = "sge"
+        cpus = 1
+        memory = "5GB"
+        time = "6h"
+        queueSize = 1000
+        pollInterval = '60sec'
+        queue = 'h6-E5-2667v4deb128'
+        penv = 'openmp8'
+      }
+    }
+  }
+}
diff --git a/src/nf_modules/cutadapt/tests/trimming_paired.nf b/src/nf_modules/cutadapt/trimming_paired.nf
similarity index 100%
rename from src/nf_modules/cutadapt/tests/trimming_paired.nf
rename to src/nf_modules/cutadapt/trimming_paired.nf
diff --git a/src/nf_modules/cutadapt/trimming_single.config b/src/nf_modules/cutadapt/trimming_single.config
new file mode 100644
index 0000000000000000000000000000000000000000..be03e9d728f08bf863f6909e4673f3c0bef810be
--- /dev/null
+++ b/src/nf_modules/cutadapt/trimming_single.config
@@ -0,0 +1,26 @@
+profiles {
+  docker {
+    docker.temp = 'auto'
+    docker.enabled = true
+    process {
+      $trimming {
+        container = "cutadapt:1.14"
+      }
+    }
+  }
+  sge {
+    process{
+      $trimming {
+        beforeScript = "module purge; module load cutadapt/1.14"
+        executor = "sge"
+        cpus = 1
+        memory = "5GB"
+        time = "6h"
+        queueSize = 1000
+        pollInterval = '60sec'
+        queue = 'h6-E5-2667v4deb128'
+        penv = 'openmp8'
+      }
+    }
+  }
+}
diff --git a/src/nf_modules/cutadapt/tests/trimming_single.nf b/src/nf_modules/cutadapt/trimming_single.nf
similarity index 100%
rename from src/nf_modules/cutadapt/tests/trimming_single.nf
rename to src/nf_modules/cutadapt/trimming_single.nf