Skip to content
Snippets Groups Projects
Commit 3cf74222 authored by nservant's avatar nservant
Browse files

[MODIF] update test profile

parent 10e9c121
No related branches found
No related tags found
No related merge requests found
......@@ -153,11 +153,18 @@ if (params.input_paths){
raw_reads = Channel.create()
raw_reads_2 = Channel.create()
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], a[1][0]), tuple(a[0], a[1][1])] }
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])] }
}
}else{
raw_reads = Channel.create()
raw_reads_2 = Channel.create()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment