I'm working on an implementation of a fastqc wrapper written in CWL, and am wondering if there is a better way to ensure that the log outputs of my script are unique (instead of having to name them manually).
outputs:
output_qc_report_file
type: File
outputBinding:
glob: "*_fastqc.zip"
console_log:
type: stdout
error_log:
type: stderr
Instead of fastqc_con.txt for console log, it would be something like "sample_id-tool_ran.txt" or "22_TO_04_S38_R2_001-fastqc_con.txt.
Don't know about the exact capabilities of CWL, but adding
.log
to the name of your sample is one of common solutions. Adding a time stamp would be another.