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.3.0

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.3.0
File Size Uploaded Provenance Actions
nanomotif-1.3.0.tar.gz 17.1 MB Without provenance Details for nanomotif-1.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 34.2 MB

Release files / nanomotif-1.3.0.tar.gz

Download URL nanomotif-1.3.0.tar.gz
Size 17.1 MB
Tags Source
SHA-256 checksum
How to use checksums
9b5a48e63950f72fb4ae06460b76d228bf45ab91fbf1c951a826339b96c0a97f
BLAKE2b-256 checksum
How to use checksums
55aee41af5be38cf32070ebf6cefb41387f03245e3b8d1fead6cb5f99614eb2e
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.3.0-py3-none-any.whl

Download URL nanomotif-1.3.0-py3-none-any.whl
Size 17.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
d3fc9674156fb3abfadb22b368aa98a33a7a04e1defc7429bb022ff2560114dd
BLAKE2b-256 checksum
How to use checksums
5e9e459393621988f757d191e124c3e347a3b3a8e4a94246031d593b2d0fe740
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.3.0

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.3.0 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