Skip to content
koszullabPublic

MetaTOR

Bioconda PyPI - Python Version Build Status codecov License: GPLv3 Ruff

Metagenomic Tridimensional Organisation-based Reassembly: metaTOR clusters the contigs of a metagenome assembly into metagenome-assembled genomes (MAGs) from the Hi-C contacts between them (metaHiC). It also clusters the contigs of mobile genetic elements (MGEs) and finds their host MAGs.

Documentation: https://koszullab.github.io/metator/: quickstart, the end-to-end pipeline, concepts, CLI reference and file formats.

Installation

conda create -n metator bioconda::metator   # recommended
pip install metator                          # Python 3.10 to 3.14

Docker images are at ghcr.io/koszullab/metator. See Installation for the development version.

Usage

metaTOR starts from a .metacool contact map of the contigs, which hicstuff (4.0.0 or later) makes from the Hi-C reads:

# The contact map of the contigs: hicstuff/sample.metacool
hicstuff pipeline -g assembly.fa -e DpnII -M metacool -o hicstuff -P sample R1.fq.gz R2.fq.gz

# The clusters: binning/sample.metacool, the contact map of the clusters
metator pipeline hicstuff/sample.metacool -a assembly.fa -e DpnII -d depth.txt -o binning

metator pipeline also takes pairs or BAM files in place of the map, and with --mges mges.txt it clusters the MGE contigs and finds their hosts. It writes, in binning/:

  • sample.metacool: the contact map of the clusters, with their quality and the marker genes of each contig;
  • fasta/, cool/, tables/ and plots/: the MAGs, their contact maps, the cluster summary and other tables, and quality plots;
  • sample.report.html, sample.report.txt and sample.report_mqc.yaml: the report of the run, for a browser, as text, and for MultiQC;
  • sample.metator_<date>.log: the log.
Command What it does
pipeline Runs network, partition, validation and markers; with --mges, then mge and host.
network Builds the network of the contigs and stores it in the map.
partition Partitions the network many times with Louvain or Leiden.
validation Checks the clusters with miComplete, and partitions the contaminated ones again.
markers Stores the marker genes of each contig, as miComplete finds them, in the map.
mge Clusters the contigs of mobile genetic elements.
host Finds the MAGs that host the MGE clusters.
dump Writes the tables of a run from the map of its clusters.
export Writes every output of a run again from the map of its clusters.
report Writes the report of a run from the map of its clusters.

metator --help lists the commands, and metator <command> --help their options. The quickstart runs metaTOR on the test data of this repository.

Migrating from metaTOR 1.x

metaTOR 2.0 no longer aligns reads, and removed the commands that hicstuff, metacooler, instaGRAAL or pairix replace (qc, contactmap, metacool, scaffold, pairs). Migrating to 2.0 lists every change, and Other tools what replaces each command.

Contributing

Contributions are welcome: see CONTRIBUTING.md.

Citation

Lyam Baudry, Théo Foutel-Rodier, Agnès Thierry, Romain Koszul and Martial Marbouty. 2019. MetaTOR: A Computational Pipeline to Recover High-Quality Metagenomic Bins From Mammalian Gut Proximity-Ligation (meta3C) Libraries. Frontiers in Genetics 10: 753. https://doi.org/10.3389/fgene.2019.00753

Related work (BibTeX and the tools metaTOR runs):

License

metaTOR is distributed under the GNU General Public License v3 (GPLv3): see LICENSE.

Contact

Spatial Regulation of Genomes (Institut Pasteur, Paris)

Releases

Packages

Used by

Contributors

Languages