Skip to content
Snippets Groups Projects
Commit 3f54ab63 authored by Ruben Vorderman's avatar Ruben Vorderman
Browse files

use proper perl-style regexes

parent f724a471
No related branches found
No related tags found
1 merge request!47Fix fastqc and cutadapt for use with WDL 1.0
...@@ -21,10 +21,10 @@ task Fastqc { ...@@ -21,10 +21,10 @@ task Fastqc {
} }
# Chops of the .gz extension if present. # Chops of the .gz extension if present.
String name = sub(seqFile, "\\.gz$","") String name = sub(seqFile, "\.gz$","")
# This regex chops of the extension and replaces it with _fastqc for the reportdir. # This regex chops of the extension and replaces it with _fastqc for the reportdir.
# Just as fastqc does it. # Just as fastqc does it.
String reportDir = outdirPath + "/" + sub(basename(name), "\\.[^\\.]*$", "_fastqc") String reportDir = outdirPath + "/" + sub(basename(name), "\.[^\.]*$", "_fastqc")
command { command {
set -e -o pipefail set -e -o pipefail
......
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