latch_metadata package.
In your workflow directory, create a folder called latch_metadata, and in it, add a file called __init__.py. The content of the file should look like this:
SnakemakeV2Metadata object and define an appropriate set of parameters using SnakemakeParameter objects. SnakemakeParameters are identical to LatchParameters, with an additional required type field.
Values passed through the interface will be marshalled into JSON and then provided to your workflow as an external config file. For example, in the above workflow, if we pass a single Sample called test with r1 at latch://123.account/test_r1.fastq and r2 at latch://123.account/test_r2.fastq, the resulting config file would look like
config object, e.g. config["samples"][0] would get the first sample. See encoding for more info.