| 1 |
nanomath |
| 2 |
======== |
| 3 |
|
| 4 |
This module provides a few simple math and statistics functions for |
| 5 |
other scripts processing Oxford Nanopore sequencing data |
| 6 |
|
| 7 |
|Twitter URL| |install with conda| |install with Debian| |
| 8 |
|
| 9 |
FUNCTIONS |
| 10 |
--------- |
| 11 |
|
| 12 |
- Calculate read N50 from a set of lengths ``get_N50(readlenghts)`` |
| 13 |
- Remove extreme length outliers from a dataset |
| 14 |
``remove_length_outliers(dataframe, columname)`` |
| 15 |
- Calculate the average Phred quality of a read |
| 16 |
``ave_qual(qualscores)`` |
| 17 |
- Write out the statistics report after calling readstats function |
| 18 |
``write_stats(dataframe, outputname)`` |
| 19 |
- Compute a number of statistics, return a dictionary |
| 20 |
``calc_read_stats(dataframe)`` |
| 21 |
|
| 22 |
As of **v1.3.0**, nanomath calculates the average quality differently, |
| 23 |
by first converting per-read phred scale averages to error rates, take |
| 24 |
the average, and converting back |
| 25 |
(`nanostat#40 <https://github.com/wdecoster/nanostat/issues/40>`__) |
| 26 |
|
| 27 |
INSTALLATION |
| 28 |
------------ |
| 29 |
|
| 30 |
.. code:: bash |
| 31 |
|
| 32 |
pip install nanomath |
| 33 |
|
| 34 |
| or |
| 35 |
| |install with conda| |
| 36 |
|
| 37 |
:: |
| 38 |
|
| 39 |
conda install -c bioconda nanomath |
| 40 |
|
| 41 |
CONTRIBUTORS |
| 42 |
------------ |
| 43 |
|
| 44 |
[@alexomics](https://github.com/alexomics) for fixing the indentation of |
| 45 |
the printed stats |
| 46 |
|
| 47 |
CITATION |
| 48 |
-------- |
| 49 |
|
| 50 |
If you use this tool, please consider citing our |
| 51 |
`publication <https://academic.oup.com/bioinformatics/advance-article/doi/10.1093/bioinformatics/bty149/4934939>`__. |
| 52 |
|
| 53 |
.. |Twitter URL| image:: https://img.shields.io/twitter/url/https/twitter.com/wouter_decoster.svg?style=social&label=Follow%20%40wouter_decoster |
| 54 |
:target: https://twitter.com/wouter_decoster |
| 55 |
.. |install with conda| image:: https://anaconda.org/bioconda/nanomath/badges/installer/conda.svg |
| 56 |
:target: https://anaconda.org/bioconda/nanomath |
| 57 |
.. |install with Debian| image:: https://www.debian.org/logos/button-mini.png |
| 58 |
:target: https://tracker.debian.org/pkg/python-nanomath |