powered by
This function allows you to calculate average gene expression on log-normalized data by group defined by user. This function uses Seurat function AverageExpression (https://satijalab.org/seurat/reference/averageexpression)
avgExpCalc(data_object, assay = "RNA", group_column)
PALMO object with avg expression
Input PALMO S4 object. Contains annotation table and expression matrix or data frame. Rows represent gene/proteins column represents participant samples (same as annotation table Sample column)
Single cell data Assay type ('RNA', 'SCT'). Default 'RNA'
Calculate average expression by given group like 'celltype' or 'cluster'
if (FALSE) { palmo_obj=avgExpCalc(data_object=palmo_obj, assay='RNA', group_column='celltype') }
Run the code above in your browser using DataLab