×

nf-gc @ 0.3.0

Provider: mertakinstd
Claimed: 02 Sep 2026 10:37:33 (UTC)
Description: `nf-gc` is a Nextflow plugin that integrates with Nextflow's workflow execution to provide lifecycle-aware garbage collection, automatically reclaiming intermediate work artifacts while pipelines run. It solves the problem of excessive disk usage by intelligently tracking and deleting eligible outputs based on ownership, provenance, and downstream demand. Bioinformaticians and researchers running large-scale Nextflow workflows would use this plugin to reduce peak disk consumption without manual intervention.
Latest version: 0.3.0
Total downloads: 511 View trends

Summary

nf-gc is a Nextflow plugin that provides lifecycle-aware garbage collection for work artifacts. It reclaims eligible intermediate outputs from a Nextflow work directory while the workflow is still running. The plugin tracks ownership, output provenance, downstream demand, publication, workflow-output retention, and deletion per concrete artifact path. It offers two garbage collection modes: artifact (default, fine-grained tracking) and process (coarser process-level boundaries).

Get Started

Enable the plugin in nextflow.config:

plugins {
    id 'nf-gc@0.3.0'
}

No nf-gc-specific configuration is required. The default configuration is:

nfGc {
    gc_mode = 'artifact'
}

To use the coarser process clock explicitly:

nfGc {
    gc_mode = 'process'
}

Run a pipeline normally with the plugin configured, or select it from the command line:

nextflow run main.nf -plugins nf-gc@0.3.0

For lowest peak disk usage, prefer publishDir mode: 'link' when work and results paths are on the same filesystem, as hard-link publication does not duplicate the payload and gives nf-gc synchronous publication evidence.

To enable lifecycle tracing for testing and field runs:

env.NF_GC_TEST_TRACE = 'true'

Examples

Basic plugin configuration with default artifact mode:

plugins {
    id 'nf-gc@0.3.0'
}

nfGc {
    gc_mode = 'artifact'
}

Using process mode for coarser garbage collection:

plugins {
    id 'nf-gc@0.3.0'
}

nfGc {
    gc_mode = 'process'
}

Publishing with link mode for optimal disk usage:

process {
    publishDir = [path: { "${params.outdir}/${task.process.replaceAll(/:/, '_')}" }, mode: 'link']
}

Running from the command line with the plugin:

nextflow run main.nf -plugins nf-gc@0.3.0

License

Licensed under the Apache License 2.0. See LICENSE for the full license text.

Nextflow version >=26.04.0
Depends On -
Release Date 22 Sep 2026 00:45:37 (UTC)
Release Notes -
Download URL https://registry.nextflow.io/api/v1/plugins/nf-gc/0.3.0/download/nf-gc-0.3.0.zip
Store URL https://public.cr.seqera.io/v2/nextflow/plugin/nf-gc/blobs/sha256:26a17420ee20d925175e268d7e483c101c16e81f751a73bfc191dd6e528b0504
Size 108.3 KB
Checksum 85597f5fa2d1079229a54fa6965ffc38e8c46e7827f8a59803d793ff8ffbd958922aa4f340daa1ac5879d3ac19efaedb652367d3ce1c402a5fad33988393dcb1
Total downloads 164 View trends
Security Scan
Version Nextflow version Date Status Downloads
0.3.0 >=26.04.0 22 Sep 2026 00:45:37 (UTC) 164
0.2.0 >=26.04.0 15 Sep 2026 19:41:44 (UTC) 161
0.1.0 >=26.04.0 07 Sep 2026 19:36:40 (UTC) 186