CellexalVR  1.1.0
A virtual reality platform for the exploration and analysis of single-cell gene expression data
CellexalVR.DesktopUI.ColorMapManager Class Reference
Inheritance diagram for CellexalVR.DesktopUI.ColorMapManager:

Public Member Functions

void SetColorMap ()
 
void GenerateRandomColors (int n=-1)
 Generates random colors to use as selection colors. More...
 
void DoGenerateRandomColors (int n)
 Generates random colors to use as selection colors. More...
 
void GenerateRainbowColors (int n=-1)
 Generates a rainbow pattern of colors to use as selection colors. More...
 
void DoGenerateRainbowColors (int n)
 Generates a rainbow pattern of colors to use as selection colors. More...
 
void SetHeatmapColormap ()
 Sets the heatmaps' expression colors. The colors to use are set through the desktop UI. More...
 
void SetGraphColormap ()
 Sets the graphs' gene expression colors to some pre-defined color sets. The colors to use are set through the desktop UI. More...
 

Public Attributes

TMPro.TMP_InputField nrGroupsInput
 

Static Public Attributes

static List< Color > tab20
 A pre-defined list of colors taken from matplotlibs color map tab20. https://matplotlib.org/stable/gallery/color/colormap_reference.html More...
 

Member Function Documentation

◆ DoGenerateRainbowColors()

void CellexalVR.DesktopUI.ColorMapManager.DoGenerateRainbowColors ( int  n)

Generates a rainbow pattern of colors to use as selection colors.

Parameters
nThe number of colors to generate.

◆ DoGenerateRandomColors()

void CellexalVR.DesktopUI.ColorMapManager.DoGenerateRandomColors ( int  n)

Generates random colors to use as selection colors.

Parameters
nThe number of colors to generate.

◆ GenerateRainbowColors()

void CellexalVR.DesktopUI.ColorMapManager.GenerateRainbowColors ( int  n = -1)

Generates a rainbow pattern of colors to use as selection colors.

Parameters
nOptional, the numbers of colors to generate. If left out, the number in the desktop UI field will be used.

◆ GenerateRandomColors()

void CellexalVR.DesktopUI.ColorMapManager.GenerateRandomColors ( int  n = -1)

Generates random colors to use as selection colors.

Parameters
nOptional, the numbers of colors to generate. If left out, the number in the desktop UI field will be used.

◆ SetGraphColormap()

void CellexalVR.DesktopUI.ColorMapManager.SetGraphColormap ( )

Sets the graphs' gene expression colors to some pre-defined color sets. The colors to use are set through the desktop UI.

◆ SetHeatmapColormap()

void CellexalVR.DesktopUI.ColorMapManager.SetHeatmapColormap ( )

Sets the heatmaps' expression colors. The colors to use are set through the desktop UI.

Member Data Documentation

◆ tab20

List<Color> CellexalVR.DesktopUI.ColorMapManager.tab20
static
Initial value:
= new List<Color>
{
new Color(0.12157f, 0.46666f, 0.70588f, 1.0f),
new Color(0.68235f, 0.78039f, 0.90980f, 1.0f),
new Color(1.0f, 0.49803f, 0.05490f, 1.0f),
new Color(1.0f, 0.73333f, 0.47058f, 1.0f),
new Color(0.17254f, 0.62745f, 0.17254f, 1.0f),
new Color(0.59607f, 0.87450f, 0.54117f, 1.0f),
new Color(0.83921f, 0.15294f, 0.15686f, 1.0f),
new Color(1.0f, 0.59607f, 0.58823f, 1.0f),
new Color(0.58039f, 0.403921f, 0.74117f, 1.0f),
new Color(0.77254f, 0.690196f, 0.83529f, 1.0f),
new Color(0.54901f, 0.337254f, 0.29411f, 1.0f),
new Color(0.76862f, 0.611764f, 0.58039f, 1.0f),
new Color(0.89019f, 0.466666f, 0.76078f, 1.0f),
new Color(0.96862f, 0.713725f, 0.82352f, 1.0f),
new Color(0.49803f, 0.498039f, 0.49803f, 1.0f),
new Color(0.78039f, 0.780392f, 0.78039f, 1.0f),
new Color(0.73725f, 0.741176f, 0.13333f, 1.0f),
new Color(0.85882f, 0.858823f, 0.55294f, 1.0f),
new Color(0.09019f, 0.745098f, 0.81176f, 1.0f),
new Color(0.61960f, 0.854901f, 0.89803f, 1.0f)
}

A pre-defined list of colors taken from matplotlibs color map tab20. https://matplotlib.org/stable/gallery/color/colormap_reference.html


The documentation for this class was generated from the following file: