Description Usage Arguments Details Value See Also Examples
Functions to read in and use MangroveBetas objects
1 2 3 4 5 6 7 8 |
betafile |
The location of a beta file to read in |
header |
Logical. Indicates whether the betafile above has a header. |
x |
A |
object |
A |
... |
Additional arguments to be passed to downstream methods. |
A MangroveBetas
object is used to hold the risk alleles, beta values and frequencies for a set of genetic variants used to predict a quantitative trait. You can read a beta file from disk using readBetas
.
The format of the beta file is a text file with 4 columns. The first should be the variant ID, the second the risk allele, the third the additive beta value and the fourth the frequency.
The print
method shows the data that the object holds. The summary
method gives some measures of how predictive the variants are, including the variance explained by the variants in the object. The plot
method show the cumulative variance explained as the variants are added in one-at-a-time (in order of most-to-least variance explained).
See vignette("Mangrove")
for an example of a beta file, and usage of a beta object.
An object of class MangroveBetas
for readBetas
. Nothing is returned for the methods.
MangroveContPreds
for performing quantitative trait prediction using this object.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.