matPCs: matPCs function

Description Usage Arguments Details Value Author(s) Examples

View source: R/matPCs.R

Description

Performs PCA on a given matrix

Usage

1
matPCs(dat)

Arguments

data

Prediction model generated from "multiAdaSampling".

percentVar

A dimension reduced matrix.

seed

seed for randomisation.

Details

This function performs PCA to reduce the dimension of the gene expression matrix limited from 10 to 20 PCs.

Value

Dimensionally reduced matrix.

Author(s)

Pengyi Yang, Taiyun Kim

Examples

1
2
3
4
5
6
7
8
data("GSE87795_liver.development.data")

mat.expr = GSE87795_liver.development.data$data

mat.pc = matPCs(mat.expr)

# to capture at least 70% of overall variability in the dataset,
mat.dim.reduct.70 = matPCs(mat.expr, 0.7)

SydneyBioX/scdney documentation built on Aug. 22, 2019, 10:55 a.m.