This function allows you to calculate inter-donor variation between participants over longitudinal timepoints. It uses linear mixed model to calculate variance contribution from each given feature list.
lmeVariance(
data_object,
featureSet,
fixed_effect_var = NULL,
meanThreshold = NULL,
selectedFeatures = NULL,
NA_to_zero = FALSE,
cl = 2,
lmer_control = FALSE,
fileName = NULL,
filePATH = NULL
)PALMO object with variance lmem_res dataframe
Input PALMO S4 object. It contains annotation information and expression data from Bulk or single cell data.
Variance analysis carried out for the feature set provided such as c('PTID', 'Time', 'Sex')
Fixed effect variables. In linear mixed model fixed_effect_var included as fixed effect variables and variance contribution obtained by adding them as random variables
Average expression threshold to filter lowly expressed genes/features Default is 0
User-defined gene/feature list
Convert NAs to zero. Default FALSE
Number of clusters. Use nCores-1 to run parallel. Default 2
control structures for mixed model fitting. Default optimizer is "bobyqa". Reduces the run time for large data significantly.
User-defined file name, Default outputFile
User-defined output directory PATH Default, current directory
if (FALSE) {
palmo_obj=lmeVariance(data_object=palmo_obj,
featureSet=c('PTID','Time','Sex'))
}
Run the code above in your browser using DataLab