Description Usage Arguments Details Value Author(s) References See Also Examples
a function to performing permutation for getting the distribution of score for a sample with permuted genotype. The resutled distribution will be used to obtain the likelihood of a real sample being mislabeled.
1 | permutation(pheno, gt, n.permu, process = TRUE, fileName = "", t.thres = 1.5)
|
pheno |
phenotype data: a nTrait-by-nSample matrix |
gt |
genotype data: a nMarker-by-nSample matrix with two allels being 0 and 1 (or A and B) or three allels being 0, 0.5 and 1 (or, A, H, and B), where 0.5 (or H) represents heterozygous allele. |
n.permu |
The number of permutation to be performed. |
process |
If TRUE, it prints which step has been finished. Default = TRUE. |
fileName |
name for temporary output file during computing process. Default=NULL |
t.thres |
threshold for deciding significant QTLs (t.test) that will be used to detecting mislabled samples |
This function can be used either directly or by the main function reGenotyper
.
a vector with the length of n.permu. Each element represents the score of a randomly selected sample with permutated genotype, only when permu
=TRUE.
Li Y. et al, reGenotyper: detecting mislabeled samples in genetic data (submitted)
Li Y. et al, reGenotyper: detecting mislabeled samples in genetic data (submitted)
1 2 3 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
|
Loading required package: gplots
Attaching package: 'gplots'
The following object is masked from 'package:stats':
lowess
Loading required package: zoo
Attaching package: 'zoo'
The following objects are masked from 'package:base':
as.Date, as.Date.numeric
Loading required package: MatrixEQTL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.