R/plot_mean_correlation.r
plot_mean_correlation.Rd
Obtain the average correlation (across celltypes) at a specified cutoff p-value
name of the dataset used to select significant DEGs from, and for which random permutations and subset pairs will be created (to be 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)
list of different names specifying each cell type
names of the datasets as they appear in the correlation plot (in order of SCEs)
number of random permutations of the dataset to be created
number of pairs of random subsets of the dataset to be created
the cut-off p-value which will be used to select DEGs
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