diff --git a/src/nf_modules/deepTools/compute_matrix.config b/src/nf_modules/deepTools/compute_matrix.config
index cb32bf559be596469ad60f4a5681288e07332ba8..27e63ca63b6136955ae86f0f9063a7f827a4db4f 100644
--- a/src/nf_modules/deepTools/compute_matrix.config
+++ b/src/nf_modules/deepTools/compute_matrix.config
@@ -10,7 +10,7 @@ profiles {
   }
   psmn {
     process{
-      withName: bam_to_bigwig {
+      withName: compute_matrix {
         beforeScript = "source /usr/share/lmod/lmod/init/bash; module use ~/privatemodules"
         module = "deepTools/3.0.2"
         executor = "sge"
diff --git a/src/nf_modules/deepTools/compute_matrix.nf b/src/nf_modules/deepTools/compute_matrix.nf
index 53b4b1958ed22bb37eee7122e0c912215046268a..e9de41365b68c09018adb53809466589dc4bbcd9 100644
--- a/src/nf_modules/deepTools/compute_matrix.nf
+++ b/src/nf_modules/deepTools/compute_matrix.nf
@@ -19,7 +19,6 @@ Channel
 process compute_matrix {
   tag "$file_id"
   cpus 4
-  echo true
   publishDir "results/mapping/region_matrix/", mode: 'copy'
 
   input:
diff --git a/src/nf_modules/deepTools/plot_profile.config b/src/nf_modules/deepTools/plot_profile.config
new file mode 100644
index 0000000000000000000000000000000000000000..4a94d1de938c381cd57e249793d0430b95e59def
--- /dev/null
+++ b/src/nf_modules/deepTools/plot_profile.config
@@ -0,0 +1,25 @@
+profiles {
+  docker {
+    docker.temp = 'auto'
+    docker.enabled = true
+    process {
+      withName: plot_profile {
+        container = "deeptools:3.0.2"
+      }
+    }
+  }
+  psmn {
+    process{
+      withName: plot_profile {
+        beforeScript = "source /usr/share/lmod/lmod/init/bash; module use ~/privatemodules"
+        module = "deepTools/3.0.2"
+        executor = "sge"
+        clusterOptions = "-m e -cwd -V"
+        memory = "30GB"
+        time = "24h"
+        queue = 'E5-2670deb128A,E5-2670deb128B,E5-2670deb128C,E5-2670deb128D,E5-2670deb128E,E5-2670deb128F'
+        penv = 'openmp16'
+      }
+    }
+  }
+}
diff --git a/src/nf_modules/deepTools/plot_profile.nf b/src/nf_modules/deepTools/plot_profile.nf
new file mode 100644
index 0000000000000000000000000000000000000000..eb089714827a8163185fea8fa64cd892e03b6b7d
--- /dev/null
+++ b/src/nf_modules/deepTools/plot_profile.nf
@@ -0,0 +1,37 @@
+params.matrix = "$baseDir/data/region_matrix/*.mat.gz"
+params.title = "plot title"
+
+log.info "matrix files : ${params.matrix}"
+log.info "plot title : ${params.title}"
+
+Channel
+  .fromPath( params.matrix )
+  .ifEmpty { error "Cannot find any matrix files matching: ${params.matrix}" }
+  .map { it -> [(it.baseName =~ /([^\.]*)/)[0][1], it]}
+  .set { matrix_files }
+
+process plot_profile {
+  tag "$file_id"
+  cpus 4
+  publishDir "results/mapping/region_matrix/", mode: 'copy'
+
+  input:
+    set file_id, file(matrix) from matrix_files
+
+  output:
+    set file_id, "*.pdf" into region_matrix
+
+  script:
+/*
+see more option at
+https://deeptools.readthedocs.io/en/develop/content/tools/plotProfile.html
+*/
+"""
+plotProfile -m ${matrix} \
+  --plotFileFormat=pdf \
+  -out ${file_id}.pdf \
+  --plotType=fill \
+  --perGroup \
+  --plotTitle "${params.title}"
+"""
+}
diff --git a/src/nf_modules/deepTools/tests.sh b/src/nf_modules/deepTools/tests.sh
index 63b8434ed901c719e1a0c138192d942546105524..06057a81e896dde34b2261f8a48d187d4e6e11f0 100755
--- a/src/nf_modules/deepTools/tests.sh
+++ b/src/nf_modules/deepTools/tests.sh
@@ -4,3 +4,4 @@
 
 ./nextflow src/nf_modules/deepTools/compute_matrix.nf -c src/nf_modules/deepTools/compute_matrix.config -profile docker --bw "results/mapping/bigwig/*.bw" --bed "data/tiny_dataset/annot/tiny.bed"
 
+./nextflow src/nf_modules/deepTools/plot_profile.nf -c src/nf_modules/deepTools/plot_profile.config -profile docker --matrix "results/mapping/region_matrix/*.mat.gz" --title "plot title"