Skip to main content

Quantile normalization

Project description

qnorm

quantile normalization made easy.

Quick example

We recreate the example of Wikipedia:

import numpy as np
import qnorm

vals = np.array([
    [5, 4, 3],
    [2, 1, 4],
    [3, 4, 6],
    [4, 2, 8]])

print(qnorm.quantile_normalize(vals))

which prints this:

>>> [[5.66666667 5.16666667 2.        ]
     [2.         2.         3.        ]
     [3.         5.16666667 4.66666667]
     [4.66666667 3.         5.66666667]]

Installation

pip

pip install qnorm

conda

conda install -c conda-forge qnorm

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qnorm-0.0.8.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

qnorm-0.0.8-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page