Skip to content
Snippets Groups Projects
Commit 637e22bb authored by nservant's avatar nservant
Browse files

[BUG] Change regex for read extensions

parent 95cbe76a
No related branches found
No related tags found
No related merge requests found
...@@ -497,8 +497,8 @@ if (!params.dnase){ ...@@ -497,8 +497,8 @@ if (!params.dnase){
set val(oname), file("${prefix}.mapstat") into all_mapstat set val(oname), file("${prefix}.mapstat") into all_mapstat
script: script:
sample = prefix.toString() - ~/(_R1$|_R2$|_val_1$|_val_2$|_1$|_2$)/ sample = prefix.toString() - ~/(_R1|_R2|_val_1|_val_2|_1$|_2)/
tag = prefix.toString() =~/_R1$|_val_1$|_1$/ ? "R1" : "R2" tag = prefix.toString() =~/_R1|_val_1|_1/ ? "R1" : "R2"
oname = prefix.toString() - ~/(\.[0-9]+)$/ oname = prefix.toString() - ~/(\.[0-9]+)$/
""" """
...@@ -538,8 +538,8 @@ if (!params.dnase){ ...@@ -538,8 +538,8 @@ if (!params.dnase){
set val(oname), file("${prefix}.mapstat") into all_mapstat set val(oname), file("${prefix}.mapstat") into all_mapstat
script: script:
sample = prefix.toString() - ~/(_R1$|_R2$|_val_1$|_val_2$|_1$|_2$)/ sample = prefix.toString() - ~/(_R1|_R2|_val_1|_val_2|_1|_2)/
tag = prefix.toString() =~/_R1$|_val_1$|_1$/ ? "R1" : "R2" tag = prefix.toString() =~/_R1|_val_1|_1/ ? "R1" : "R2"
oname = prefix.toString() - ~/(\.[0-9]+)$/ oname = prefix.toString() - ~/(\.[0-9]+)$/
""" """
...@@ -555,6 +555,7 @@ if (!params.dnase){ ...@@ -555,6 +555,7 @@ if (!params.dnase){
} }
} }
println(bwt2_merged_bam)
process combine_mapped_files{ process combine_mapped_files{
tag "$sample = $r1_prefix + $r2_prefix" tag "$sample = $r1_prefix + $r2_prefix"
...@@ -715,7 +716,7 @@ process merge_sample { ...@@ -715,7 +716,7 @@ process merge_sample {
file("mstats/") into all_mstats file("mstats/") into all_mstats
script: script:
sample = prefix.toString() - ~/(_R1$|_R2$|_val_1$|_val_2$|_1$|_2$)/ sample = prefix.toString() - ~/(_R1|_R2|_val_1|_val_2|_1|_2)/
if ( (fstat =~ /.mapstat/) ){ ext = "mmapstat" } if ( (fstat =~ /.mapstat/) ){ ext = "mmapstat" }
if ( (fstat =~ /.pairstat/) ){ ext = "mpairstat" } if ( (fstat =~ /.pairstat/) ){ ext = "mpairstat" }
if ( (fstat =~ /.RSstat/) ){ ext = "mRSstat" } if ( (fstat =~ /.RSstat/) ){ ext = "mRSstat" }
......
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