Skip to content

Add MultipleInputFeatureRequirement #105

@jvdzwaan

Description

@jvdzwaan

If you want to make a list of step inputs from different sources, the workflow needs a MultipleInputFeatureRequirement.

Can this be added automatically (such as for the ScatterFeatureRequirement and SubworkflowFeatureRequirement) or should this be done by hand?

Example workflow:

with WorkflowGenerator(working_dir=cwl_working_dir) as wf:
    wf.load(steps_dir='../adhtools/cwl/')
    wf.load(steps_dir='../java/cwl/')
    
    generic_yaml = wf.add_input(generic_yaml='File')
    specific_yaml = wf.add_input(specific_yaml='File')
    yaml_name = wf.add_input(yaml_name='string')
    
    blf_format_file = wf.merge_yaml(in_files=[generic_yaml, specific_yaml], out_name=yaml_name)
    
    wf.add_outputs(yaml=blf_format_file)
    
    wf.save('../adhtools/cwl/index-corpus-specific.cwl', wd=True, relative=False)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions