getPCRanks.Rd
Returns eigenvector scores for input CpG sites.
getPCRanks(mat, IDs, PC, filter_thresh)
Bismark2Matrix.R output file, or data frame object
A character vector of IDs containing the common names for compared conditions. E.g., for samples trt1 & trt2 vs. ctl1 & ctl2, IDs=c("trt1", "ctl")
Integer, which principle component to use. Use to DefineBestPC if unsure.
Integer, a coverage threshold for filtering, where CpG coverage of all samples must be larger than this value.
Returns a data.frame
of eigenvector scores for all loci.
ranks <- getPCRanks(eigen, IDs = c("trt", "ctl"), PC = 1)