For a given down-sampled DGE analysis output, computes the correlation of the log-foldchange of the DEGs (at specified p-value) for a given dataset (celltype)

compute_downsampled_corr(allstudies, sampled = "individuals")

Arguments

allstudies

a list containing DGE analysis outputs (subset to "celltype_all_genes" and the specified cell type) at each down-sampled point

sampled

Specifies the unit of down-sampling. Can be either "individuals" or "cells", depending on whether the analysis downsamples across samples or cells.

Value

correlation matrix, plot and the number of DEGs at the specified p-value