permuteGenotype: Permute the elements of genotype data

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/permuteGenotype.R

Description

Permute the elements of genotype data.

Usage

1
permuteGenotype(dataLine, fromCol)

Arguments

dataLine

A matrix with one row.

fromCol

A positive integer, the start column to permute.

Details

Permute the elements of genotype data.

Value

The return value is a matrix with one row and the elements has been permutated.

Author(s)

Lanying Zhang and Yongshuai Jiang <jiangyongshuai@gmail.com>

References

William S Noble(Nat Biotechnol.2009): How does multiple testing correction work?

Edgington. E.S.(1995): Randomization tests, 3rd ed.

See Also

Armitage.TradPerm, OR.TradPerm, chisq.TradPerm, fisher.TradPerm, meta.TradPerm, permuteGenotypeCount, chisq.MCPerm

Examples

1
2
3
4
5
# dataLine1=matrix(c("rs12","AA","AG","GG","CG","AA"),nrow=1)
# permuteGenotype(dataLine1,fromCol=2)
# dataLine2=matrix(c("rs12","AA","AG","GG","CG","AA",
   # "rs12","AA","AG","GG","CG","AA"),nrow=2,byrow=TRUE)
# permuteGenotype(dataLine2,fromCol=2)

MCPerm documentation built on May 29, 2017, 11:27 a.m.