Nanomotif
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>binfile, 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.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nanomotif-1.2.3.tar.gz | 17.1 MB | Without provenance | Details for nanomotif-1.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nanomotif-1.2.3-py3-none-any.whl | Python 3 | none | any | Details for nanomotif-1.2.3-py3-none-any.whl |
Total release size: 34.2 MB
Release files / nanomotif-1.2.3.tar.gz
| Download URL | nanomotif-1.2.3.tar.gz |
|---|---|
| Size | 17.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
87783e000f2ce2f2ff34c93cb0833d7a2e2df60ddfd6abb6b95902e5b0dca271
|
|
BLAKE2b-256 checksum How to use checksums |
069e2c828032a4049c1734735112689539300cdcb2226cd311c32e6bd3bae8ca
|
| 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.3-py3-none-any.whl
| Download URL | nanomotif-1.2.3-py3-none-any.whl |
|---|---|
| Size | 17.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8f46b9226b73ea445fe85a5456f81ce31affe0e843f8d03eb8a5dc1286fb3c02
|
|
BLAKE2b-256 checksum How to use checksums |
985bff24bb05775344bd5737656aa71b136acd682c9ad6c7b9dda73f2c80d7f7
|
| 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.3
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.