prep: Prepare the data for the analysis purpose

Description Usage Arguments Value References Examples

View source: R/prep.R

Description

Transform the data to class "SNP" object, with alleles separated with "/"

Usage

1
prep(x, delim = NULL)

Arguments

x,

Factors, data of all obeservation of alleles in single locus

delim

character that separate the alleles in original data in one locus, could be empty

Value

object belong to "SNP" and "factor", with attributes of alleleNames

References

González JR1, Armengol L, Solé X, Guinó E, Mercader JM, Estivill X, Moreno V(2007). SNPassoc: an R package to perform whole genome association studies. Bioinformatics. 2007 Mar 1;23(5):644-5. Epub 2007 Jan 31. DOI: 10.1093/bioinformatics/btm025.

Examples

1
2
3
4
data(geneSNP)
s1 <- prep(geneSNP$snp10001,delim="-") # This column original delimiter "-", replaced by "/"
s2 <- prep(geneSNP$snp10002,delim=",") # This column original delimiter "," replaced by "/"
s3 <- prep(geneSNP$snp10003)           # This column original data no delimiter, add "/"

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