Skip to content
Snippets Groups Projects
Commit 138d3606 authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Added glob's to output files

parent fcc09ede
No related branches found
No related tags found
1 merge request!24Changes after testing
...@@ -16,7 +16,7 @@ task fastqc { ...@@ -16,7 +16,7 @@ task fastqc {
Int? kmers Int? kmers
String? dir String? dir
# Chops of the .gz extension if present. # Chops of the .gz extension if present.
String name = sub(seqFile, "\\.gz$","") String name = sub(sub(seqFile, "\\.gz$",""), "\\.fq$|\\.fastq$","")
# 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")
...@@ -44,9 +44,9 @@ task fastqc { ...@@ -44,9 +44,9 @@ task fastqc {
} }
output { output {
File rawReport = reportDir + "/fastqc_data.txt" File rawReport = select_first(glob(outdirPath + "/" + name + "*_fastqc/fastqc_data.txt"))
File htmlReport = reportDir + "/fastqc_report.html" File htmlReport = select_first(glob(outdirPath + "/" + name + "*_fastqc/fastqc_report.html"))
File summary = reportDir + "/summary.txt" File summary = select_first(glob(outdirPath + "/" + name + "*_fastqc/summary.txt"))
Array[File] images = glob(reportDir + "/Images/*.png") Array[File] images = glob(reportDir + "/Images/*.png")
} }
......
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