/Quantile_Normalize

This function implements quantile normalization in python matrix

Primary LanguagePython

Quantile_Normalize

This function implements quantile normalization in python matrix (Pandas DataFrame)

dependencies

  1. Numpy
  2. Pandas

data

Input data is a Pandas dataframe (df). Each row stands for an observations and each column stands for an attribute

usage

from Quantile_Normalize.quantile_norm import quantileNormalize
result = quantileNormalize(df)

advantage

Pretty simple logic but relatively high efficiency

references

Thanks for the following:

Ranking of numpy array with possible duplicates

stack overflow

This solves the problem of quantile normalization on pandas dataframe

acknowledgement

Thanks for the help of Mr. Tan