blue_cwl.core.parser

Parsing module for cwl files.

Functions

parse_config_file(cwl_file)

Parse a cwl config file into a dictionary.

parse_cwl_data(data, base_dir)

Parse a cwl dict and return a CommandLineTool or Workflow object.

parse_cwl_file(cwl_file)

Parse a cwl file and return a CommandLinetTool or Workflow object.

blue_cwl.core.parser.parse_config_file(cwl_file: str | PathLike[str]) Config

Parse a cwl config file into a dictionary.

Returns:

The loaded dictionary with default values where allowed.

blue_cwl.core.parser.parse_cwl_data(data: dict, base_dir: Path)

Parse a cwl dict and return a CommandLineTool or Workflow object.

blue_cwl.core.parser.parse_cwl_file(cwl_file: str | PathLike[str])

Parse a cwl file and return a CommandLinetTool or Workflow object.

Returns:

The cwl object corresponding to the file.