pull.dist.from.locus: Calculate the distance between the simulated QTL and the...

Description Usage Arguments Examples

View source: R/CC_extra.R

Description

This function takes output genome scans from run.sim.scans() and calculates the distance between the simulated QTL and the minimum p-value locus within a window around the simulated QTL if a QTL was detected. The intent is to quantify the distribution of the position of max statistical signal from the simulated QTL position.

Usage

1
2
## S3 method for class 'dist.from.locus'
pull(sim.scans, thresh, window.mb = 5)

Arguments

sim.scans

Output simulated genome scans from run.sim.scans().

thresh

A list of threshold, calculated from get.gev.thresh(), that correspond to the scans in sim.scans.

window.mb

DEFAULT: 5. Loci upstream and downstream the specified window.mb in Mb will also be checked for statistically significant signals. Sometimes the statistical score will not pass at the simulated QTL, but does at nearby loci. This is the region interrogated for signals greater than the simulated QTL.

Examples

1

gkeele/sparcc documentation built on May 28, 2019, 5:43 a.m.