diff --git a/src/nf_modules/pycoqc/main.nf b/src/nf_modules/pycoqc/main.nf
index 1951dbfe59678b14a922fff4b61790a219256262..1a7099758dadcba04c603ae4af6a93ef7b04ed83 100644
--- a/src/nf_modules/pycoqc/main.nf
+++ b/src/nf_modules/pycoqc/main.nf
@@ -1,7 +1,26 @@
 version = "2.5.2"
 container_url = "xgrand/pycoqc:${version}"
 
-process pycoqc {
+process control_basecalling {
+  container = "${container_url}"
+  label "small_mem_mono_cpus"
+  
+  if (params.basecalling_out != "") {
+    publishDir "results/${params.basecalling_out}", mode: 'copy'
+  }
+
+  input:
+  path(txt)
+
+  output:
+  path("*.html")
+
+  """
+  pycoQC -f ${txt} -o quality_control.html)
+  """
+}
+
+process control_bam {
   container = "${container_url}"
   label "small_mem_mono_cpus"