Bistro.Shell_dslCommand-line construction
type template = Template_dsl.templateinclude module type of Template_dsl with type template := templateval dest : templateSymbol representing the location where a workflow is expected to produce its result
val tmp : templateSymbol representing an existing empty directory that can be used as a temporary space for a workflow's execution.
val np : templateSymbol representing the number of cores allocated to the workflow
val mem : templateSymbol representing the memory size allocated to the workflow, in GB.
val string : string -> templateA chunk of text
val int : int -> templateInt formatting
val float : float -> templateFloat formatting
dep w is interpreted as the path where to find the result of workflow w
quote ~using:c t surrounds template t with character c
option f o is f x if o = Some x and string "" otherwise
list combinator, optional value of sep is ","
another list combinator, default value for sep is ""
val enum : ('a * string) list -> 'a -> templatecombinator for enumerations
val cmd :
string ->
?img:container_image list ->
?stdin:template ->
?stdout:template ->
?stderr:template ->
template list ->
commandCommand-line constructor, e.g. cmd "echo" ~stdout:dest [ string "foo" ] will generate a shell command like "echo foo > /some/path".
val bash : ?img:container_image list -> template -> commandRun a bash script, best used with %script {|...|}
Command-line option formatting, e.g.: opt "--output" dep dest will be rendered like "--output /some/path"
Same as opt but renders options with an equal sign, e.g. "--output=/some/path"
Similar to Filename.concat, but with other types.
val within_container : container_image list -> command -> commanddocker cmd transforms cmd so that it can be executed in a Docker container.
val docker_image :
?tag:string ->
?registry:string ->
account:string ->
name:string ->
unit ->
container_imageConstruct a description of a publicly available docker image