titus.producer.chain.json

titus.producer.chain.json(pfas, lineNumbers=True, check=True, name=None, randseed=None, doc=None, version=None, metadata={}, options={}, tryYaml=False, verbose=False)[source]

Create a single PFA from a chained workflow, returning the result as a JSON string.

Parameters:
  • pfas (list of titus.pfaast.EngineConfig, Pythonized JSON, or JSON strings) – PFA documents for which the output of document i is the input to document i + 1
  • check (bool) – test the chained PFA for validity
  • name (string or None) – optional name for the chained PFA
  • randseed (integer or None) – optional random number seed for the chained PFA
  • doc (string or None) – optional documentation string for the chained PFA
  • version (integer or None) – optional version number for the chained PFA
  • metadata (dict of strings) – metadata for the chained PFA (default is {})
  • options (dict of Pythonized JSON) – implementation options for the chained PFA (default is {})
  • tryYaml (bool) – if True, attempt to interpret pfas as YAML (assuming they fail as JSON)
  • verbose (bool) – if True, write status messages to standard output
Return type:

string

Returns:

a PFA document representing the chained workflow