agcounts | R Documentation |
Function agcounts
determines sample size, minor are major allele counts,
allele counts in females, numbers of males and females and allele
frequencies for a vector of genotypes counts of an X-chromosomal markers.
agcounts(x, verbose = FALSE)
x |
a vector of X-chromosomal genotype counts (A,B,AA,AB,BB) |
verbose |
print the counts if ( |
n |
sample size |
nA |
number of A alleles |
nB |
number of B alleles |
nf |
number of females |
nm |
number of males |
nAf |
number of A alleles in females |
nBf |
number of B alleles in females |
nt |
total number of alleles |
fAA |
number of AA females |
fAB |
number of AB females |
fBB |
number of BB females |
pA |
overall A allele frequency |
pB |
overall B allele frequency |
Jan Graffelman jan.graffelman@upc.edu
mac
, link{maf}
rs5968922 <- c(A=392, B=212, AA=275, AB=296, BB=80)
counts <- agcounts(rs5968922)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.