Nextflow Pipelines with Custom Input
Starting a Nextflow Pipeline with Custom Input
The API call POST /api/projects/{projectId}/analysis:nextflowWithCustomInput triggers the execution of a Nextflow pipeline with a custom input in YAML or JSON format, bypassing all input forms typically required by the pipeline. The input will directly provide all necessary data for the pipeline, overriding the default form-based input collection.
Details
URL Parameters
projectId (required): The unique identifier of the project where the pipeline is located. This parameter must be provided in the URL.
Request Body
The request body must contain the input that will be passed to the pipeline, overriding any default inputs.
Fields in analysisInput:
customInput (required): A JSON/YAML object containing all the input data which the pipeline requires. The structure and content of the input depend on the specific pipeline, but should follow the expected format defined by the pipeline's logic. The custom input consists of a simple Map structure. These are key and value pairs used in your main.nf.
Considerations
Input Validation: Ensure that all required fields for the pipeline are included in the inputJson object. If any critical input is missing or incorrect, the pipeline will not run successfully.
Pipeline-Specific Fields: The structure and names of the fields in inputJson will vary depending on the pipeline. Refer to your pipeline documentation for specific details about the expected inputs.
Supported inputs:
External S3 storage : individual files (filename as last part of the S3 URL) with a maximum of 10,000 files per request. (For folders or more than 10.000 files, use your own S3 storage)
Your own S3 storage, configured as described here : supports both files and folders.
HTTP(S) : individual files (last part of the url).
BaseSpace : files and folders (as BaseSpace data reference identifiers).
Example
main.nf
Example string
To be provided with the request. The unescaped JSON is provided for legibility.
Request Body
Last updated
Was this helpful?
