Performs quantile normalization of 2 vectors (Hicks 2014).

qNorm(x, y, genes = NULL, flag.top.n = 15)

Arguments

x

Numeric vector.

y

Numeric vector.

genes

Character vector of gene names. Used to label entries in data.frame output.

flag.top.n

Numeric indicating top n genes to flag in data.frame output. Default is 15.

Value

data.frame of quantile normalized values.

Author

Nicholas Mikolajewicz

Examples


# quantile normalization
x.s1 <- getConnectivity(s.1, gene.names = colnames(a.1))$wi
#> Error in is.data.frame(x): object 'a.1' not found
y.s2 <- getConnectivity(s.2, gene.names = colnames(a.2))$wi
#> Error in is.data.frame(x): object 'a.2' not found
df.xy.s <- qNorm(x.s1, y.s2, genes = colnames(a.1))
#> Error in stopifnot(length(x) == length(y)): object 'x.s1' not found