R/plot_mean_correlation.r
plot_mean_correlation.Rd
Obtain the average correlation (across celltypes) at a specified cutoff p-value
plot_mean_correlation(
main_dataset,
SCEs,
sampleIDs,
celltypeIDs,
pvals,
celltype_correspondence,
dataset_names,
sex_DEGs = FALSE,
output_path = getwd()
)
name of the dataset used to select significant DEGs from (specified as a string, name as in dataset_names)
list of the input data (elements should be SCE objects)
list or vector of sample IDs (in order of SCEs)
list or vector of cell type IDs (in order of SCEs)
the cut-off p-value which will be used to select DEGs
list of different names specifying each cell type
names of the datasets as they appear in the correlation plot (in order of SCEs)
If TRUE, only keep genes present on sex chromosmomes. Queries hspanies gene Ensembl dataset.
base path in which outputs will be stored Saves mean correlation matrix (and actual values) in the appropriate directory