This function allows to perform sample correlation (by group like celltype, or by donor).
sample_correlation(
data_object,
cor_method = "spearman",
group_by = NULL,
col_break = NULL,
col_max = 1,
cluster_rows = FALSE,
cluster_columns = FALSE,
column_names_fontsize = 4,
row_names_fontsize = 4,
row_title_fontsize = 6,
column_title_fontsize = 6,
plotHeight = 20,
fileName = NULL,
filePATH = NULL
)PALMO object with correlation cor_res dataframe
Input PALMO S4 object. It contains annotation information and expression data from Bulk or single cell data.
(Optional) Correlation method 'pearson' or 'spearman'. Default is 'spearman'
Cluster correlation heat plot by 'donor' or 'group'
Value between 0 and 1
Maximum color limit (Default 1)
ComplexHeatmap cluster rows, Default FALSE
ComplexHeatmap cluster columns, Default FALSE
Font size of the column names, Default 4
Font size of the row names, Default 4
Font size of the row title, Default 6
Font size of the column title, Default 6
Height of the plot in inch, Default 20 in
User-defined file name, Default outputFile
User-defined output directory PATH Default, current directory
if (FALSE) {
palmo_obj <- sample_correlation(data_object=palmo_obj, group_by="Time")
}
Run the code above in your browser using DataLab