plotDeaHeatmap | R Documentation |
Visualizes the expression of genes across subgroups in a heatmap. It either takes the results from previously conducted de-analysis or uses the expression information of specific genes to plot a heatmap.
plotDeaHeatmap(
object,
across,
across_subset = NULL,
relevel = NULL,
method_de = NULL,
max_adj_pval = NULL,
min_lfc = NULL,
n_highest_lfc = NULL,
n_lowest_pval = NULL,
breaks = NULL,
genes = NULL,
n_bcsp = NULL,
clrp = NULL,
colors = NULL,
verbose = NULL,
of_sample = NA,
...
)
object |
An object of class |
across |
Character value or NULL. Specifies the grouping variable of interest. Use |
across_subset |
Character vector or NULL. Specifies the particular groups
of interest the grouping variable specified in argument If set to NULL all of them are chosen. You can prefix groups you are NOT interested in with a '-'. (Saves writing if there are more groups you are interested in than groups you are not interested in.) Use |
relevel |
Logical value. If set to TRUE the input order of |
method_de |
Character value. Denotes the method to according to which the de-analysis is performed.
Given to argument |
max_adj_pval |
Numeric value. Sets the threshold for adjusted p-values. All genes with adjusted p-values above that threshold are ignored. |
min_lfc |
Numeric value. Sets the threshold for average log fold change. All genes with an average log fold change below that threshold are ignored. |
n_highest_lfc |
Numeric value. Affects the total number of genes that are kept. See details. |
n_lowest_pval |
Numeric value. Affects the total number of genes that are kept. See details. |
breaks |
Denotes the colorspectrum breaks. If set to NULL the breaks are set automatically. If a
numeric vector is specified it is taken as input. If a function is specified the expression matrix is
passed to it as the first argument and the length of |
genes |
Character vector or NULL. If you want to display specific genes irrespective of de-anaylsis results you
can specifiy them in |
n_bcsp |
The number of barcode-spots belonging to each cluster you want to include in the matrix. Should be lower than the total number of barcode-spots of every cluster and can be deployed in order to keep the heatmap clear and aesthetically pleasing. If set to NULL (the default) it is automatically computed according to the number of genes that are displayed in the heatmap. |
clrp |
Character value. Specifies the color palette to be used to represent
groups of discrete variables. Run |
verbose |
Logical. If set to TRUE informative messages regarding the computational progress will be printed. (Warning messages will always be printed.) |
of_sample |
This argument is currently inactive. It might be reactivated when spata-objects can store more than one sample. |
... |
Additional arguments given to |
The de-data.frame is processed such that the following steps are performed for every experimental group.
Discards genes with avg_logFC-values that are either infinite or negative
Discards genes with adjusted p-values above the threshold set with max_adj_pval
Discard genes with average log fold change below the treshold set with min_lfc
Slices the data.frame in order that for every experimental group:
the n genes with the highest avg_logFC-values are kept where n = n_highest_lfc
the n genes with the lowest p_val_adj-values are kept where n = n_lowest_pval
Arranges the genes according to the highest avg_logFC-values
A heatmap of class 'pheatmap'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.