Beispiel #1
0
def boutiques(
    module,
    interface,
    container_image,
    container_type,
    output,
    container_index,
    verbose,
    author,
    ignore_inputs,
    tags,
):
    """Nipype to Boutiques exporter.

    See Boutiques specification at https://github.com/boutiques/schema.
    """
    from nipype.utils.nipype2boutiques import generate_boutiques_descriptor

    # Generates JSON string and saves it to file
    generate_boutiques_descriptor(
        module,
        interface,
        container_image,
        container_type,
        container_index,
        verbose,
        True,
        output,
        author,
        ignore_inputs,
        tags,
    )
Beispiel #2
0
def boutiques(interface, module, output, ignored_template_inputs, docker_image,
              docker_index, ignore_template_numbers, verbose):
    """Nipype to Boutiques exporter.

    See Boutiques specification at https://github.com/boutiques/schema.
    """
    from nipype.utils.nipype2boutiques import generate_boutiques_descriptor

    # Generates JSON string
    json_string = generate_boutiques_descriptor(module, interface,
                                                ignored_template_inputs,
                                                docker_image, docker_index,
                                                verbose,
                                                ignore_template_numbers)

    # Writes JSON string to file
    with open(output, 'w') as f:
        f.write(json_string)
Beispiel #3
0
def boutiques(interface, module, output, ignored_template_inputs,
              docker_image, docker_index, ignore_template_numbers,
              verbose):
    """Nipype to Boutiques exporter.

    See Boutiques specification at https://github.com/boutiques/schema.
    """
    from nipype.utils.nipype2boutiques import generate_boutiques_descriptor

    # Generates JSON string
    json_string = generate_boutiques_descriptor(module,
                                                interface,
                                                ignored_template_inputs,
                                                docker_image,
                                                docker_index,
                                                verbose,
                                                ignore_template_numbers)

    # Writes JSON string to file
    with open(output, 'w') as f:
        f.write(json_string)