No project description provided
A PyTorch Basecaller for Oxford Nanopore Reads.
$ pip install ont-bonito $ bonito basecaller dna_r9.4.1 /data/reads > basecalls.fasta
If a reference is provided in either
.mmi format then bonito will output in
$ bonito basecaller dna_r9.4.1 --reference reference.mmi /data/reads > basecalls.sam
Current available models are
$ git clone https://github.com/nanoporetech/bonito.git # or fork first and clone that $ cd bonito $ python3 -m venv venv3 $ source venv3/bin/activate (venv3) $ pip install pip==20.3.4 (venv3) $ pip install -r requirements.txt (venv3) $ python setup.py develop (venv3) $ bonito download --models --latest
Training your own model
To train a model using your own reads, first basecall the reads with the additional
--save-ctc flag and use the output directory as the input directory for training.
$ bonito basecaller dna_r9.4.1 --save-ctc --reference reference.mmi /data/reads > /data/training/ctc-data/basecalls.sam $ bonito train --amp --directory /data/training/ctc-data /data/training/model-dir
If you are interested in method development and don't have you own set of reads then a pre-prepared set is provide.
$ bonito download --training $ bonito train --amp /data/training/model-dir
Automatic mixed precision can be used to speed up training with the
--amp flag (however apex needs to be installed manually).
For multi-gpu training use the
$CUDA_VISIBLE_DEVICES environment variable to select which GPUs and add the
$ export CUDA_VISIBLE_DEVICES=0,1,2,3 $ bonito train --amp --multi-gpu --batch 256 /data/model-dir
To evaluate the pretrained model run
bonito evaluate dna_r9.4.1.
For a model you have trainined yourself, replace
dna_r9.4.1 with the model directory.
Pair decoding takes a template and complement read to produce higher quaility calls.
$ bonito pair pairs.csv /data/reads > basecalls.fasta
pairs.csv file is expected to contain pairs of read ids per line (seperated by a single space).
bonito view- view a model architecture for a given
.tomlfile and the number of parameters in the network.
bonito tune- distributed tuning of network hyperparameters.
bonito train- train a bonito model.
bonito convert- convert a hdf5 training file into a bonito format.
bonito evaluate- evaluate a model performance.
bonito download- download pretrained models and training datasets.
bonito basecaller- basecaller (
The Medaka can be downloaded from here.
|Coverage||B. subtilis||E. coli||E. faecalis||L. monocytogenes||P. aeruginosa||S. aureus||S. enterica|
- Sequence Modeling With CTC
- Quartznet: Deep Automatic Speech Recognition With 1D Time-Channel Separable Convolutions
- Pair consensus decoding improves accuracy of neural network basecallers for nanopore sequencing
Licence and Copyright
(c) 2019 Oxford Nanopore Technologies Ltd.
Bonito is distributed under the terms of the Oxford Nanopore Technologies, Ltd. Public License, v. 1.0. If a copy of the License was not distributed with this file, You can obtain one at http://nanoporetech.com
Research releases are provided as technology demonstrators to provide early access to features or stimulate Community development of tools. Support for this software will be minimal and is only provided directly by the developers. Feature requests, improvements, and discussions are welcome and can be implemented by forking and pull requests. However much as we would like to rectify every issue and piece of feedback users may have, the developers may have limited resource for support of this software. Research releases may be unstable and subject to rapid iteration by Oxford Nanopore Technologies.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size ont-bonito-0.3.6.tar.gz (37.2 kB)||File type Source||Python version None||Upload date||Hashes View|