A Dynamic Programming Approach to Segment ONT Signals. Dynamont is a segmentation/resquiggling tool for ONT signals. Dynamont was tested on
- RNA002
- RNA004
- DNA R10.4.1 5kHz (I applied the trained transition parameters from the RNA004 model to the DNA R10 models. These should be fine-tuned for the DNA models.)
Please cite 10.1093/gigascience/giag005.
Segmentation Comparison
For further details please read: 10.1093/gigascience/giag005
Installation
Pypi/pip
Recommendation: use uv
uv venv path/to/venv/dynamont
source path/to/venv/dynamont/bin/activate
uv pip install dynamont
Usage
# segment a dataset
dynamont-resquiggle -r <path/to/pod5/dataset/> -b <basecalls.bam> --mode basic -o <output.csv> -p <pore>
# train model
dynamont-train -r <path/to/pod5/dataset/> -b <basecalls.bam> --mode basic -o <output/path> -p <pore>
# choosing a pore will automatically load the default model for that pore, a custom model can be used with the parameter --pore_model <model/path>
Default models:
- rna002 (tested)
- rna004 (tested)
- dna_r9 not available
- dna_r10.4.1 260 bps (not tested)
- dna_r10.4.1 400 bps (tested)
Output
Dynamont produces a tabular output with the following columns:
| Column Name | Description |
|---|---|
| readid | Unique identifier for the read. |
| signalid | Identifier for the signal corresponding to the read. |
| start | Start position of the signal segment in the read. |
| end | End position of the signal segment in the read. |
| basepos | Base position in the read. |
| base | The detected base at this position. |
| motif | The surrounding sequence motif in which the base appears. |
| state | The methylation state (or modification state) of the base. |
| posterior_probability | Probability assigned to the predicted segment. |
| polish | Polished kmer, only available in resquiggle mode. |
Example Output
Below is an example of the output generated by Dynamont:
readid,signalid,start,end,basepos,base,motif,state,posterior_probability,polish
476b4ed2-7865-4f81-9f78-82d614fb40a2,476b4ed2-7865-4f81-9f78-82d614fb40a2,12762,12777,53,A,AAAAAAAAA,M,0.12434,NA
476b4ed2-7865-4f81-9f78-82d614fb40a2,476b4ed2-7865-4f81-9f78-82d614fb40a2,12777,12791,52,A,AAAAAAAAA,M,0.12146,NA
476b4ed2-7865-4f81-9f78-82d614fb40a2,476b4ed2-7865-4f81-9f78-82d614fb40a2,12791,12806,51,A,AAAAAAAAA,M,0.11881,NA
476b4ed2-7865-4f81-9f78-82d614fb40a2,476b4ed2-7865-4f81-9f78-82d614fb40a2,12806,12820,50,A,AAAAAAAAA,M,0.11665,NA
Differences Segmentation Tools
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dynamont-0.9.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: dynamont-0.9.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 9.7 MB
- Tags: CPython 3.12, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
582da23f59dc4d4bbb4bc2c4f140a6d6a32226459278ee28cb09bd08fb71e477
|
|
| MD5 |
725dfcaec5b4cbe7c81220008a8fa54f
|
|
| BLAKE2b-256 |
c2302bcf75ede1cadb4c8a030af310d3254ac00c4409e42d1771f25d98c891de
|
File details
Details for the file dynamont-0.9.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: dynamont-0.9.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 9.7 MB
- Tags: CPython 3.11, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
010220758342a46c56ace12d66f08161a90fe7a578bba637388bcd656139615c
|
|
| MD5 |
d848057f4fb40a3eb4faece0c1160640
|
|
| BLAKE2b-256 |
e945408b5106111bc934e8ec03c2b202d422e058ba4b3aec52e94ecb91e1120d
|
File details
Details for the file dynamont-0.9.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: dynamont-0.9.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 9.7 MB
- Tags: CPython 3.10, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1860a7841a6486c8fea1448499a251cfb511562dcb6dfcba2d3a8effc7ce03dc
|
|
| MD5 |
d378622085f64d98e4632ad93fe8455e
|
|
| BLAKE2b-256 |
19390e6e76d59d59c70bf550747e25d78d5c7af02c015827e539e621e67bd5b3
|