This project contains a Nextflow plugin called nf-polly which provides utilities for using the
Polly platform developed by Elucidata.
-
settings.gradle– Gradle project settings. -
plugins/nf-polly– The plugin implementation base directory. -
plugins/nf-polly/build.gradle– Plugin Gradle build file. Project dependencies should be added here. -
plugins/nf-polly/src/resources/META-INF/MANIFEST.MF– Manifest file defining the plugin attributes e.g. name, version, etc. The attributePlugin-Classdeclares the plugin main class. This class should extend the base classnextflow.plugin.BasePlugine.g.nextflow.polly.PollyPlugin. -
plugins/nf-polly/src/resources/META-INF/extensions.idx– This file declares one or more extension classes provided by the plugin. Each line should contain the fully qualified name of a Java class that implements theorg.pf4j.ExtensionPointinterface ( or a sub-interface). -
plugins/nf-polly/src/main– The plugin implementation sources. -
plugins/nf-polly/src/test– The plugin unit tests.
-
PollyConfig– to handle options from the Nextflow configuration -
PollyExtension– contains custom utilities (operators, functions, etc.) for use in the Polly pipelines environment. -
PollyPlugin– the plugin entry point
To run your unit tests, run the following command in the project root directory (ie. where the file
settings.gradle is located):
./gradlew checkTo build and test the plugin during development, configure a local Nextflow build with the following steps:
-
Clone the Nextflow repository in your computer into a sibling directory:
git clone --depth 1 https://github.com/nextflow-io/nextflow ../nextflow
-
Configure the plugin build to use the local Nextflow code:
echo "includeBuild('../nextflow')" >> settings.gradle
(Make sure to not add it more than once!)
-
Compile the plugin alongside the Nextflow code:
make assemble
-
Run Nextflow with the plugin, using
./launch.shas a drop-in replacement for thenextflowcommand, and adding the option-plugins nf-pollyto load the plugin:./launch.sh run my_org/my_pipeline -plugins nf-polly
This plugin can be made available to a local Nextflow installation using the following steps:
- Build the plugin:
make buildPlugins - Copy
build/plugins/nf-polly-1.2.3to$HOME/.nextflow/plugins
To test, create a pipeline that uses the plugin and run it: nextflow run ./my-pipeline-script.nf