Nanomotif
Nanomotif is a Python package designed to explore methylation in prokaryotic genomes using Nanopore sequencing. Nanomotif is a fast, scalable, and sensitive tool for identification and utilization of methylation motifs in monocultures and metagenomic samples.
Nanomotif offers
- de novo methylated motif identification
- association of MTases and RM-systems to motifs.
Documentation
Please see the documentation for detailed installation and usage instructions, descriptions of required files, and analysis examples.
Skip the Documentation: Your Quickstart Guide to Nanomotif
Installation
Nanomotif can easily be installed using Conda for managing your Python environments. You can create a new environment and install Nanomotif as follows:
conda create -n nanomotif python=3.12
conda activate nanomotif
conda install -c conda-forge -c bioconda nanomotif
Check installation
Once installed, the installation can be checked by running:
nanomotif check_installation
This runs a test run on a small dataset, ensuring everything works.
For further details, check out the installation guidelines.
Usage
Required files
To identify methylated motifs, the following files are required:
- Assembly (fasta file)
- modkit methylation pileup
- tab-separated file describing
contig-binrelationship.
For further details, check out the required files documentation.
Motif discovery
Whether you are interested in finding methylated motifs in monoculture samples or metagenomic samples, we recomment just running motif_discovery
nanomotif motif_discovery ASSEMBLY.fasta PILEUP.bed CONTIG_BIN.tsv -t THREADS --out OUT
This will create three files: motifs.tsv,motif-scored.tsv, and bin-motifs.tsv. Highly methylated motifs are found in bin-motifs.tsv.
See usage and output for detailed usage and output information.
Bin contamination and inclusion
The detect_contamination and include_contigs commands have been removed and are no longer supported.
MTase-linker
This module tries to link methylation motifs to their corresponding MTase and, when present, their entire RM system.
The MTase-Linker module has additional dependencies that are not automatically installed with Nanomotif. Therefore, before using this module, you must manually install these dependencies using the MTase-linker install command.
The MTase-linker module requires that conda is available on your system.
nanomotif MTase-linker install
This will create a folder named ML_dependencies in your current working directory, containing the required dependencies for the MTase-linker module. You can use the --dependency_dir flag to change the installation location of the ML_dependencies folder.
The installation requires conda to generate a few environments, and it takes a bit time as it runs the workflow on a small dataset to check the installation.
When the additional dependencies are installed you can run the workflow using MTase-linker run
nanomotif MTase-linker run -t 10 --assembly ASSEMBLY.fasta --contig_bin contig_bin.tsv --bin_motifs nanomotif/bin_motifs.tsv -d ML_dependencies -o mtase_linker
Running the nanomotif MTase-linker run command will generate two primary output files: mtase_assignment_table.tsv and nanomotif_assignment_table.tsv. The first file lists all predicted MTase genes in the genome along with their predicted methylation characteristics and whether the module was able to unambiguously assign any detected motifs to the MTase (linked = (True/False)).
The second file includes data from the bin-motifs.tsv of the nanomotif output with two additional columns linked and candidate_genes. The linked variable is a boolean indicator if the motif could be unambiguously linked to a MTase in the bin/genome (TRUE/FALSE). If True the gene_id of the MTase is provided in candidate_gene. If False, the candidate_gene variable lists feasible candidate facilitators of the modification based on motif type and modification type predictions.
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.2
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.2.tar.gz | 17.1 MB | Without provenance | Details for nanomotif-1.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nanomotif-1.2.2-py3-none-any.whl | Python 3 | none | any | Details for nanomotif-1.2.2-py3-none-any.whl |
Total release size: 34.2 MB
Release files / nanomotif-1.2.2.tar.gz
| Download URL | nanomotif-1.2.2.tar.gz |
|---|---|
| Size | 17.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
53cfa49193c8c94e5e41e8e47193e02a06a1b9011ac16093ad54dbbf2e26a571
|
|
BLAKE2b-256 checksum How to use checksums |
7b3524b5ece3d5eaadd55f6ecb41867bd61c3486525389f3932f51c93dee9f47
|
| 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.2-py3-none-any.whl
| Download URL | nanomotif-1.2.2-py3-none-any.whl |
|---|---|
| Size | 17.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6b031dac2dfadaa341c4e8787104becfc41cfe34a082ebcb61d8db3b331eec33
|
|
BLAKE2b-256 checksum How to use checksums |
0e5c9b0720e585b7ae6ea6354f61d5218e6d6da71aa0798068b1e2161ab32e7e
|
| 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.2
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.