Description Usage Arguments Details Examples
This is just a quick thing Eric threw together. It takes an 012,-1 matrix in which the rownames are the sample IDs and the column names are the positions (without any chromosome name). Then it does kernel smoothing to estimate the fraction of SNPs in each chunk that are homozygous reference, homozygous alternate, heterozygous, and missing. These all get returned in a tidy tibble.
1 | hohz_windows_1(d012, width = 10000)
|
d012 |
the 012,-1 matrix with column names being the positions |
width |
the sliding window width. Each window will be a non-overlapping window of this width, and the position of it will be reported as the center of the window. Default width is 10 Kb. |
This "_1" version is intended to operate on a single chromosome.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.