Draws Seurat heatmaps of the most positively and negatively correlated genes
from sc_correlation(), using the batlow palette.
Usage
correlation_heatmaps(
seurat.object,
correlation.df,
up.n = 20,
dn.n = 20,
goi = "NKG7",
output.dir = "results/figures/Correlation_analysis/"
)Arguments
- seurat.object
A Seurat object (idents/assay pre-set, ideally downsampled).
- correlation.df
Output of
sc_correlation().- up.n, dn.n
Number of up / down correlated genes to show.
- goi
Gene of interest.
- output.dir
Directory to write the PDFs into (created if needed). Use
NULLto skip writing.