Learn R Programming

mvp (version 1.0.1)

MVP-package: a Memory efficient, Visualization enhanced, and Parallel accelerated Tool For GWAS

Description

Object 1: To perform GWAS using General Linear Model (GLM), Mixed Linear Model (MLM), and FarmCPU model Object 2: To calculate kinship among individuals using Varaden method Object 3: Estimate variance components using EMMA, FaST-LMM, and HE regression Object 4: Generate high-quality figures

Usage

MVP(phe, geno, map, K=NULL, nPC.GLM=NULL, nPC.MLM=NULL, nPC.FarmCPU=NULL,
	perc=1, CV.GLM=NULL,CV.MLM=NULL, CV.FarmCPU=NULL, REML=NULL,
	priority="speed", ncpus=2, vc.method="EMMA",method="MLM", maxLine=1000,
	memo="MVP", P=NULL, method.sub="reward", method.sub.final="reward",
	method.bin="static",bin.size=c(5e5,5e6,5e7),bin.selection=seq(10,100,10),
	Prior=NULL,maxLoop=10, threshold.output=1, iteration.output=FALSE,
	p.threshold=NA, QTN.threshold=NULL,bound=NULL, outward=TRUE,
	col=c("dodgerblue4","olivedrab4","violetred","darkgoldenrod1","purple4"),
	plot.type="b", file.output=TRUE, file="jpg", dpi=300, threshold=0.05,
	Ncluster=1, signal.cex=0.8)

Arguments

phe

phenotype, n * 2 matrix, n is sample size

geno

Genotype in bigmatrix format; m * n, m is marker size, n is sample size

map

SNP map information, SNP name, Chr, Pos

K

Kinship, Covariance matrix(n * n) for random effects, must be positive semi-definite

nPC.GLM

number of PCs added as fixed effects in GLM

nPC.MLM

number of PCs added as fixed effects in MLM

nPC.FarmCPU

number of PCs added as fixed effects in FarmCPU

perc

percentage of total SNPs selected for PCA

CV.GLM

covariates added in GLM

CV.MLM

covariates added in MLM

CV.FarmCPU

covariates added in FarmCPU

REML

a list contains ve and vg

priority

speed or memory

ncpus

number of cpus used for parallel

vc.method

methods for estimating variance component("EMMA" or "GEMMA")

method

the GWAS model, "GLM", "MLM", and "FarmCPU", models can be selected simutaneously, i.e. c("GLM", "MLM", "FarmCPU")

maxLine

when the priority is 'memory', users can change this parameter to limit the memory

memo

a marker added on output file name

P

a start p value for each SNP

method.sub

method used in substitution process

method.sub.final

method used in substitution process

method.bin

EMMA or FaSTLMM

bin.size

window size in genome

bin.selection

a vector, how many windows selected

Prior

four columns, SNP name, Chr, Pos, P

maxLoop

maximum number of iterations

threshold.output

output GWAS results only for SNPs with p value lower than the threshold.output

iteration.output

whether to output results for FarmCPU iterations

p.threshold

if all p values in the 1st iteration are bigger than p.threshold, FarmCPU stops

QTN.threshold

Only SNPs have a more significant p value than QTN.threshold have chance to be selected as pseudo QTNs

bound

maximum number of SNPs selected as pseudo QTNs for each iteration

outward

the direction of circular Manhattan plot

col

for color of points in each chromosome on manhattan plot

permutation.threshold

if use a permutation cutoff or not (bonferroni cutoff)

permutation.rep

number of permutation replicates

plot.type

"b" (both Manhattan plot and qq plot will be draw) or "q" (qq plot only)

file.output

whether to output files or not

file

figure format, "jpg", "tiff"

dpi

resolution

threshold

a cutoff line on manhattan plot, 0.05/marker size

Ncluster

number of colors used for drawing PC 1 and PC 2

signal.cex

point size on output figures

Details

Package: MVP
Type: Package
Version: 1.0.1
Date: 2017-12-12
License: GPL(>=2)