nanomath


Namenanomath JSON
Version 1.3.0 PyPI version JSON
download
home_pagehttps://github.com/wdecoster/nanomath
SummaryA few simple math function for other Oxford Nanopore processing scripts
upload_time2023-03-21 20:14:58
maintainer
docs_urlNone
authorWouter De Coster
requires_python>=3
licenseGPLv3
keywords nanopore sequencing plotting quality control
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            # 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).

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/wdecoster/nanomath",
    "name": "nanomath",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3",
    "maintainer_email": "",
    "keywords": "nanopore sequencing plotting quality control",
    "author": "Wouter De Coster",
    "author_email": "decosterwouter@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/0f/e5/479842600ed2050f0ce8e3229a8feea388547cd7b4b89bf0d698380e3870/nanomath-1.3.0.tar.gz",
    "platform": null,
    "description": "# nanomath\n\nThis module provides a few simple math and statistics functions for other scripts processing Oxford Nanopore sequencing data\n\n[![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)\n[![install with conda](https://anaconda.org/bioconda/nanomath/badges/installer/conda.svg)](https://anaconda.org/bioconda/nanomath)\n[![install with Debian](https://www.debian.org/logos/button-mini.png)](https://tracker.debian.org/pkg/python-nanomath)\n\n## FUNCTIONS\n\n* Calculate read N50 from a set of lengths `get_N50(readlenghts)`  \n* Remove extreme length outliers from a dataset `remove_length_outliers(dataframe, columname)`  \n* Calculate the average Phred quality of a read `ave_qual(qualscores)`  \n* Write out the statistics report after calling readstats function `write_stats(dataframe, outputname)`  \n* Compute a number of statistics, return a dictionary `calc_read_stats(dataframe)`  \n\nAs 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>))\n\n## INSTALLATION\n\n```bash\npip install nanomath\n```\n\nor  \n[![install with conda](https://anaconda.org/bioconda/nanomath/badges/installer/conda.svg)](https://anaconda.org/bioconda/nanomath)\n\n```\nconda install -c bioconda nanomath\n```\n\n## CONTRIBUTORS\n\n[@alexomics](https://github.com/alexomics) for fixing the indentation of the printed stats\n\n## CITATION\n\nIf you use this tool, please consider citing our [publication](https://academic.oup.com/bioinformatics/advance-article/doi/10.1093/bioinformatics/bty149/4934939).\n",
    "bugtrack_url": null,
    "license": "GPLv3",
    "summary": "A few simple math function for other Oxford Nanopore processing scripts",
    "version": "1.3.0",
    "split_keywords": [
        "nanopore",
        "sequencing",
        "plotting",
        "quality",
        "control"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0fe5479842600ed2050f0ce8e3229a8feea388547cd7b4b89bf0d698380e3870",
                "md5": "2f6a0aee5e31116f6460f931e5831f4c",
                "sha256": "c35a024b10b34dd8f539cefed1fd69e0a46d18037ca48bed63c7941c67ae028e"
            },
            "downloads": -1,
            "filename": "nanomath-1.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "2f6a0aee5e31116f6460f931e5831f4c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3",
            "size": 18629,
            "upload_time": "2023-03-21T20:14:58",
            "upload_time_iso_8601": "2023-03-21T20:14:58.206743Z",
            "url": "https://files.pythonhosted.org/packages/0f/e5/479842600ed2050f0ce8e3229a8feea388547cd7b4b89bf0d698380e3870/nanomath-1.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-03-21 20:14:58",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "wdecoster",
    "github_project": "nanomath",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "lcname": "nanomath"
}
        
Elapsed time: 0.04736s