gws: Genome-wide computation

Description Usage Arguments Value Examples

View source: R/gws.R

Description

Compute gScore for every locus, data need preparation

Usage

1
gws(hap, rep)

Arguments

hap

The data from genome wide phenotype records and SNP, in data frame format First row is the phenotype, followed by all genotype SNPs in all loci. The data scoure: from "SNPassoc" package, but phenotype data are simulated from binary to 3 levels

rep

The number of replication of cross-validation in calculating gScore (In genome-wide computation, larger than 10 rep will be slow)

Value

The object of type "gScore", with attribute of "filt", the actual gScores and other results can be get from summary.gws function

Examples

1
2
data(hapData)
gScore <- gws(hapData,3)

Kevinpen/SNPgrou documentation built on Dec. 8, 2019, 8:32 a.m.