package bistro

  1. Overview
  2. Docs
A library to build and run distributed scientific workflows

Install

Dune Dependency

Authors

Maintainers

Sources

bistro-0.6.0.tbz
sha256=146177faaaa9117a8e2bf0fd60cb658662c0aa992f35beb246e6fd0766050e66
sha512=553fe0c20f236316449b077a47e6e12626d193ba1916e9da233e5526dd39090e8677277e1c79baace3bdc940cb009f25431730a8efc00ae4ed9cc42a0add9609

doc/bistro/Bistro/Template_dsl/index.html

Module Bistro.Template_dslSource

Representation of scripts

Sourcetype template
Sourceval dest : template

Symbol representing the location where a workflow is expected to produce its result

Sourceval tmp : template

Symbol representing an existing empty directory that can be used as a temporary space for a workflow's execution.

Symbol representing the number of cores allocated to the workflow

Sourceval mem : template

Symbol representing the memory size allocated to the workflow, in GB.

Sourceval string : string -> template

A chunk of text

Sourceval int : int -> template

Int formatting

Sourceval float : float -> template

Float formatting

dep w is interpreted as the path where to find the result of workflow w

Sourceval deps : ?quote:char -> sep:string -> _ path list workflow -> template
Sourceval string_dep : string workflow -> template

string_dep w is interpreted as the result of workflow w

Sourceval int_dep : int workflow -> template

int_dep w is interpreted as result of workflow w

Sourceval quote : ?using:char -> template -> template

quote ~using:c t surrounds template t with character c

Sourceval option : ('a -> template) -> 'a option -> template

option f o is f x if o = Some x and string "" otherwise

Sourceval list : ('a -> template) -> ?sep:string -> 'a list -> template

list combinator, optional value of sep is ","

Sourceval seq : ?sep:string -> template list -> template

another list combinator, default value for sep is ""

Sourceval enum : ('a * string) list -> 'a -> template

combinator for enumerations

Sourceval file_dump : template -> template

file_dump t can be used when a command needs a configuration script: at run-time, it will generate a text using t, save it to a path, deterministically chosen as a function of t. Finally the template file_dump t is interpreted as this path.

OCaml

Innovation. Community. Security.