Launch computational pipelines
¶
Configure your Seqera workspace¶
If your pipeline is from private GitHub repos, make sure you add Workspace credentials to allow access
Create a new
Compute environmentwith that includes:LAMIN_API_KEY: as an env variableIf you want to use
nf-lamin, add the following content to thenextflow configplugins { id 'nf-lamin' } lamin { instance = "{instance-full}" env = "{env}" api_key = System.getenv("LAMIN_API_KEY") transform_uid = "{transform-uid}" run_uid = "{run-uid}" }
Walkthrough¶
Step 0a: Register a pipeline as a new transform - Admin¶
To register a new pipeline or a new version of an existing pipeline, (please always use
Transform.from_git(), here is the API doc)# a versioned pipeline transform that points to a commit ln.Transform.from_git( url="https://github.com/nf-core/scrnaseq", path="main.nf", # Path to the main script within the repository key="nf-core/scrnaseq", # Optional key for the transform version="4.0.0", # Optional version tag to checkout in the repository ).save() # a sliding pipeline transform that points to a branch ln.Transform.from_git( url="https://github.com/nf-core/scrnaseq", path="main.nf", # Path to the main script within the repository key="nf-core/scrnaseq", # Optional key for the transform version="dev", # Version tag needs to equal branch branch="dev", # Branch to checkout ).save()
Step 0b: Configure the settings of a pipeline - Admin¶
Switch on the
Advanced viewtoggle and you will see theConfigurationsession.Click on
Settings, you will see a pop-up window with 2 tabs:Input schemasandRun metadataInput schemas: You can configure a schema for a parameter (e.g.input), which allows you to create a sheet according to the schema configurations.Run metadata: You can configure which sheet you want to select the metadata from. Note a feature with the dtype that’s the same as the sheet must be present, meaning the feature selected must have...as thedtypeif you want to use a sheet of type...in the Record registry.
Step 0c: Configuration and Pipeline sessions - Advanced users¶
Configuration
pre-run script,post-run scriptandnextflow configare automatically pulled from the selectedCompute environmentCheck the
nf-laminplugin is specified innextflow config(synced from the selected compute environment)
Pipeline
Pipeline URLandRevisionare specified in transform attributes, therefore immutable here (register a new transform if you want to run a different revision of the pipeline)Workspace directoryis pre-filled from the compute environmentOptional: select
Profiles. For testing, can usetestortest_full(multiple selection is possible). Once profiles are selected, you will see parameters automatically populated based on the profiles.Optional: enter a
Run nameif you don’t want use the default name
Step 1: Launch a pipeline¶
Optional: enter a
Run nameif you don’t want use the auto-generated nameParameters (
FormorJSON)If one prefers, can directly edit the JSON without going through the form.
Fill out run metadata if configured (See Step 0b-2 for configuration)
Directly fill out the form
Or click
Select existing row
Specify a file/artifact/sheet for parameters of type file
Click on
selectto directly select a sheet, an artifact, or a file from the s3.Or click the
Create sheetbutton to fill out a new sheet.
Fill out the rest required fields marked with *, e.g.
inputandoutdirfor the scrnaseq pipelineOptional: provide the rest of parameters. Note: we group everything other than
input_output_optionsandmandatory_argumentsas advanced, if you want them to show up as the first session, you can group them underinput_output_options.
Step 2: Review and submit to Seqera¶
Click
Reviewbutton at the bottom of the pageReview all the information you entered (can go back to edit if needed)
Click on
Submitto send the launch request to SeqeraYou will be see a success message if things go well (otherwise error messages) and a run id.
You can check the triggered run on Seqera: …
Once the pipeline run started,
nf-laminautomatically tracks the run status. You can view them on the runs list.