Learn R Programming

MCPerm (version 1.1.4)

permuteGenotype: Permute the elements of genotype data

Description

Permute the elements of genotype data.

Usage

permuteGenotype(dataLine, fromCol)

Arguments

dataLine
A matrix with one row.
fromCol
A positive integer, the start column to permute.

Value

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

Details

Permute the elements of genotype data.

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

Run this code
# 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)

Run the code above in your browser using DataLab