summarySNP: Summarize the frequency and percentage of genotypes and...

Description Usage Arguments Value References Examples

View source: R/summarySNP.R

Description

Summarize the frequency and percentage of genotypes and alleles in the SNP data The input SNP data need prepared by prep() function

Usage

1

Arguments

x

The result data returned from prep function. it is a object of type "SNP" and "factor" it contains levels of genotype and attribute of "alleleNames"

Value

A data frame contains the allele frequency and percentage

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
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
data(geneSNP)
s3 <- prep(geneSNP$snp10003)
summarySNP(s3)
#This data contains Genotypes:
#Genotyepes frequency percentage
#1        A/T        15      30.61
#2        C/C         1       2.04
#3        C/T         1       2.04
#4        G/C        16      32.65
#5        G/G        16      32.65
#
#
#This data contains Alleles:
#Alleles frequency petcentage
#1       A        15      18.52
#2       G        32      39.51
#3       C        18      22.22
#4       T        16      19.75

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