CellexalVR
0.13.0
A virtual reality platform for the exploration and analysis of single-cell gene expression data
|
This class represents a heatmap. Contains methods for calling r-script, building texture and interaction methods etc. More...
Public Member Functions | |
void | Init () |
void | ResetHeatmapHighlight () |
Removes the highlight box and the highlight text. More... | |
void | HighLightGene (string geneName) |
Highlights a gene in the genelist if it is there. For example when colouring from keyboard it draws attention to the gene in the list. More... | |
void | CreateNewHeatmapFromSelection (int selectedGroupLeft, int selectedGroupRight, int selectedGeneTop, int selectedGeneBottom, float selectedBoxWidth, float selectedBoxHeight) |
Creates a new heatmap based on what was selected on this heatmap. More... | |
void | UpdateAttributeWidhts () |
Helper function to update the attribute bar widths. Used when creating a new hm from selection on old or moving groups around. More... | |
void | AddAttributeWidth (Dictionary< string, int > attributes, float cellWidth, Cell cell) |
Helper function to add attribute width and colour. More... | |
void | ReorderByAttribute () |
Reorders the heatmap so that each selection group is reordered based on the attributes. Cells will be reordered so cells with the same attribute within the same group is next to each other. More... | |
void | SaveImage () |
Saves the image used to create this heatmap to another directory. The saved image will have the a name based on when the image is saved. More... | |
void | DumpGenesToTextFile (string[] genes, string name) |
Dumps the genes into a text file. More... | |
void | UpdateImage (string filepath) |
Updates this heatmap's image. More... | |
void | ColorCells () |
Recolours all graphs with the colors that the cells had when this heatmap was created. Graph points that are not part of this heatmap are not recoloured and will keep their colour. More... | |
void | SetVars (Dictionary< Cell, int > colors) |
Sets some variables. Should be called after a heatmap is instantiated. More... | |
Public Attributes | |
ReferenceManager | referenceManager |
Texture | texture |
TextMeshPro | infoText |
TextMeshPro | statusText |
TextMeshPro | barInfoText |
SaveHeatmapButton | saveImageButton |
GOanalysisButton | goAnalysisButton |
GameObject | highlightQuad |
GameObject | highlightGeneQuad |
GameObject | confirmQuad |
GameObject | movingQuadX |
GameObject | movingQuadY |
int | selectionNr |
TextMeshPro | enlargedGeneText |
TextMeshPro | highlightGeneText |
TextMeshPro | highlightInfoText |
bool | removable |
string | directory |
Bitmap | bitmap |
List< Graph.GraphPoint > | selection |
List< Tuple< int, float, int > > | groupWidths |
Item1: group number, Item2: group width in coordinates, Item3: number of cells in the group More... | |
List< Tuple< int, float, int > > | attributeWidths |
List< Tuple< Cell, int > > | cellAttributes |
Dictionary< int, UnityEngine.Color > | groupingColors |
Dictionary< int, UnityEngine.Color > | attributeColors |
Cell[] | cells |
bool | createAnim = false |
bool | orderedByAttribute = false |
bool | buildingTexture = false |
string[] | genes |
int | bitmapWidth = 4096 |
int | bitmapHeight = 4096 |
int | heatmapX = 250 |
int | heatmapY = 250 |
int | heatmapWidth = 3596 |
int | heatmapHeight = 3596 |
int | geneListX = 3846 |
int | geneListWidth = 250 |
int | attributeBarY = 10 |
int | groupBarY = 120 |
int | groupBarHeight = 100 |
int | attributeBarHeight = 100 |
int | noAttribute = -2 |
int | lastAttribute = -1 |
int | attributeWidth = 0 |
This class represents a heatmap. Contains methods for calling r-script, building texture and interaction methods etc.
void CellexalVR.AnalysisObjects.Heatmap.AddAttributeWidth | ( | Dictionary< string, int > | attributes, |
float | cellWidth, | ||
Cell | cell | ||
) |
Helper function to add attribute width and colour.
void CellexalVR.AnalysisObjects.Heatmap.ColorCells | ( | ) |
Recolours all graphs with the colors that the cells had when this heatmap was created. Graph points that are not part of this heatmap are not recoloured and will keep their colour.
void CellexalVR.AnalysisObjects.Heatmap.CreateNewHeatmapFromSelection | ( | int | selectedGroupLeft, |
int | selectedGroupRight, | ||
int | selectedGeneTop, | ||
int | selectedGeneBottom, | ||
float | selectedBoxWidth, | ||
float | selectedBoxHeight | ||
) |
Creates a new heatmap based on what was selected on this heatmap.
void CellexalVR.AnalysisObjects.Heatmap.DumpGenesToTextFile | ( | string[] | genes, |
string | name | ||
) |
Dumps the genes into a text file.
void CellexalVR.AnalysisObjects.Heatmap.HighLightGene | ( | string | geneName | ) |
Highlights a gene in the genelist if it is there. For example when colouring from keyboard it draws attention to the gene in the list.
geneName | The name of the gene. |
void CellexalVR.AnalysisObjects.Heatmap.ReorderByAttribute | ( | ) |
Reorders the heatmap so that each selection group is reordered based on the attributes. Cells will be reordered so cells with the same attribute within the same group is next to each other.
void CellexalVR.AnalysisObjects.Heatmap.ResetHeatmapHighlight | ( | ) |
Removes the highlight box and the highlight text.
void CellexalVR.AnalysisObjects.Heatmap.SaveImage | ( | ) |
Saves the image used to create this heatmap to another directory. The saved image will have the a name based on when the image is saved.
void CellexalVR.AnalysisObjects.Heatmap.SetVars | ( | Dictionary< Cell, int > | colors | ) |
Sets some variables. Should be called after a heatmap is instantiated.
void CellexalVR.AnalysisObjects.Heatmap.UpdateAttributeWidhts | ( | ) |
Helper function to update the attribute bar widths. Used when creating a new hm from selection on old or moving groups around.
void CellexalVR.AnalysisObjects.Heatmap.UpdateImage | ( | string | filepath | ) |
Updates this heatmap's image.
List<Tuple<int, float, int> > CellexalVR.AnalysisObjects.Heatmap.groupWidths |
Item1: group number, Item2: group width in coordinates, Item3: number of cells in the group