powered by
xRegress is supposed to regress data according to principle components (PCs).
xRegress
xRegress(data, center = TRUE, scale = TRUE, which.PCs = NULL)
a data matrix/frame with, for exampe, genes in rows and samples in columns
logical to indicate whether the input data columns should be shifted to be zero centered when calculating PCs
logical to indicate whether the input data columns should have unit variance when calculating PCs
a vector specifying which PCs are used for being regressed out. If NULL (by default), no gression is done
a list with three componets:
regressed: the regressed data with the same dimension as the input data
regressed
PCs: a data matrix of PCs X samples
PCs
Ss: a vector storing the square roots of the eigenvalues
Ss
# NOT RUN { # Load the library library(XGR) # } # NOT RUN { # } # NOT RUN { data(Fang) ls_res <- xRegress(Fang, which.PCs=1) gp <- xHeatmap(ls_res$PCs) gp # }
Run the code above in your browser using DataLab