
Medaka
======
[](https://pypi.org/project/medaka/)
[](https://pypi.org/project/medaka/)
[](https://anaconda.org/nanoporetech/medaka)
`medaka` is a tool to create consensus sequences and variant calls from
nanopore sequencing data. This task is performed using neural networks applied
a pileup of individual sequencing reads against a reference sequence, mostly commonly
either a draft assembly or a database reference sequence. It provides
state-of-the-art results outperforming sequence-graph based methods and
signal-based methods, whilst also being faster.
© 2018- Oxford Nanopore Technologies Ltd.
Features
--------
* Requires only basecalled data. (`.fasta` or `.fastq`)
* Improved accuracy over graph-based methods (e.g. Racon).
* 50X faster than Nanopolish (and can run on GPUs).
* Includes extras for implementing and training bespoke correction
networks.
* Works on Linux and MacOS.
* Open source (Oxford Nanopore Technologies PLC. Public License Version 1.0)
For creating draft assemblies we recommend [Flye](https://github.com/fenderglass/Flye).
Installation
------------
Medaka can be installed in one of several ways.
**Installation with pip**
Official binary releases of medaka are available on
[PyPI](https://pypi.org/project/medaka/) and can be installed using pip:
pip install medaka
On contemporaray Linux and macOS platforms this will install a precompiled binary,
on other platforms a source distribution may be fetched and compiled.
We recommend using medaka within a virtual environment, viz.:
python3 -m venv medaka
. ./medaka/bin/activate
pip install --upgrade pip
pip install medaka
Using this method requires the user to provide several binaries:
* [samtools](https://github.com/samtools/samtools),
* [minimap2](https://github.com/lh3/minimap2),
* [tabix](https://github.com/samtools/htslib), and
* [bgzip](https://github.com/samtools/htslib)
and place these within the `PATH`. `samtools/bgzip/tabix` versions >=1.14 and
`minimap2` version >=2.17 are recommended as these are those used in development
of medaka.
The default installation has the capacity to run on a GPU (see _Using a GPU_ below),
or on CPU. If you are using `medaka` exclusively on CPU, and don't need the ability
to run on GPU, you may wish to install the CPU-only version with:
pip install medaka-cpu --extra-index-url https://download.pytorch.org/whl/cpu
**Installation with conda**
> The bioconda medaka packages are not supported by Oxford Nanopore Technologies.
For those who prefer the conda package manager, medaka is available via the
[anaconda.org](https://anaconda.org/nanoporetech/medaka) channel:
conda create -n medaka -c conda-forge -c nanoporetech -c bioconda medaka
Installations with this method will bundle the additional tools required to run
an end-to-end correction workflow.
**Installation from source**
> This method is useful only when the above methods have failed,
> as it will assist in building various dependencies. Its unlikely that
> our developers will be able to provide further assistance in your
> specific circumstances if you install using this method.
Medaka can be installed from its source quite easily on most systems.
Before installing medaka it may be required to install some
prerequisite libraries, best installed by a package manager. On Ubuntu
theses are:
> bzip2 g++ zlib1g-dev libbz2-dev liblzma-dev libffi-dev libncurses5-dev
> libcurl4-gnutls-dev libssl-dev curl make cmake wget python3-all-dev
> python-virtualenv
In addition it is required to install and set up git LFS before cloning
the repository.
A Makefile is provided to fetch, compile and install all direct dependencies
into a python virtual environment. To set-up the environment run:
# Note: certain files are stored in git-lfs, https://git-lfs.github.com/,
# which must therefore be installed first.
git clone https://github.com/nanoporetech/medaka.git
cd medaka
make install
. ./venv/bin/activate
Using this method both `samtools` and `minimap2` are built from source and need
not be provided by the user.
When building from source, to install a CPU-only version without the capacity to
run on GPU, modify the above to:
MEDAKA_CPU=1 make install
**Using a GPU**
Since version 2.0 `medaka` uses PyTorch. Prior versions (v1.x) used Tensorflow.
The default version of PyTorch that is installed when building from source or
when installing through `pip` can make immediate use of GPUs via NVIDIA CUDA.
However, note that the `torch` package is compiled against specific versions of
the CUDA and cuDNN libraries; users are directed to the
[torch installation](https://pytorch.org/get-started/locally/) pages for further
information. cuDNN can be obtained from the
[cuDNN Archive](https://developer.nvidia.com/rdp/cudnn-archive), whilst CUDA from
the [CUDA Toolkit Archive](https://developer.nvidia.com/cuda-toolkit-archive).
> Installation with conda is a little different. See the
> [conda-forge]https://conda-forge.org/docs/user/tipsandtricks/#installing-cuda-enabled-packages-like-tensorflow-and-pytorch)
> documentation. In summary, the conda package should do something sensible
> bespoke to the computer it is being installed on.
As described above, if the capability to run on GPU is not required, `medaka-cpu`
can be installed with a CPU-only version of PyTorch that doesn't depend on the
CUDA libraries, as follows:
pip install medaka-cpu --extra-index-url https://download.pytorch.org/whl/cpu
if using the prebuilt packages, or
MEDAKA_CPU=1 make install
if building from source.
*GPU Usage notes*
Depending on your GPU, `medaka` may show out of memory errors when running.
To avoid these the inference batch size can be reduced from the default
value by setting the `-b` option when running `medaka_consensus`. A value
`-b 100` is suitable for 11Gb GPUs.
Usage
-----
`medaka` can be run using its default settings through the `medaka_consensus`
program. An assembly in `.fasta` format and basecalls in `.fasta` or `.fastq`
formats are required. The program uses both `samtools` and `minimap2`. If
medaka has been installed using the from-source method these will be present
within the medaka environment, otherwise they will need to be provided by
the user.
source ${MEDAKA} # i.e. medaka/venv/bin/activate
NPROC=$(nproc)
BASECALLS=basecalls.fa
DRAFT=draft_assm/assm_final.fa
OUTDIR=medaka_consensus
medaka_consensus -i ${BASECALLS} -d ${DRAFT} -o ${OUTDIR} -t ${NPROC}
The variables `BASECALLS`, `DRAFT`, and `OUTDIR` in the above should be set
appropriately. The `-t` option specifies the number of CPU threads to use.
When `medaka_consensus` has finished running, the consensus will be saved to
`${OUTDIR}/consensus.fasta`.
**Haploid variant calling**
Variant calling for haploid samples is enabled through the `medaka_variant`
workflow:
medaka_variant -i <reads.fastq> -r <ref.fasta>
which requires the reads as a `.fasta` or `.fastq` and a reference sequence as a
`.fasta` file.
**Diploid variant calling**
The diploid variant calling workflow that was historically implemented
within the medaka package has been surpassed in accuracy and compute performance by
other methods, it has therefore been deprecated. Our current recommendation for
performing this task is to use [Clair3](https://github.com/HKU-BAL/Clair3) either directly
or through the Oxford Nanopore Technologies provided Nextflow implementation available
through [EPI2ME Labs](https://labs.epi2me.io/wfindex#variant-calling).
Models
------
For best results it is important to specify the correct inference model, according
to the basecaller used. Allowed values can be found by running `medaka tools list\_models`.
**Recent basecallers**
Recent basecaller versions annotate their output with their model version.
In such cases medaka can inspect the files and attempt to select an appropriate
model for itself. This typically works best in the case of BAM output from
basecallers. It will work also for FASTQ input provided the FASTQ has been
created from basecaller output using:
```
samtools fastq -T '*' dorado.bam | gzip -c > dorado.fastq.gz
```
The command `medaka inference` will attempt to automatically determine a
correct model by inspecting its BAM input file. The helper scripts
`medaka_consensus` and `medaka_variant` will make similar attempts
from their FASTQ input.
To inspect files for yourself, the command:
```
medaka tools resolve_model --auto_model <consensus/variant> <input.bam/input.fastq>
```
will print the model that automatic model selection will use.
**Bacterial and plasmid sequencing**
For native data with bacterial modifications, such as bacterial isolates,
metagenomic samples, or plasmids expressed in bacteria, there is a research
model that shows improved consensus accuracy. This model is compatible with
several basecaller versions for the R10 chemistries. By adding the flag `--bacteria`
the bacterial model will be selected if it is compatible with the input basecallers:
```
medaka_consensus -i ${BASECALLS} -d ${DRAFT} -o ${OUTDIR} -t ${NPROC} --bacteria
```
A legacy default model will be used if the bacterial model is not compatible with
the input files. The model selection can be confirmed by running:
```
medaka tools resolve_model --auto_model consensus_bacteria <input.bam/input.fastq>
```
which will display the model `r1041_e82_400bps_bacterial_methylation` if
compatible or the default model name otherwise.
**When automatic selection is unsuccessful, and older basecallers**
If the name of the basecaller model used is known, but has been lost from the input
files, the basecaller model can been provided to medaka directly. It must however
be appended with either `:consensus` or `:variant` according to whether the user
wishing to use the consensus or variant calling medaka model. For example:
```
medaka inference input.bam output.hdf \
--model dna_r10.4.1_e8.2_400bps_hac@v4.1.0:variant
```
will use the medaka variant calling model appropriate for use with the basecaller
model named `dna_r10.4.1_e8.2_400bps_hac@v4.1.0`.
Historically medaka models followed a nomenclature describing both the chemistry
and basecaller versions. These old models are now deprecated, users are encouraged
to rebasecall their data with a more recent basecaller version prior to using medaka.
Improving parallelism
---------------------
The `medaka_consensus` program is good for simple datasets but perhaps not
optimal for running large datasets at scale. A higher level of parallelism
can be achieved by running independently the component steps of
`medaka_consensus`. The program performs three tasks:
1. alignment of reads to input assembly (via `mini_align` which is a thin
veil over `minimap2`)
2. running of consensus algorithm across assembly regions
(`medaka inference`)
3. aggregation of the results of 2. to create consensus sequences
(`medaka sequence`)
The three steps are discrete, and can be split apart and run independently. In
most cases, Step 2. is the bottleneck and can be trivially parallelized. The
`medaka consensus` program can be supplied a `--regions`
argument which will restrict its action to particular assembly sequences from
the `.bam` file output in Step 1. Therefore individual jobs can be run for batches
of assembly sequences simultaneously. In the final step, `medaka stitch`
can take as input one or more of the `.hdf` files output by Step 2.
So in summary something like this is possible:
```
# align reads to assembly
mini_align -i basecalls.fasta -r assembly.fasta -P -m \
-p calls_to_draft.bam -t <threads>
# run lots of jobs like this:
mkdir results
medaka inference calls_to_draft.bam results/contigs1-4.hdf \
--region contig1 contig2 contig3 contig4
...
# wait for jobs, then collate results
medaka sequence results/*.hdf polished.assembly.fasta
```
It is not recommended to specify a value of `--threads` greater than 2 for
`medaka inference` since the compute scaling efficiency is poor beyond this.
Note also that `medaka inference` may been seen to use resources equivalent to
`<threads> + 4` as an additional 4 threads are used for reading and preparing
input data.
Origin of the draft sequence
----------------------------
Medaka has been trained to correct draft sequences output from the
[Flye](https://github.com/fenderglass/Flye) assembler.
Processing a draft sequence from alternative sources (e.g. the output of
[canu](https://github.com/marbl/canu) or
[wtdbg2](https://github.com/ruanjue/wtdbg2)) may lead to different results.
> Historical correction
> models in medaka were trained to correct draft sequences output from the canu
> assembler with [racon](https://github.com/lbcb-sci/racon) applied either once,
> or four times iteratively. For contemporary models this is not the case and
> medaka should be used directly on the output of Flye.
Acknowledgements
----------------
We thank [Joanna Pineda](https://github.com/jopineda) and
[Jared Simpson](https://github.com/jts) for providing htslib code samples which aided
greatly development of the optimised feature generation code, and for testing the
version 0.4 release candidates.
We thank [Devin Drown](https://github.com/devindrown) for
[working through](https://github.com/nanoporetech/medaka/issues/70)
use of `medaka` with his RTX 2080 GPU.
Help
----
**Licence and Copyright**
© 2018- Oxford Nanopore Technologies Ltd.
`medaka` is distributed under the terms of the Oxford Nanopore Technologies PLC. Public License Version 1.0
**Research Release**
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.
Raw data
{
"_id": null,
"home_page": "https://github.com/nanoporetech/medaka",
"name": "medaka",
"maintainer": null,
"docs_url": null,
"requires_python": "<3.12,>=3.8",
"maintainer_email": null,
"keywords": null,
"author": "ont-research",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/a9/d9/d1231b92b0591d07cd28293f3698842be938c2843c7f24b22494eb2039a6/medaka-2.0.1.tar.gz",
"platform": null,
"description": "\n\n\n\nMedaka\n======\n\n[](https://pypi.org/project/medaka/)\n[](https://pypi.org/project/medaka/)\n[](https://anaconda.org/nanoporetech/medaka)\n\n\n`medaka` is a tool to create consensus sequences and variant calls from\nnanopore sequencing data. This task is performed using neural networks applied\na pileup of individual sequencing reads against a reference sequence, mostly commonly\neither a draft assembly or a database reference sequence. It provides\nstate-of-the-art results outperforming sequence-graph based methods and\nsignal-based methods, whilst also being faster.\n\n\u00a9 2018- Oxford Nanopore Technologies Ltd.\n\nFeatures\n--------\n\n * Requires only basecalled data. (`.fasta` or `.fastq`)\n * Improved accuracy over graph-based methods (e.g. Racon).\n * 50X faster than Nanopolish (and can run on GPUs).\n * Includes extras for implementing and training bespoke correction\n networks.\n * Works on Linux and MacOS.\n * Open source (Oxford Nanopore Technologies PLC. Public License Version 1.0)\n\nFor creating draft assemblies we recommend [Flye](https://github.com/fenderglass/Flye).\n\nInstallation\n------------\n\nMedaka can be installed in one of several ways.\n\n**Installation with pip**\n\nOfficial binary releases of medaka are available on\n[PyPI](https://pypi.org/project/medaka/) and can be installed using pip:\n\n pip install medaka\n\nOn contemporaray Linux and macOS platforms this will install a precompiled binary,\non other platforms a source distribution may be fetched and compiled.\n\nWe recommend using medaka within a virtual environment, viz.:\n\n python3 -m venv medaka\n . ./medaka/bin/activate\n pip install --upgrade pip\n pip install medaka\n\nUsing this method requires the user to provide several binaries:\n\n * [samtools](https://github.com/samtools/samtools),\n * [minimap2](https://github.com/lh3/minimap2),\n * [tabix](https://github.com/samtools/htslib), and\n * [bgzip](https://github.com/samtools/htslib)\n\nand place these within the `PATH`. `samtools/bgzip/tabix` versions >=1.14 and\n`minimap2` version >=2.17 are recommended as these are those used in development\nof medaka.\n\nThe default installation has the capacity to run on a GPU (see _Using a GPU_ below),\nor on CPU. If you are using `medaka` exclusively on CPU, and don't need the ability\nto run on GPU, you may wish to install the CPU-only version with:\n\n pip install medaka-cpu --extra-index-url https://download.pytorch.org/whl/cpu\n\n\n**Installation with conda**\n\n> The bioconda medaka packages are not supported by Oxford Nanopore Technologies.\n\nFor those who prefer the conda package manager, medaka is available via the\n[anaconda.org](https://anaconda.org/nanoporetech/medaka) channel:\n\n conda create -n medaka -c conda-forge -c nanoporetech -c bioconda medaka\n\nInstallations with this method will bundle the additional tools required to run\nan end-to-end correction workflow.\n\n**Installation from source**\n\n> This method is useful only when the above methods have failed, \n> as it will assist in building various dependencies. Its unlikely that\n> our developers will be able to provide further assistance in your\n> specific circumstances if you install using this method.\n\nMedaka can be installed from its source quite easily on most systems.\n\n Before installing medaka it may be required to install some\n prerequisite libraries, best installed by a package manager. On Ubuntu\n theses are:\n > bzip2 g++ zlib1g-dev libbz2-dev liblzma-dev libffi-dev libncurses5-dev\n > libcurl4-gnutls-dev libssl-dev curl make cmake wget python3-all-dev\n > python-virtualenv\n In addition it is required to install and set up git LFS before cloning\n the repository.\n\nA Makefile is provided to fetch, compile and install all direct dependencies\ninto a python virtual environment. To set-up the environment run:\n\n # Note: certain files are stored in git-lfs, https://git-lfs.github.com/,\n # which must therefore be installed first.\n git clone https://github.com/nanoporetech/medaka.git\n cd medaka\n make install\n . ./venv/bin/activate\n\nUsing this method both `samtools` and `minimap2` are built from source and need\nnot be provided by the user.\n\nWhen building from source, to install a CPU-only version without the capacity to\nrun on GPU, modify the above to:\n\n MEDAKA_CPU=1 make install\n\n\n**Using a GPU**\n\nSince version 2.0 `medaka` uses PyTorch. Prior versions (v1.x) used Tensorflow.\n\nThe default version of PyTorch that is installed when building from source or \nwhen installing through `pip` can make immediate use of GPUs via NVIDIA CUDA.\nHowever, note that the `torch` package is compiled against specific versions of\nthe CUDA and cuDNN libraries; users are directed to the \n[torch installation](https://pytorch.org/get-started/locally/) pages for further\ninformation. cuDNN can be obtained from the \n[cuDNN Archive](https://developer.nvidia.com/rdp/cudnn-archive), whilst CUDA from\nthe [CUDA Toolkit Archive](https://developer.nvidia.com/cuda-toolkit-archive).\n\n> Installation with conda is a little different. See the\n> [conda-forge]https://conda-forge.org/docs/user/tipsandtricks/#installing-cuda-enabled-packages-like-tensorflow-and-pytorch)\n> documentation. In summary, the conda package should do something sensible\n> bespoke to the computer it is being installed on.\n\nAs described above, if the capability to run on GPU is not required, `medaka-cpu`\ncan be installed with a CPU-only version of PyTorch that doesn't depend on the\nCUDA libraries, as follows:\n\n pip install medaka-cpu --extra-index-url https://download.pytorch.org/whl/cpu\n\nif using the prebuilt packages, or \n\n MEDAKA_CPU=1 make install\n\nif building from source.\n\n*GPU Usage notes*\n\nDepending on your GPU, `medaka` may show out of memory errors when running.\nTo avoid these the inference batch size can be reduced from the default\nvalue by setting the `-b` option when running `medaka_consensus`. A value\n`-b 100` is suitable for 11Gb GPUs.\n\n\nUsage\n-----\n\n`medaka` can be run using its default settings through the `medaka_consensus`\nprogram. An assembly in `.fasta` format and basecalls in `.fasta` or `.fastq`\nformats are required. The program uses both `samtools` and `minimap2`. If\nmedaka has been installed using the from-source method these will be present\nwithin the medaka environment, otherwise they will need to be provided by\nthe user.\n\n source ${MEDAKA} # i.e. medaka/venv/bin/activate\n NPROC=$(nproc)\n BASECALLS=basecalls.fa\n DRAFT=draft_assm/assm_final.fa\n OUTDIR=medaka_consensus\n medaka_consensus -i ${BASECALLS} -d ${DRAFT} -o ${OUTDIR} -t ${NPROC}\n\nThe variables `BASECALLS`, `DRAFT`, and `OUTDIR` in the above should be set\nappropriately. The `-t` option specifies the number of CPU threads to use. \n\nWhen `medaka_consensus` has finished running, the consensus will be saved to\n`${OUTDIR}/consensus.fasta`.\n\n\n**Haploid variant calling**\n\nVariant calling for haploid samples is enabled through the `medaka_variant`\nworkflow:\n\n medaka_variant -i <reads.fastq> -r <ref.fasta>\n \nwhich requires the reads as a `.fasta` or `.fastq` and a reference sequence as a\n`.fasta` file.\n\n\n**Diploid variant calling**\n\nThe diploid variant calling workflow that was historically implemented\nwithin the medaka package has been surpassed in accuracy and compute performance by\nother methods, it has therefore been deprecated. Our current recommendation for\nperforming this task is to use [Clair3](https://github.com/HKU-BAL/Clair3) either directly\nor through the Oxford Nanopore Technologies provided Nextflow implementation available\nthrough [EPI2ME Labs](https://labs.epi2me.io/wfindex#variant-calling).\n\n\nModels\n------\n\nFor best results it is important to specify the correct inference model, according\nto the basecaller used. Allowed values can be found by running `medaka tools list\\_models`.\n\n**Recent basecallers**\n\nRecent basecaller versions annotate their output with their model version.\nIn such cases medaka can inspect the files and attempt to select an appropriate\nmodel for itself. This typically works best in the case of BAM output from\nbasecallers. It will work also for FASTQ input provided the FASTQ has been\ncreated from basecaller output using:\n\n```\nsamtools fastq -T '*' dorado.bam | gzip -c > dorado.fastq.gz\n```\n\nThe command `medaka inference` will attempt to automatically determine a\ncorrect model by inspecting its BAM input file. The helper scripts\n`medaka_consensus` and `medaka_variant` will make similar attempts\nfrom their FASTQ input.\n\nTo inspect files for yourself, the command:\n\n```\nmedaka tools resolve_model --auto_model <consensus/variant> <input.bam/input.fastq>\n```\n\nwill print the model that automatic model selection will use.\n\n**Bacterial and plasmid sequencing**\n\nFor native data with bacterial modifications, such as bacterial isolates,\nmetagenomic samples, or plasmids expressed in bacteria, there is a research\nmodel that shows improved consensus accuracy. This model is compatible with\nseveral basecaller versions for the R10 chemistries. By adding the flag `--bacteria`\nthe bacterial model will be selected if it is compatible with the input basecallers:\n\n```\nmedaka_consensus -i ${BASECALLS} -d ${DRAFT} -o ${OUTDIR} -t ${NPROC} --bacteria\n```\n\nA legacy default model will be used if the bacterial model is not compatible with\nthe input files. The model selection can be confirmed by running:\n\n```\nmedaka tools resolve_model --auto_model consensus_bacteria <input.bam/input.fastq>\n```\n\nwhich will display the model `r1041_e82_400bps_bacterial_methylation` if\ncompatible or the default model name otherwise.\n\n**When automatic selection is unsuccessful, and older basecallers**\n\nIf the name of the basecaller model used is known, but has been lost from the input\nfiles, the basecaller model can been provided to medaka directly. It must however\nbe appended with either `:consensus` or `:variant` according to whether the user\nwishing to use the consensus or variant calling medaka model. For example:\n\n```\nmedaka inference input.bam output.hdf \\\n --model dna_r10.4.1_e8.2_400bps_hac@v4.1.0:variant\n```\n\nwill use the medaka variant calling model appropriate for use with the basecaller\nmodel named `dna_r10.4.1_e8.2_400bps_hac@v4.1.0`.\n\nHistorically medaka models followed a nomenclature describing both the chemistry\nand basecaller versions. These old models are now deprecated, users are encouraged\nto rebasecall their data with a more recent basecaller version prior to using medaka.\n\n\nImproving parallelism\n---------------------\n\nThe `medaka_consensus` program is good for simple datasets but perhaps not\noptimal for running large datasets at scale. A higher level of parallelism\ncan be achieved by running independently the component steps of\n`medaka_consensus`. The program performs three tasks:\n\n1. alignment of reads to input assembly (via `mini_align` which is a thin\n veil over `minimap2`)\n2. running of consensus algorithm across assembly regions\n (`medaka inference`)\n3. aggregation of the results of 2. to create consensus sequences\n (`medaka sequence`)\n\nThe three steps are discrete, and can be split apart and run independently. In\nmost cases, Step 2. is the bottleneck and can be trivially parallelized. The\n`medaka consensus` program can be supplied a `--regions`\nargument which will restrict its action to particular assembly sequences from\nthe `.bam` file output in Step 1. Therefore individual jobs can be run for batches\nof assembly sequences simultaneously. In the final step, `medaka stitch`\ncan take as input one or more of the `.hdf` files output by Step 2.\n\nSo in summary something like this is possible:\n\n```\n# align reads to assembly\nmini_align -i basecalls.fasta -r assembly.fasta -P -m \\\n -p calls_to_draft.bam -t <threads>\n# run lots of jobs like this:\nmkdir results\nmedaka inference calls_to_draft.bam results/contigs1-4.hdf \\\n --region contig1 contig2 contig3 contig4\n...\n# wait for jobs, then collate results\nmedaka sequence results/*.hdf polished.assembly.fasta\n```\n\nIt is not recommended to specify a value of `--threads` greater than 2 for\n`medaka inference` since the compute scaling efficiency is poor beyond this.\nNote also that `medaka inference` may been seen to use resources equivalent to\n`<threads> + 4` as an additional 4 threads are used for reading and preparing\ninput data.\n\n\nOrigin of the draft sequence\n----------------------------\n\nMedaka has been trained to correct draft sequences output from the\n[Flye](https://github.com/fenderglass/Flye) assembler.\n\nProcessing a draft sequence from alternative sources (e.g. the output of\n[canu](https://github.com/marbl/canu) or\n[wtdbg2](https://github.com/ruanjue/wtdbg2)) may lead to different results.\n\n> Historical correction\n> models in medaka were trained to correct draft sequences output from the canu\n> assembler with [racon](https://github.com/lbcb-sci/racon) applied either once,\n> or four times iteratively. For contemporary models this is not the case and\n> medaka should be used directly on the output of Flye.\n\n\n\nAcknowledgements\n----------------\n\nWe thank [Joanna Pineda](https://github.com/jopineda) and\n[Jared Simpson](https://github.com/jts) for providing htslib code samples which aided\ngreatly development of the optimised feature generation code, and for testing the\nversion 0.4 release candidates.\n\nWe thank [Devin Drown](https://github.com/devindrown) for\n[working through](https://github.com/nanoporetech/medaka/issues/70)\nuse of `medaka` with his RTX 2080 GPU.\n\nHelp\n----\n\n**Licence and Copyright**\n\n\u00a9 2018- Oxford Nanopore Technologies Ltd.\n\n`medaka` is distributed under the terms of the Oxford Nanopore Technologies PLC. Public License Version 1.0\n\n**Research Release**\n\nResearch releases are provided as technology demonstrators to provide early\naccess to features or stimulate Community development of tools. Support for\nthis software will be minimal and is only provided directly by the developers.\nFeature requests, improvements, and discussions are welcome and can be\nimplemented by forking and pull requests. However much as we would\nlike to rectify every issue and piece of feedback users may have, the\ndevelopers may have limited resource for support of this software. Research\nreleases may be unstable and subject to rapid iteration by Oxford Nanopore\nTechnologies.\n",
"bugtrack_url": null,
"license": null,
"summary": "Neural network sequence error correction.",
"version": "2.0.1",
"project_urls": {
"Homepage": "https://github.com/nanoporetech/medaka"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "2307ed559db44ee68313128f6e09b480e0b1893c83532e1fe8d31e8f1ed2deea",
"md5": "6edd2098b07026966268e31014ea8e63",
"sha256": "5c46075c2aeee47e164b902f3f840e5c7421c6c327bc45043584d3e14553d7b5"
},
"downloads": -1,
"filename": "medaka-2.0.1-cp310-cp310-macosx_12_0_arm64.whl",
"has_sig": false,
"md5_digest": "6edd2098b07026966268e31014ea8e63",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": "<3.12,>=3.8",
"size": 8644524,
"upload_time": "2024-10-11T08:58:01",
"upload_time_iso_8601": "2024-10-11T08:58:01.646631Z",
"url": "https://files.pythonhosted.org/packages/23/07/ed559db44ee68313128f6e09b480e0b1893c83532e1fe8d31e8f1ed2deea/medaka-2.0.1-cp310-cp310-macosx_12_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "7156c44166d502e2f7aa2fd5b6bab13c826511c788af4f8a293c02a7b52a735f",
"md5": "4d8bf1e4f13a91b5c49f0292350b2759",
"sha256": "0514969192e7125f3b2c9b6554dd01b7982c956e717dafce1afd2e1a06c50f96"
},
"downloads": -1,
"filename": "medaka-2.0.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
"has_sig": false,
"md5_digest": "4d8bf1e4f13a91b5c49f0292350b2759",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": "<3.12,>=3.8",
"size": 10349077,
"upload_time": "2024-10-11T08:58:06",
"upload_time_iso_8601": "2024-10-11T08:58:06.892550Z",
"url": "https://files.pythonhosted.org/packages/71/56/c44166d502e2f7aa2fd5b6bab13c826511c788af4f8a293c02a7b52a735f/medaka-2.0.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "b25c9c13073e97df6e99c4c510e066a76e90fbc48d9515b83eba041b5ac83e7f",
"md5": "cad084fdcb4e977dc420f289e46496a2",
"sha256": "23644d7ca7798e1c2192b77426e2c8de5bdb92dbfcd156fc20580dc44542ff43"
},
"downloads": -1,
"filename": "medaka-2.0.1-cp310-cp310-manylinux_2_28_x86_64.whl",
"has_sig": false,
"md5_digest": "cad084fdcb4e977dc420f289e46496a2",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": "<3.12,>=3.8",
"size": 11082048,
"upload_time": "2024-10-11T08:58:13",
"upload_time_iso_8601": "2024-10-11T08:58:13.855062Z",
"url": "https://files.pythonhosted.org/packages/b2/5c/9c13073e97df6e99c4c510e066a76e90fbc48d9515b83eba041b5ac83e7f/medaka-2.0.1-cp310-cp310-manylinux_2_28_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "40bab23538e398a9f81e79560cbddfa45755cc0994ef15d9243f48bdf7c64e76",
"md5": "e7252bc75133a18133f31ce70d515383",
"sha256": "9b4c69595616813c57637d2f0467b980a54c8e9fe08176910f5d894302d27c04"
},
"downloads": -1,
"filename": "medaka-2.0.1-cp311-cp311-macosx_12_0_arm64.whl",
"has_sig": false,
"md5_digest": "e7252bc75133a18133f31ce70d515383",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": "<3.12,>=3.8",
"size": 8644528,
"upload_time": "2024-10-11T08:58:19",
"upload_time_iso_8601": "2024-10-11T08:58:19.498402Z",
"url": "https://files.pythonhosted.org/packages/40/ba/b23538e398a9f81e79560cbddfa45755cc0994ef15d9243f48bdf7c64e76/medaka-2.0.1-cp311-cp311-macosx_12_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "be844168eff0d3e9930254c06ae97b80266e9a5ae7147a84331dc4ccfdcb93ec",
"md5": "06e8838d7a5027b981a8ed2ff93f1151",
"sha256": "4113514195f5d0ccec19be614a36efdba37e94af66dd8b88048b6e28df543c48"
},
"downloads": -1,
"filename": "medaka-2.0.1-cp311-cp311-manylinux_2_28_x86_64.whl",
"has_sig": false,
"md5_digest": "06e8838d7a5027b981a8ed2ff93f1151",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": "<3.12,>=3.8",
"size": 11082045,
"upload_time": "2024-10-11T08:58:25",
"upload_time_iso_8601": "2024-10-11T08:58:25.807354Z",
"url": "https://files.pythonhosted.org/packages/be/84/4168eff0d3e9930254c06ae97b80266e9a5ae7147a84331dc4ccfdcb93ec/medaka-2.0.1-cp311-cp311-manylinux_2_28_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "2b9d6a12b208f78e1dde5ac69d4e18a33216b7211f06ed4fdf90e35e32572f66",
"md5": "7d55095af5ab11c289ea71941a893cb7",
"sha256": "369f77b4d787bd10c45447007eb5e97a2beb5d2fda9a002cffd4158f748be3f9"
},
"downloads": -1,
"filename": "medaka-2.0.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
"has_sig": false,
"md5_digest": "7d55095af5ab11c289ea71941a893cb7",
"packagetype": "bdist_wheel",
"python_version": "cp38",
"requires_python": "<3.12,>=3.8",
"size": 10349326,
"upload_time": "2024-10-11T08:58:32",
"upload_time_iso_8601": "2024-10-11T08:58:32.680327Z",
"url": "https://files.pythonhosted.org/packages/2b/9d/6a12b208f78e1dde5ac69d4e18a33216b7211f06ed4fdf90e35e32572f66/medaka-2.0.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8040b525c3d0421ed9f7d938ba611ac490e2e22bbfc9648c90c8ae5165b87c9a",
"md5": "2418e7c569548ed6b5b1886273a1ba41",
"sha256": "18a1176014ffb321a72d3431f1ae68df6f2eca8c4d17ea2ddc0032e8f7ce356f"
},
"downloads": -1,
"filename": "medaka-2.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "2418e7c569548ed6b5b1886273a1ba41",
"packagetype": "bdist_wheel",
"python_version": "cp38",
"requires_python": "<3.12,>=3.8",
"size": 10687805,
"upload_time": "2024-10-11T08:58:39",
"upload_time_iso_8601": "2024-10-11T08:58:39.753012Z",
"url": "https://files.pythonhosted.org/packages/80/40/b525c3d0421ed9f7d938ba611ac490e2e22bbfc9648c90c8ae5165b87c9a/medaka-2.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "63a4c32e5bb6ff55f7ed3f0beb41ef70690cf876d4d26030109548e4f2cccaf3",
"md5": "f72f8bb494fac4f8f2cb2e9ef30da759",
"sha256": "ac1750813388b50d3c78c5dd3215367154fd2216cfadfb8bea995e9174fe49b2"
},
"downloads": -1,
"filename": "medaka-2.0.1-cp38-cp38-manylinux_2_28_x86_64.whl",
"has_sig": false,
"md5_digest": "f72f8bb494fac4f8f2cb2e9ef30da759",
"packagetype": "bdist_wheel",
"python_version": "cp38",
"requires_python": "<3.12,>=3.8",
"size": 11082232,
"upload_time": "2024-10-11T08:58:46",
"upload_time_iso_8601": "2024-10-11T08:58:46.177262Z",
"url": "https://files.pythonhosted.org/packages/63/a4/c32e5bb6ff55f7ed3f0beb41ef70690cf876d4d26030109548e4f2cccaf3/medaka-2.0.1-cp38-cp38-manylinux_2_28_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "559aa8b7af43df4399aa29c6fa6fc4e49228bae3f64622f52339c03c99ce1416",
"md5": "df19554f3d2696edc3cbc4bf0bed3092",
"sha256": "4f93733b7e104e132c2e5b5aa8405d2c40ce5ea8c2e0a9457bdb465d955e306a"
},
"downloads": -1,
"filename": "medaka-2.0.1-cp39-cp39-macosx_12_0_arm64.whl",
"has_sig": false,
"md5_digest": "df19554f3d2696edc3cbc4bf0bed3092",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": "<3.12,>=3.8",
"size": 8644528,
"upload_time": "2024-10-11T08:58:52",
"upload_time_iso_8601": "2024-10-11T08:58:52.518132Z",
"url": "https://files.pythonhosted.org/packages/55/9a/a8b7af43df4399aa29c6fa6fc4e49228bae3f64622f52339c03c99ce1416/medaka-2.0.1-cp39-cp39-macosx_12_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "776a918e1146321f567331a022ff6e8b57c75e934af9ec7072bde372ea4759a1",
"md5": "b904bfcdafe073e6574fe5c3db591634",
"sha256": "002b4e0050443c6faef57d816a2d24d6b9419c43d2e982a0d55c724bf4b2fdf3"
},
"downloads": -1,
"filename": "medaka-2.0.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
"has_sig": false,
"md5_digest": "b904bfcdafe073e6574fe5c3db591634",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": "<3.12,>=3.8",
"size": 10349061,
"upload_time": "2024-10-11T08:58:58",
"upload_time_iso_8601": "2024-10-11T08:58:58.924527Z",
"url": "https://files.pythonhosted.org/packages/77/6a/918e1146321f567331a022ff6e8b57c75e934af9ec7072bde372ea4759a1/medaka-2.0.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "849ae8e339951d6701d58a41d2147f24b9a785f8bb210e5dd166c37ebf047048",
"md5": "cbbac4dfd67ea41242e062f9f31cce98",
"sha256": "cbf4db20a121724cfcd4cec5d8b28af1575b56cc59fbbc651834330232f29b1b"
},
"downloads": -1,
"filename": "medaka-2.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "cbbac4dfd67ea41242e062f9f31cce98",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": "<3.12,>=3.8",
"size": 10687702,
"upload_time": "2024-10-11T08:59:04",
"upload_time_iso_8601": "2024-10-11T08:59:04.747009Z",
"url": "https://files.pythonhosted.org/packages/84/9a/e8e339951d6701d58a41d2147f24b9a785f8bb210e5dd166c37ebf047048/medaka-2.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "54cba48a29e163e0d490f77e3559713d03337151aa1cc68934feec669205294e",
"md5": "a08441292f6dedd3366d6f61c79a5f94",
"sha256": "b4c65db09c821a03a8e299896d1a97b302a7ea39658a0a4a9f820d2edf01dfe3"
},
"downloads": -1,
"filename": "medaka-2.0.1-cp39-cp39-manylinux_2_28_x86_64.whl",
"has_sig": false,
"md5_digest": "a08441292f6dedd3366d6f61c79a5f94",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": "<3.12,>=3.8",
"size": 11082049,
"upload_time": "2024-10-11T08:59:09",
"upload_time_iso_8601": "2024-10-11T08:59:09.962863Z",
"url": "https://files.pythonhosted.org/packages/54/cb/a48a29e163e0d490f77e3559713d03337151aa1cc68934feec669205294e/medaka-2.0.1-cp39-cp39-manylinux_2_28_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a9d9d1231b92b0591d07cd28293f3698842be938c2843c7f24b22494eb2039a6",
"md5": "6c89e59a2ebad1ba9672cb5c32aafff5",
"sha256": "7b7a0dc558f19d10fe8eb588f709a179ef5204a53aad5cfdfbd5c57039193a9f"
},
"downloads": -1,
"filename": "medaka-2.0.1.tar.gz",
"has_sig": false,
"md5_digest": "6c89e59a2ebad1ba9672cb5c32aafff5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<3.12,>=3.8",
"size": 9598794,
"upload_time": "2024-10-11T08:59:55",
"upload_time_iso_8601": "2024-10-11T08:59:55.877013Z",
"url": "https://files.pythonhosted.org/packages/a9/d9/d1231b92b0591d07cd28293f3698842be938c2843c7f24b22494eb2039a6/medaka-2.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-11 08:59:55",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "nanoporetech",
"github_project": "medaka",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"requirements": [],
"lcname": "medaka"
}