Switch alleles in columns of a SnpMatrix or in test results
This is a generic function which can be applied to objects of class
"XSnpMatrix" (which hold SNP genotype
data), or to objects of class
"GlmTests" (which hold
association test results). In the former case, specified SNPs can be
recoded as if the alleles were switched (so that AA genotypes
become BB and
vice-versa while AB remain unchanged). In the latter case,
test results are modified as if alleles had been switched.
The input object, of class
A vector of type integer, character or logical specifying the SNP to have its alleles switched
An object of the same class as the input object
Switching alleles for SNPs has no effect on test results. These functions are required when carrying out meta-analysis, bringing together several sets of results. It is then important that alleles line up in the datasets to be combined. It is often more convenient (and faster) to apply this process to the test result objects rather than to the genotype data themselves.
David Clayton firstname.lastname@example.org
1 2 3 4 5
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.