1.4 KiB
1.4 KiB
Groovy console plugin for Nextflow
Summary
The Groovy console plugin provides an interactive console and graphical user interface for Nextflow development, testing, and workflow exploration.
Get Started
To use this plugin, add it to your nextflow.config:
plugins {
id 'nf-console'
}
Launch the console:
nextflow console
This opens a Groovy console with the Nextflow runtime pre-loaded, allowing you to interactively develop and test workflow components.
Examples
Launching the Console
nextflow console
Loading a Script in the Console
nextflow console my-script.nf
Interactive Testing
In the console, you can test Nextflow constructs:
// Test a channel operation
Channel.of(1, 2, 3)
.map { it * 2 }
.view()
// Test file operations
file('data.txt').text = 'Hello World'
// Test process inputs/outputs
def reads = Channel.fromPath('*.fastq')
reads.view()
Exploring the Runtime
// Access workflow metadata
println workflow.projectDir
println workflow.launchDir
// Check available executors
println executorFactory.getExecutorNames()