Skip to main content

Nanomotif

Anaconda-Server Badge PyPI version

Nanomotif finds DNA methylation motifs in prokaryotic genomes and metagenomes from Nanopore sequencing data. It finds the motifs of every bin (or genome) de novo from a modkit pileup, and its MTase-linker module links them to the methyltransferase genes that produce them.

Nanomotif offers

  • de novo methylation motif discovery per bin, for 6mA, 5mC and 4mC
  • association of MTases and RM systems with the motifs (MTase-linker)
  • speed on large metagenomes: about 20 s for a 12-bin mock community with a 4 GB pileup, 21 minutes for a 490-bin metagenome with a 330 GB pileup

Documentation

See the documentation for installation and usage, the required files, the output, how it works and examples.

Quick start

Installation

python3 -m venv nanomotif
source nanomotif/bin/activate
pip install nanomotif

On Linux, macOS and Windows (x86_64), this includes Nanomotif's compiled kernels (nanomotif-rs) as a prebuilt wheel; no compiler is needed. Nanomotif is also on Bioconda: conda install -c conda-forge -c bioconda nanomotif.

Check the installation with a small test run:

nanomotif check_installation

Required files

  • the assembly (FASTA)
  • a modkit methylation pileup (plain or bgzipped)
  • the bin of each contig: a tab-separated contig<TAB>bin file, or the bin FASTA files

See required files for how to make them.

Motif discovery

For monocultures and metagenomes alike:

nanomotif motif_discovery ASSEMBLY.fasta PILEUP.bed -c CONTIG_BIN.tsv -t THREADS --out OUT

The motifs of each bin are written to OUT/bin-motifs.tsv. See usage and output.

MTase-linker

This module links methylation motifs to their MTase and, when present, their entire RM system. It needs additional dependencies, installed once with (requires conda):

nanomotif MTase-linker install

This creates a folder ML_dependencies in the current directory (--dependency_dir to change it). Then:

nanomotif MTase-linker run -t 10 --assembly ASSEMBLY.fasta --contig_bin contig_bin.tsv \
    --bin_motifs OUT/bin-motifs.tsv -d ML_dependencies -o mtase_linker

It writes mtase_assignment_table.tsv, the predicted MTase genes and whether a motif could be linked to each, and nanomotif_assignment_table.tsv, bin-motifs.tsv with the linked genes and candidates.

Bin contamination and inclusion

The detect_contamination and include_contigs commands were removed in version 1.2.0. For bin refinement from methylation, see EpiRefine.

What's new

See the changelog.

Citation

Please cite our preprint if you use Nanomotif for your research:

Nanomotif: Leveraging DNA Methylation Motifs for Genome Recovery and Host Association of Plasmids in Metagenomes from Complex Microbial Communities. Søren Heidelbach, Sebastian Mølvang Dall, Jeppe Støtt Bøjer, Jacob Nissen, Lucas Nicolaas Ludovic van der Maas, Mantas Sereika, Rasmus Kirkegaard, Sabrina Just Kousgaard, Ole Thorlacius-Ussing, Sheila I Jensen, Katja Hose, Thomas Dyhre Nielsen, Mads Albertsen. Preprint at bioRxiv https://doi.org/10.1101/2024.04.29.591623 (2024)

License

Nanomotif is released under the MIT License. Feel free to use, modify, and distribute the package in accordance with the terms of the license.

Acknowledgments

Nanomotif builds upon various open-source libraries and tools that are instrumental in its functionality. We would like to express our gratitude to the developers and contributors of these projects for their valuable work.

Metadata

Release files for nanomotif 1.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nanomotif 1.2.4
File Size Uploaded Provenance Actions
nanomotif-1.2.4.tar.gz 17.1 MB Without provenance Details for nanomotif-1.2.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nanomotif 1.2.4
File Interpreter ABI Platform Actions
nanomotif-1.2.4-py3-none-any.whl Python 3 none any Details for nanomotif-1.2.4-py3-none-any.whl

Total release size: 34.2 MB

Release files / nanomotif-1.2.4.tar.gz

Download URL nanomotif-1.2.4.tar.gz
Size 17.1 MB
Tags Source
SHA-256 checksum
How to use checksums
0197dc986625f85b4ac47ee0e710a74b29679a878bd9eb6d6888ca796672e2c4
BLAKE2b-256 checksum
How to use checksums
46ae3830e738c3f64c42b82362a7007b62e472a53f5d3a3a82607454ceed6fbd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / nanomotif-1.2.4-py3-none-any.whl

Download URL nanomotif-1.2.4-py3-none-any.whl
Size 17.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
07f5bb6ba796dc6e5b04e34186ebd121c6aeb284a5709cedf5b3e3cb6bb738fa
BLAKE2b-256 checksum
How to use checksums
09bb20937bf243b0eeb3032ed56ef7b0b5059122ce9700f411ca1de0e9e3dc05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for nanomotif 1.2.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.2.4 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page