quantnorm: Quantile normalize vector of numeric data

Description Usage Arguments Value Examples

Description

quantnorm Rank-normalize (quantile normalize) data to enforce strict normality of data. Useful if assuming identical distributions across many response variables

Usage

1
quantnorm(x, drop0s = FALSE)

Arguments

x

The numeric vector to quantile normalize

drop0s

Logical, should 0's be transformed to NAs

Value

a vector of quantile normalized data

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(qtlTools)
data(fake.bc)
cross<-fake.bc
par(mfrow = c(2,1))
hist(pull.pheno(cross, pheno.col = "pheno2"), breaks=20,
   main = "before quantile normalization",
   xlab = "raw pheno1")
cross<-transformPheno(cross, pheno.col = "pheno1", quantnorm)
hist(pull.pheno(cross, pheno.col = "pheno1"), breaks=20,
   main = "after quantile normalization",
   xlab = "qn pheno1")

jtlovell/qtlTools documentation built on May 20, 2019, 3:14 a.m.