From 0ace3e03856a0d3c445053515d621d62458b7eb9 Mon Sep 17 00:00:00 2001
From: nservant <nicolas.servant@curie.fr>
Date: Mon, 30 Nov 2020 18:40:12 +0100
Subject: [PATCH] [MODIF] update test profile

---
 main.nf | 17 +++++------------
 1 file changed, 5 insertions(+), 12 deletions(-)

diff --git a/main.nf b/main.nf
index ef10335..5109b84 100644
--- a/main.nf
+++ b/main.nf
@@ -153,18 +153,11 @@ if (params.input_paths){
    raw_reads = Channel.create()
    raw_reads_2 = Channel.create()
 
-   if ( params.split_fastq ){
-      Channel
-         .from( params.input_paths )
-         .map { row -> [ row[0], [file(row[1][0]), file(row[1][1])]] }
-	 .splitFastq( by: params.fastq_chunks_size, pe:true, file: true, compress:true)
-         .separate( raw_reads, raw_reads_2 ) { a -> [tuple(a[0], a[1]), tuple(a[0], a[1])] }
-   }else{
-     Channel
-        .from( params.input_paths )
-	.map { row -> [ row[0], [file(row[1][0]), file(row[1][1])]] }
-	.separate( raw_reads, raw_reads_2 ) { a -> [tuple(a[0] + "_R1", a[1][0]), tuple(a[0] + "_R2", a[1][1])] }
-   }
+   Channel
+      .from( params.input_paths )
+      .map { row -> [ row[0], [file(row[1][0]), file(row[1][1])]] }
+      .separate( raw_reads, raw_reads_2 ) { a -> [tuple(a[0] + "_R1", a[1][0]), tuple(a[0] + "_R2", a[1][1])] }
+
 }else{
    raw_reads = Channel.create()
    raw_reads_2 = Channel.create()
-- 
GitLab