symmetry_gof.Rd
symmetry_gof
calculates the chi-squared test for symmetry of allelic counts.
This tests whether the number of samples expressing more than 50
correspond to the amounts we expect when assuming HWE AS WELL AS no allelic shift (on average equal expression of reference- and variant alleles in heterozygotes).
These are the expected number of homozygote ref-samples plus half the expected number of heterozygous samples,
and the expected number of homozygote var-samples plus half the expected number of heterozygous samples, both under HWE, respectively.
This function is used during imprinting analyses ONLY, as these are the assumptions made during those analyses.
symmetry_gof(ref_counts, var_counts, allelefreq)
Numeric list. Reference counts.
Numeric list. Variant counts.
Number. Allele frequency.
The p-value of chi-squared test for ref_counts
and var_counts
.