Description Usage Arguments Examples
View source: R/associationTest.R
Find a medoid of for each quantitative trait cluster (QTC).
1 | medoQtc(object, geno, alpha = 0.05, min.absCor = 0.05)
|
object |
an object of class |
geno |
an object of class |
alpha |
an alpha level for significance estimation. |
min.absCor |
minimum absolute value of correlation considered. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # If you want to run the examples, use:
# example(medoQtc, run.dontrun = TRUE)
## Not run:
# files containing example data for SNP data and the phenotype
pfile <- system.file("extdata/phenodata.csv", package = "qtcat")
gfile <- system.file("extdata/snpdata.csv", package = "qtcat")
pdat <- read.csv(pfile, header = TRUE)
snp <- read.snpData(gfile, sep = ",")
clust <- qtcatClust(snp)
geno <- qtcatGeno(snp, clust)
pheno <- qtcatPheno(names = pdat[, 1],
pheno = pdat[, 2],
covariates = model.matrix(~ pdat[, 3]))
fitted <- qtcatHit(pheno, geno)
# QTC medoids
medo <- medoQtc(fitted, geno)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.