This little function just runs the command-line wdltool inputs on a wdl file and returns a data.frame of input names and input types.
wdltoolInputs(wdlfile, wdltoolJar = Sys.getenv("WDLTOOL_JAR", "wdltool.jar"))
wdlfile | The filename of a WDL file from which to get inputs. |
---|---|
wdltoolJar | The filename of the wdltool jar file; if not
specified, the environment variable |
a 2-column data.frame with the input name
and the
input type
as the two columns.
version = '0.8' tmpfile = file.path(tempdir(),'wdltool.jar') fp = getWdltoolJar(wdltool_version = version, destfile = tmpfile)#>#>wdltoolInputs(system.file(package='cRomwell','wdl/fastqc_task.wdl'))#> name type #> 1 r_fqa_wf.r_fastqa.fastq File