countGenotype {GA4GHshiny} | R Documentation |
Summarize a list of genotype data. Variant calls with no coverage (./.) do not enter in this count.
countGenotype(genotype)
genotype |
list of integer vectors of length 2. |
data.frame
of 1 row containing the columns below.
ref.homozygous reference homosygous (e.g. 0/0);
alt.heterozygous alternate heterozygous (e.g. 0/1, 1/2);
ref.homozygous reference homozygous (e.g. 1/1, 2/2);
total the sum of the three previous columns.
countGenotype(genotype = list(c(0,0), c(0,1), c(1,2), c(1,1), c(2,2)))