Plots the expression of a given gene on a given set of coordinates
1 2 3 4 | plot_gene_on_map(GeneName, CellCoordinates, ExpressionMatrix,
CoordLabels = c("Component 1", "Component 2", "Component 3"),
Average = F, knn = 5, Palette = grDevices::colorRampPalette(colors
= c("yellow", "orange", "red", "black")))
|
GeneName |
One of the elements in the Dataset$GeneNames object. |
CellCoordinates |
Matrix with 2 or 3 coordinates per cell. |
ExpressionMatrix |
Expression matrix |
CoordLabels |
Which coordinate labels to use |
Average |
wheter or not expression for cells will be averaged over the nearest knn neighbors. Default Average=FALSE |
knn |
number of neighbors over which expression for the cells will be averaged in case Average=TRUE. Default: knn=5 |
Palette |
colors that will be used for the cells by default= Palette=colorRampPalette(colors=c("yellow", "orange", "red","black"))) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.