permuteGenotype: Permute the elements of genotype data

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

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)


Search within the MCPerm package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.