1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
# nanomath
This module provides a few simple math and statistics functions for other scripts processing Oxford Nanopore sequencing data
[](https://twitter.com/wouter_decoster)
[](https://anaconda.org/bioconda/nanomath)
[](https://tracker.debian.org/pkg/python-nanomath)
[](https://travis-ci.org/wdecoster/nanomath)
[](https://landscape.io/github/wdecoster/nanomath/master)
## FUNCTIONS
* Calculate read N50 from a set of lengths `get_N50(readlenghts)`
* Remove extreme length outliers from a dataset `remove_length_outliers(dataframe, columname)`
* Calculate the average Phred quality of a read `ave_qual(qualscores)`
* Write out the statistics report after calling readstats function `write_stats(dataframe, outputname)`
* Compute a number of statistics, return a dictionary `calc_read_stats(dataframe)`
## INSTALLATION
```bash
pip install nanomath
```
or
[](https://anaconda.org/bioconda/nanomath)
```
conda install -c bioconda nanomath
```
## STATUS
[](https://travis-ci.org/wdecoster/nanomath)
## CONTRIBUTORS
[@alexomics](https://github.com/alexomics) for fixing the indentation of the printed stats
## CITATION
If you use this tool, please consider citing our [publication](https://academic.oup.com/bioinformatics/advance-article/doi/10.1093/bioinformatics/bty149/4934939).
|