MVP.Data: To prepare data for MVP package Author: Xiaolei Liu, Lilin Yin and Haohao Zhang Build date: Aug 30, 2016 Last update: Sep 12, 2018
MVP.Data(fileMVP = NULL, fileVCF = NULL, fileHMP = NULL,
fileBed = NULL, fileNum = NULL, fileMap = NULL, filePhe = NULL,
fileInd = NULL, fileKin = TRUE, filePC = TRUE, out = "mvp",
sep.num = "\t", auto_transpose = TRUE, sep.map = "\t",
sep.phe = "\t", sep.kin = "\t", sep.pc = "\t",
type.geno = "char", pheno_cols = NULL, SNP.impute = "Major",
maxLine = 10000, priority = "speed", perc = 1, pcs.keep = 5,
verbose = TRUE, ncpus = NULL, ...)
Genotype in MVP format
Genotype in VCF format
Genotype in hapmap format
Genotype in PLINK binary format
Genotype in numeric format; pure 0, 1, 2 matrix; m * n, m is marker size, n is sample size
SNP map information, there are three columns, including SNP_ID, Chromosome, and Position
Phenotype, the first column is taxa name, the subsequent columns are traits
Individual name file
Kinship that represents relationship among individuals, n * n matrix, n is sample size
Principal components, n*npc, n is sample size, npc is number of top columns of principal components
prefix of output file name
seperator for numeric file.
Whether to automatically transpose numeric genotypes, the default is True, which will identify the most one of the rows or columns as a marker, If set to False, the row represents the marker and the column represents the individual.
seperator for map file.
seperator for phenotype file.
seperator for Kinship file.
seperator for PC file.
type parameter in bigmemory, genotype data. The default is char, it is highly recommended *NOT* to modify this parameter.
Extract which columns of the phenotype file (including individual IDs)
"Left", "Middle", "Right", or NULL for skip impute.
number of SNPs, only used for saving memory when calculate kinship matrix
"speed" or "memory"
Percentage of markers used to calculate PCA
how many PCs to keep
whether to print detail.
The number of threads used, if NULL, (logical core number - 1) is automatically used
Compatible with DEPRECATED parameters.
NULL Output files: genotype.desc, genotype.bin: genotype file in bigmemory format phenotype.phe: ordered phenotype file, same taxa order with genotype file map.map: SNP information k.desc, k.bin: Kinship matrix in bigmemory format pc.desc, pc.bin: PC matrix in bigmemory format Requirement: fileHMP, fileBed, and fileNum can not input at the same time
# NOT RUN {
bfilePath <- system.file("extdata", "02_bfile", "mvp", package = "rMVP")
MVP.Data(fileBed=bfilePath, out="rMVP.test.data", ncpus=1)
# }
Run the code above in your browser using DataLab