Residualize the per-context phenotype matrices against the per-context phenotype covariates and the genotype covariates, for one or more requested contexts.
Usage
getResidualizedPhenotypes(x, ...)
# S4 method for class 'QtlDataset'
getResidualizedPhenotypes(
x,
contexts,
traitId = NULL,
region = NULL,
phenotypeCovariatesToResidualize = NULL,
genotypeCovariatesToResidualize = NULL,
residualizePhenotypeCovariates = TRUE,
residualizeGenotypeCovariates = TRUE,
residualizePhenotypeCovariatesFromPhenotypes = NULL,
residualizeGenotypeCovariatesFromPhenotypes = NULL,
naAction = c("keep", "drop", "impute"),
covariateNaAction = c("impute", "drop"),
outlierAction = c("keep", "drop"),
outlierPvalThreshold = 0.001,
...
)