Skip to content

Commit 137c4cd

Browse files
committed
.
1 parent 8c2e2e7 commit 137c4cd

7 files changed

Lines changed: 26 additions & 6 deletions

File tree

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ abstract: >-
2525
FASTQ, then proceed with read quality control, alignment, host depletion, and taxonomic profiling, followed by
2626
consensus genome building—polishing, refinement, and consensus calling. One container image per process keeps
2727
runs portable and reproducible under Docker, Singularity/Apptainer, and typical HPC setups.
28-
version: 0.1.0
28+
version: 0.1.1
2929
date-released: 2026-03-31
3030
url: https://github.com/Clinical-Virology-Unit/Metatropics
3131
license: MIT

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# Metatropics: A Viral Metagenomics ONT Pipeline
88

9-
**Metatropics (v0.1.0)** is a Nextflow-driven bioinformatics pipeline for metagenomic Oxford Nanopore sequencing data. It is built to detect viral pathogens in complex samples (e.g. blood and swabs from a range of body sites) and, where coverage allows, to generate high-quality viral consensus genomes and to perform variant analysis.
9+
**Metatropics (v0.1.1)** is a Nextflow-driven bioinformatics pipeline for metagenomic Oxford Nanopore sequencing data. It is built to detect viral pathogens in complex samples (e.g. blood and swabs from a range of body sites) and, where coverage allows, to generate high-quality viral consensus genomes and to perform variant analysis.
1010

1111
**Metatropics** is an abbreviation of **Metagenomics for Tropical Fevers**, and reflects how the project began, with an emphasis on finding human viral pathogens in patients presenting with tropical fevers. The same pipeline has since been validated and applied outside that first setting, including for other febrile syndromes, for genomic surveillance, and for research and diagnostic questions around viral pathogens relevant to human health.
1212

@@ -150,7 +150,7 @@ You can run Metatropics on a high-performance cluster instead of a local worksta
150150
If you use Metatropics in your research, please cite:
151151

152152
```
153-
Jansen, D., De Souza Novaes, A., de Block, T., Rezende, A. M., & Vercauteren, K. (2026). Metatropics: Human viral pathogen identification and consensus genome calling from nanopore metagenomic sequencing data. (v0.1.0). Zenodo. https://doi.org/10.5281/zenodo.20430617
153+
Jansen, D., De Souza Novaes, A., de Block, T., Rezende, A. M., & Vercauteren, K. (2026). Metatropics: Human viral pathogen identification and consensus genome calling from nanopore metagenomic sequencing data. (v0.1.1). Zenodo. https://doi.org/10.5281/zenodo.20430617
154154
```
155155

156156
Also cite the nf-core framework, and other tools you rely on; see [`nf-metatropics/assets/citing/CITATIONS.md`](nf-metatropics/assets/citing/CITATIONS.md).
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
"""Samplesheet helpers for the Metatropics Nextflow pipeline (``metatropics-samplesheet``)."""
2+
3+
__version__ = "0.1.1"

nf-metatropics/assets/submission/metatropics_samplesheet/samplesheet.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import sys
2020
from pathlib import Path
2121

22+
from . import __version__
2223
from .twist import TWIST_KITS, mock_twist_run_rows, twist_run_to_pod5_rows
2324

2425
# Longest suffix first so e.g. .fastq.gz is not parsed as .fastq
@@ -33,6 +34,14 @@
3334
HELP_FLAGS = frozenset({"-h", "--help", "-help", "-?"})
3435

3536

37+
def add_version_arg(parser: argparse.ArgumentParser) -> None:
38+
parser.add_argument(
39+
"--version",
40+
action="version",
41+
version=f"%(prog)s {__version__}",
42+
)
43+
44+
3645
def wants_top_level_help(argv: list[str]) -> bool:
3746
"""True for bare help flags; subcommand help (e.g. pod5 -h) stays mode-specific."""
3847
if not argv:
@@ -257,6 +266,7 @@ def build_fastq_parser(subparsers: argparse._SubParsersAction) -> argparse.Argum
257266
default_help="Directory of demultiplexed FASTQ files (default: current directory).",
258267
output_help="Output CSV (default: DIR/samplesheet.csv).",
259268
)
269+
add_version_arg(parser)
260270
return parser
261271

262272

@@ -290,6 +300,7 @@ def build_twist_pod5_parser() -> argparse.ArgumentParser:
290300
metavar="FILE",
291301
help="Output file (default: run.txt or POD5.csv).",
292302
)
303+
add_version_arg(parser)
293304
return parser
294305

295306

@@ -310,6 +321,7 @@ def build_pod5_parser(subparsers: argparse._SubParsersAction) -> argparse.Argume
310321
default_help="POD5 or fastq_pass directory (default: current directory).",
311322
output_help="Output CSV (default: DIR/POD5.csv).",
312323
)
324+
add_version_arg(parser)
313325
return parser
314326

315327

@@ -325,6 +337,7 @@ def build_parser() -> argparse.ArgumentParser:
325337
subparsers = parser.add_subparsers(dest="command", help=argparse.SUPPRESS)
326338
build_fastq_parser(subparsers)
327339
build_pod5_parser(subparsers)
340+
add_version_arg(parser)
328341
return parser
329342

330343

@@ -340,6 +353,11 @@ def dispatch(mode: str, args: argparse.Namespace) -> None:
340353

341354
def main(argv: list[str] | None = None) -> None:
342355
argv = list(sys.argv[1:] if argv is None else argv)
356+
357+
if argv == ["--version"]:
358+
print(f"metatropics-samplesheet {__version__}")
359+
return
360+
343361
parser = build_parser()
344362

345363
# Top-level help lists both modes and examples (-help is treated like --help).

nf-metatropics/nextflow.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ manifest {
251251
description = """Analyze Nanopore metagenomic data (fast5/fastq) to identify virus pathogen."""
252252
mainScript = 'main.nf'
253253
nextflowVersion = '!>=22.10.1'
254-
version = '0.0.9'
254+
version = '0.1.1'
255255
doi = ''
256256
}
257257

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "metatropics-samplesheet"
7-
version = "0.0.9"
7+
version = "0.1.1"
88
description = "Metatropics samplesheet helper (FASTQ and POD5/fastq_pass CSV)"
99
readme = "README.md"
1010
license = { text = "GPL-3.0-or-later" }

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
setup(
99
name="metatropics-samplesheet",
10-
version="0.0.9",
10+
version="0.1.1",
1111
author="Metatropics Team",
1212
description="Metatropics samplesheet helper (FASTQ and POD5/fastq_pass CSV)",
1313
long_description=long_description,

0 commit comments

Comments
 (0)