Skip to main content

# nanomath

This module provides a few simple math and statistics functions for other scripts processing Oxford Nanopore sequencing data

[![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) [![install with conda](https://anaconda.org/bioconda/nanomath/badges/installer/conda.svg)](https://anaconda.org/bioconda/nanomath) [![install with Debian](https://www.debian.org/logos/button-mini.png)](https://tracker.debian.org/pkg/python-nanomath)

## 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)

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>))

## INSTALLATION

`bash pip install nanomath `

or [![install with conda](https://anaconda.org/bioconda/nanomath/badges/installer/conda.svg)](https://anaconda.org/bioconda/nanomath)

` conda install -c bioconda 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).

Release files for nanomath 1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nanomath 1.4.0
File Size Uploaded
nanomath-1.4.0.tar.gz 18.8 kB Details

Release files / nanomath-1.4.0.tar.gz

Download URL nanomath-1.4.0.tar.gz
Size 18.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ed7a38fbb156d9a68a95c2570fe3c2035321d0a3e234580496750afca4927ced
BLAKE2b-256 checksum
How to use checksums
fde54ce733aa2f62470fd79523a56f55033589394b49b2ee746521db16e5846a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Release history Release notifications | RSS feed

This release

1.4.0 This release

1 release file

1.3.0

1 release file

1.2.1

1 release file

1.2.0

1 release file

1.0.1

1 release file

1.0.0

1 release file

0.23.3

1 release file

0.23.2

1 release file

0.23.1

1 release file

0.23.0

1 release file

0.22.0

1 release file

0.21.0

1 release file

0.20.0

1 release file

0.19.1

1 release file

0.19.0

1 release file

0.18.1

1 release file

0.18.0

1 release file

0.17.1

1 release file

0.17.0

1 release file

0.16.2

1 release file

0.15.3

1 release file

0.15.2

1 release file

0.15.1

1 release file

0.15.0

1 release file

0.14.2

1 release file

0.14.0

1 release file

0.13.3

1 release file

0.13.2

1 release file

0.13.1

1 release file

0.13.0

1 release file

0.12.8

1 release file

0.12.7

1 release file

0.12.6

1 release file

0.12.5

1 release file

0.12.4

1 release file

0.12.3

1 release file

0.12.0

1 release file

0.11.0

1 release file

0.10.5

1 release file

0.10.4

1 release file

0.10.3

1 release file

0.10.2

1 release file

0.10.1

1 release file

0.10.0

1 release file

0.9.4

1 release file

0.9.3

1 release file

0.9.1

1 release file

0.9.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page