Debian Codegraph @

README.md

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