Learn R Programming

rMVP (version 0.99.14.1)

MVP.Data.PC: Principal component analysis

Description

Principal component analysis

Usage

MVP.Data.PC(filePC = TRUE, mvp_prefix = "mvp", out = NULL,
  perc = 1, pcs.keep = 5, sep = "\t")

Arguments

filePC

Principal components, n*npc, n is sample size, npc is number of top columns of principal components

mvp_prefix

Prefix for mvp format files

out

prefix of output file name

perc

Percentage of markers used to calculate PCA

pcs.keep

how many PCs to keep

sep

seperator for PC file.

Value

Output file: <out>.pc.bin <out>.pc.desc

Examples

Run this code
# NOT RUN {
geno <- file.path(system.file("extdata", "06_mvp-impute", package = "rMVP"), "mvp.imp")
MVP.Data.PC(TRUE, mvp_prefix=geno, out="rMVP.test.pc")
# }

Run the code above in your browser using DataLab