/BLINK

Primary LanguageR

BLINK

This is the R version of BLINK model. You can find the C version here: https://github.com/Menggg/BLINK

Installation

install.packages("devtools")

devtools::install_github("YaoZhou89/BLINK")

Demo Data

BLINK R version only support numeric data type.

Usage

# source functions needed

source("http://zzlab.net/GAPIT/gapit_functions.txt")

source("http://zzlab.net/FarmCPU/FarmCPU_functions.txt")

library(BLINK)

# genotype information data

myGM=read.table("myData.map",head=T)

# genotype data

myGD=read.big.matrix("myData.dat",head=F,sep="\t",type="char") 

# phenotype data

myY = read.table("myData.txt",head = T) 

# association analysis

myBlink=Blink(Y=myY,GD=myGD,GM=myGM,maxLoop=10,time.cal=T) # more parameters explained in man/user manual

Author

Dr. Yao Zhou (yao.zhou@genetics.ac.cn)