extract {OMICsPCA} | R Documentation |
funtion to extract projected coordinates of individuals on principal components.
extract(name, groups, integrated = TRUE, Assay = NULL, rand = NULL, PC = c(1,2,3,4), groupinfo = NULL)
name |
name of the OMICs object. |
groups |
one or more groups created by or supplied through "create_group()" |
integrated |
whether to extract coordinates from integrated or individual assay. |
Assay |
name of the assay if integrated = FALSE |
rand |
number of rows to be extracted randomly. |
PC |
principal component numbers. The projected informaton on this PCs will be extracted. |
groupinfo |
same as integrate_variables() |
a data frame of the extracted value.
Subhadeep Das
exclude <- list(0,c(1,9)) int_PCA <- integrate_pca(Assays = c("H2az", "H3k9ac"), groupinfo = groupinfo, name = multi_assay, mergetype = 2, exclude = exclude, graph = FALSE) name = int_PCA$int_PCA data <- extract(name = name, PC = c(1:4), groups = c("WE","RE"), integrated = TRUE, rand = 600, groupinfo = groupinfo_ext)