×

nf-bactopia @ 2.0.3

Provider: bactopia
Claimed: 03 Oct 2025 22:23:35 (UTC)
Description: The nf-bactopia plugin provides utility functions for Bactopia microbial genomics pipelines, handling input collection, parameter validation, channel manipulation, and sample data transformation. It solves the problem of managing complex data workflows in Nextflow >= 25 by replicating previous Bactopia library functionality through functions like gather, filter, and format. Bactopia pipeline developers use this plugin to streamline data processing and channel operations specific to bacterial genomics analysis.
Latest version: 2.1.7
Total downloads: 1.9K View trends

Summary

A Nextflow plugin providing utility functions for Bactopia pipelines. It handles input collection, parameter validation, channel manipulation, and sample data transformation. Based on the modified nf-core libs and the nf-schema plugin, this plugin replicates the functionality of the previous Bactopia libraries while being compatible with Nextflow >= 25.

This plugin is specifically designed for Bactopia and will likely not work with other pipelines.

Get Started

Add the plugin to your nextflow.config:

plugins {
    id 'nf-bactopia'
}

Then import the functions you need in your Nextflow scripts:

include { bactopiaInputs     } from 'plugin/nf-bactopia'
include { bactopiaToolInputs } from 'plugin/nf-bactopia'
include { validateParameters } from 'plugin/nf-bactopia'
include { gather             } from 'plugin/nf-bactopia'
include { gatherCsvtk        } from 'plugin/nf-bactopia'
include { gatherFields       } from 'plugin/nf-bactopia'
include { formatSamples      } from 'plugin/nf-bactopia'
include { filterWithData     } from 'plugin/nf-bactopia'
include { collectNextflowLogs } from 'plugin/nf-bactopia'
include { combineWith        } from 'plugin/nf-bactopia'

Examples

Gathering outputs from a process

// Collect all TSV outputs from a process into a single record
gather(SCCMEC.out, 'tsv', [name: 'sccmec'])

// Gather and rename for CSVTK_CONCAT input
gatherCsvtk(ARIBA_RUN.out, 'report', [name: 'ariba-report', args: '-C "$" --lazy-quotes'])

// Gather multiple fields with explicit rename mapping
gatherFields(MODULE.out, [gff: 'gff', tsv: 'tsv'], [name: 'prokka'])

Filtering and combining channels

// Filter records where at least one field has data
filterWithData(MODULE.out, ['tsv', 'gff'])

// Cartesian product of gathered results with reference files
combineWith(gathered_ch, references_ch, 'reference')

Formatting samples for processes

// Adapt tuple sizes based on data availability
formatSamples(samples, 1)  // Returns [meta, inputs]
formatSamples(samples, 2)  // Returns [meta, inputs, extra]
formatSamples(samples, 3)  // Returns [meta, inputs, extra, extra2]

License

MIT License. See LICENSE for details.

Nextflow version >=26.03.1-edge
Depends On -
Release Date 24 Apr 2026 23:46:15 (UTC)
Release Notes -
Download URL https://registry.nextflow.io/api/v1/plugins/nf-bactopia/2.0.3/download/nf-bactopia-2.0.3.zip
Store URL https://public.cr.seqera.io/v2/nextflow/plugin/nf-bactopia/blobs/sha256:389f28e586e17b329557d772e831026a9612b5070d915bd5078bb6b8738d9fb0
Size 484.4 KB
Checksum e4b2146a098f18850d23c3616bc3d13c9f5ef6aab4bf7b2017eef362efa8aed3b96ce1bc524829cd447675c06861696033e47f4554043b870b6d83a37d5a0adf
Total downloads 2 View trends
Security Scan
Version Nextflow version Date Status Downloads
2.1.7 >=26.04.0 04 Aug 2026 15:28:42 (UTC) 30
2.1.6 >=26.04.0 12 May 2026 03:02:34 (UTC) 19
2.1.5 >=26.04.0 06 May 2026 21:59:48 (UTC) 6
2.1.4 >=26.04.0 06 May 2026 16:23:38 (UTC) 1
2.1.3 >=26.04.0 05 May 2026 03:22:58 (UTC) 2
2.1.2 >=26.04.0 04 May 2026 21:00:58 (UTC) 1
2.1.1 >=26.04.0 29 Apr 2026 19:02:03 (UTC) 549
2.1.0 >=26.04.0 29 Apr 2026 11:30:19 (UTC) 3
2.0.3 >=26.03.1-edge 24 Apr 2026 23:46:15 (UTC) 2
2.0.2 >=26.03.1-edge 21 Apr 2026 16:46:50 (UTC) 5
2.0.1 >=26.03.1-edge 11 Apr 2026 02:08:50 (UTC) 3
2.0.0 >=26.03.1-edge 09 Apr 2026 17:00:43 (UTC) 9
1.0.8 >=25.10.0 25 Nov 2025 01:46:26 (UTC) 138
1.0.7 >=25.10.0 21 Nov 2025 19:38:32 (UTC) 140
1.0.6 >=25.10.0 21 Nov 2025 19:30:33 (UTC) 135
1.0.5 >=25.10.0 21 Nov 2025 19:14:49 (UTC) 135
1.0.4 >=25.10.0 21 Nov 2025 18:56:32 (UTC) 135
1.0.3 >=25.10.0 20 Nov 2025 20:21:48 (UTC) 136
1.0.2 >=25.10.0 04 Nov 2025 17:43:04 (UTC) 160
1.0.1 >=25.04.0 08 Oct 2025 16:44:59 (UTC) 171
1.0.0 >=25.04.0 04 Oct 2025 00:07:16 (UTC) 156