This vignette illustrates the
basic usage of the SNPknock
package in combination with the
phasing software fastphase
(Scheet
and Stephens 2006) to create knockoffs of unphased genotypes or
phased haplotypes Sesia et al. (2019).
Since fastphase
is not available as an R package, this
functionality of SNPknock
requires the user to first obtain
a copy of fastphase
.
To learn more about the application of SNPknock
to large
genome-wide association studies (Sesia et al.
2019), visit: https://msesia.github.io/knockoffzoom/.
fastphase
fastphase
is a phasing and imputation tool based on the
hidden Markov model described in (Scheet and
Stephens 2006).
Binary executables for Linux and Mac OS are available from http://scheet.org/software.html.
Before continuing with this tutorial, download the
fastphase
tarball from the above link and extract the
fastphase
executable file into a convenient directory
(e.g. “~/bin/”).
Finally, we can use the hidden Markov model created above to generate knockoffs.
## Xk
## 0 1 2
## 130114 90466 25620
If you want to see some basic usage of SNPknock
, see the
introductory vignette.
If you want to learn about SNPknock
for large
genome-wide association studies (Sesia et al.
2019), see https://msesia.github.io/knockoffzoom/.