extract: extraction of projected cooordinates from "PCA" object.

Description Usage Arguments Value Author(s) Examples

View source: R/extract.R

Description

funtion to extract projected coordinates of individuals on principal components.

Usage

1
2
extract(name, groups, integrated = TRUE, Assay = NULL,
rand = NULL, PC = c(1,2,3,4), groupinfo = NULL)

Arguments

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()

Value

a data frame of the extracted value.

Author(s)

Subhadeep Das

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
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)

subhadeep1024/OMICsPCA documentation built on Sept. 30, 2018, 1 p.m.