When testing genotype data derived from different platforms or scoring
algorithms a common problem is switching of alleles. This function
provides a diagnostic for this. Input can either be two objects of class
"SnpMatrix" to be examined, column by column, for allele
switching, or a single
"SnpMatrix" object together with an
indicator vector giving group membership for its rows.
An object of class
A second object of the same class as
If only one
A degree of freedom parameter for the prior
distribution of the allele frequency
This function calculates a Bayes factor for the comparison of the
hypothesis that the alleles have been switched with the hypothesis that
they have not been switched. This requires integration over the
posterior distribution of the allele frequency. The prior is taken as a
beta distribution with both parameters equal to
the prior is symmetric about 0.5. The default,
prior.df=1 represents a uniform prior on (0,1).
A vector containing the log (base 10) of the Bayes Factors for an allele switch.
David Clayton [email protected]
1 2 3 4 5 6 7 8 9 10
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.