Forum Login Issue:
Currently the "Log in with Google" button redirects you to a "Page not found." Our forum vendors have implemented a fix, and now we are just waiting on a patch to be released. In the meantime, while on the "Page not found" you can edit the URL to delete the second gatk, firecloud, or wdl (depending on what subforum you are acessing).
ex: https://gatkforums.broadinstitute.org/gatk/gatk/entry/...

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.