How to refer the base file name (output) of previous task as a input in the next task?

NandaNanda CanadaMember
edited April 11 in Ask the WDL team

workflow cnvcalling
{
call Normalization{ input: depth=read_depth }
call Filtering { input: norm_output=Normalization.norm_output }
}
task Normalization
{
File depth
command
{
cnv_caller --PCA --r ${depth} \
--out normalized_output \
--PCAout RD_PCA
}
output
{
File norm_output = "normalized_output
}
}

-PCAout get the base file name then it generates three files lile
RD_PCA_mean,
RD_PCA_SD,
RD_PCA_median

task Filtering
{
File norm_output
command
{
cnv_caller --norm ${norm_output} \
--PCAfiles RD_PCA (this is the base file name from previous task)
--o filtered_output
}
output
{
File fil_output = "filtered_output"
}
}

As per the cnv_caller, I can provide only one --PCAfiles argument.

Tagged:
Sign In or Register to comment.