�r Sys.Date()
groups.Rmd
We often (usually) cannot resolve an association to a single causal variant, and one of the aims of GUESSFM is to generate groups of SNPs, one of which is likely to be causal.
Once models have been fitted, we can average over them to find marginal posterior probabilities for each SNP. We make the assumption that SNPs in a group should display the following properties:
snp.picker()
aims to create such groups in an automated manner, given the summary of a GUESS run and a genotype dataset from which r2 may be calculated. It returns an object of class snppicker
which is an extension of the groups
class and contains information to allow plotting of the relationship between r2 and MPI that was used to define a group.
showClass("snppicker")
## Class "snppicker" [package "GUESSFM"]
##
## Slots:
##
## Name: plotsdata groups
## Class: list list
Plotting an object of class snppicker
should be informative. The algorithm underlying snp.picker()
has been designed so it is more likely to err by splitting a single group in two than by joining what might be two separate groups. If you suspect two groups should be merged, you can check the assumptions above using check.merge()
, and perform a merge using group.merge()
.