Skip to content

Add get_samplesheet_constructor for Nextflow-on-Latch workflows #27

@ameynert

Description

@ameynert
Get the samplesheet constructor from the Nextflow metadata.

`metadata._nextflow_metadata` is a global variable within the Latch environment that will be
populated for a Nextflow-on-Latch execution. Within this metadata we have access to the
parameters declared in `latch_metadata/parameter.py`.

When supporting import from Latch Registry as an input to the Nextflow-on-Latch workflow,
records from the Registry must be serialized to file so they may be passed to Nextflow as a
samplesheet. All `samplesheet` `NextflowParameters` have an associated constructor that maps a
list of the corresponding dataclasses to a serialized file.

This function verifies the existence of an appropriate constructor on the Nextflow metadata and
returns it.

Notes:

  • will have to pass metadata to this function rather than accessing it as a global?

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