View source: R/support_functions.R
grab.locus.from.scan | R Documentation |
This function parses a scan object and returns loci, for instance, the locus with the minimum p-value.
grab.locus.from.scan(
scan.object,
use.lod = FALSE,
chr = "all",
criterion = c("min", "max"),
return.value = c("marker", "position", "chr", "index")
)
scan.object |
A scan.h2lmm() object (ROP or multiple imputations). If multiple imputations, median and confidence interval on median are plotted. |
use.lod |
DEFAULT: FALSE. Specifies whether loci should be selected based on LOD scores or p-values. |
chr |
DEFAULT: "all". The portion of the scan that loci are being pulled from. |
criterion |
DEFAULT: "min". The criterion by which loci are selected. "min" selects the locus with the minimum statistical score. "max" selects the locus with the maximum statistical score. |
return.value |
DEFAULT: "marker". If "marker", returns the marker name. If "positions", returns the position in both cM and Mb. If "chr", returns the chr of the peak. If "index", returns the index of the vector. |
grab.locus.from.scan()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.