This project contains a simple Nextflow plugin called treeval-summary to summary metadata and trace of a nextflow run, then store it in a defined DuckDB with 02 tables (meta and trace).
-
settings.gradleGradle project settings.
-
plugins/treeval-summaryThe plugin implementation base directory.
-
plugins/treeval-summary/build.gradlePlugin Gradle build file. Project dependencies should be added here.
-
plugins/treeval-summary/src/resources/META-INF/MANIFEST.MFManifest file defining the plugin attributes e.g. name, version, etc. The attribute
Plugin-Classdeclares the plugin main class. This class should extend the base classnextflow.plugin.BasePlugine.g.nextflow.summary.SummaryPlugin. -
plugins/treeval-summary/src/resources/META-INF/extensions.idxThis 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 the
org.pf4j.ExtensionPointinterface (or a sub-interface). -
plugins/treeval-summary/src/mainThe plugin implementation sources.
SummaryExtension: shows how to create custom functionSummaryPlugin: the plugin entry point
make installnextflow.config
plugins {
id 'treeval-summary@0.0.1'
}
workflow
Function summary gather run log data and store that in a DuckDB. This function could be used as:
include { summary } from 'plugin/treeval-summary'
summary( workflow, params, metrics, dbPath)
Where metrics is information related to input data and dbPath is path to existing/desired duckdb to store log data.