View source: R/shared_functions.R
for input variant calls and genotypes, return genotype counts, taking into account the chromosome and sample gender for each variant call. For example, a 'homozygous' on an x chromosome of a male would be an allele count of only 1, rather than 2, whereas a female homozygous call on an x chromosome would be an allele count of 2.Such rules do not apply to autosomes, where each sample should have two copies of each.
1 | GetAlleleCounts(sample.ID, variant.ID, genotype, sampleped)
|
sample.ID |
vector of samples IDs |
variant.ID |
vector of variant IDs |
genotype |
vector of genotype strings (het / hom) |
sampleped |
data frame of samples in sampleped format |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.