R/plot_de_analysis.R
plot_de_analysis.Rd
Create differential expression analysis plots. Run by DGE_analysis()
plot_de_analysis(
pb_dat,
y,
celltype_DEGs_dt,
celltype_all_genes_dt,
counts_celltypes,
folder
)
A list containing sumDat: matrix of the summed pseudobulk count values annot_pb: dataframe of the annotation data from the SCE rolled up based on the pseudobulk aggregation.
the column name in the SCE object for the return variable e.g. "diagnosis" - Case or disease. y can be discrete (logisitc regression) or continuous (linear regression)
data table containing the DEGs for each cell type with their differential expression data
data table containing the all genes for each cell type with their differential expression data
vector with the counts of cells after QC in each cell type
the folder where the graphs from the differential expression analysis are saved. Default will create a folder in the current working directory "sc.cell.type.de.graphs". False will skip plotting. Creates and saves plot in relevant directory