Description Usage Arguments Value Author(s) References See Also Examples
View source: R/get_qtl_intervals.R
Given a specified LOD threshold
and associated significance level alpha
, this
function gets a list of approximate QTL intervals for an R/qtl scanone
object.
1 2 3 4 5 6 7 8 9 10 |
x |
An R/qtl |
chr |
Vector indicating which sequences to consider. If no sequences are specified, the QTL
interval list is created with respect to every sequence in |
lodcolumn |
This parameter indicates which LOD column to consider. This must be either a LOD column name or an index with respect to the set of LOD columns. If no LOD column is specified and one such column is found, that column is used by default; otherwise a LOD column must be specified. |
threshold |
A single |
ci.function |
Option to indicate which R/qtl function should be used for estimating
approximate confidence intervals for QTL location. Set to |
drop |
LOD units that the LOD profile must drop to form the interval.
This is used only if |
prob |
Desired probability coverage for the Bayesian credible interval.
This is used only if |
expandtomarkers |
Expand the LOD interval to the nearest flanking markers, or to the respective terminal loci. |
A list of data.frame
objects, each containing three rows of information about the
lower interval limit, peak, and upper interval limit (respectively) of a QTL. Returns an empty
list if there are no significant QTLs.
Thomas A. Walsh
Yue Hu
Broman KW, Wu H, Sen S, Churchill GA (2003) R/qtl: QTL mapping in experimental crosses. Bioinformatics 19:889-890. (PubMed)
Broman KW, Sen S (2009) A guide to QTL mapping with R/qtl. New York: Springer. (Website)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | ## Not run:
# Load R/qtl hyper dataset.
data(hyper, package='qtl')
# Estimate genetic map of hyper data.
gmap <- qtl::est.map(hyper, offset=0.0)
# Set newly estimated genetic map.
hyper <- qtl::replace.map(hyper, gmap)
# Calculate genotype probabilities.
hyper <- qtl::calc.genoprob(hyper, step=1.0)
# Do single-QTL analysis.
scanone.result <- qtl::scanone(hyper, pheno='bp')
# Do single-QTL permutation analysis.
scanone.perms <- qtl::scanone(hyper, pheno='bp', n.perm=1000L)
# Get LOD threshold values from single-QTL permutation results.
threshold.vals <- summary(scanone.perms, alpha=0.05)
# Get LOD threshold value for first LOD column.
threshold.val <- qtl:::subset.scanoneperm(threshold.vals, lodcolumn=1L)
# Get QTL intervals for first LOD column.
qtl.intervals <- get_qtl_intervals(scanone.result, lodcolumn=1L, threshold=threshold.val,
ci.function='bayesint')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.