Description Usage Arguments Details Value Author(s) References See Also Examples
Computes a Global Permutation Threshold to estimate a LOD score significance threshold.
1 | gpt(cross, n_etrait=100, n_perm=1000)
|
cross |
An object of class |
n_etrait |
An integer which specifies the number of individuals on which the permutation test are performed. |
n_perm |
An integer. This argument defines the number of permutation replicates. |
Computes the Global Permutation Threshold which fits to a single-QTL scan (using scanone
function) by permuting the phenotypes while maintaining the genotype for a sample of individuals randomly chosen within an object of class cross
. The GPT estimates the LOD score significance threshold if 1000 permutations at least are computed on 100 individuals at least (i.e. 100,000 permutations).
An object of class scanoneperm
Hamid A. Khalili
Churchill and Doerge (1994) Empirical threshold values for quantitative trait mapping. Genetics 138:963-971
read.cross
,scanone
,add.threshold
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | data(seed10);
# Compute the global permutation test with 1000 permutations on 100 individuals
## Not run: out_1000.gpt <- gpt(seed10,100,1000);
# Compute the global permutation threshold with 100 permutations on 100 individuals
out_100.gpt <- gpt(seed10, 10, 10)
out_100.gpt
# Significance LOD threshold value with alpha at 0.05 (5%)
## Not run: th_1000 <- as.numeric(out_1000.gpt)[order(out_1000.gpt,decreasing=TRUE)][5000];
th_100 <- as.numeric(out_100.gpt)[order(out_100.gpt,decreasing=TRUE)][5];
th_100
hist(unclass(out_100.gpt),nclass=50,col='gray')
abline(v=th_100,col='red')
# out.em <- scanone(seed10, method='hk', chr=c(1:5));
## Not run: plot(out.em, chr=c(1:5));
add.threshold(out.em, chr=c(1:5), perms=out_1000.gpt, alpha=0.05);
add.threshold(out.em, chr=c(1:5), perms=out_1000.gpt, alpha=0.1, col="green");
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.