CellexalVR  1.1.0
A virtual reality platform for the exploration and analysis of single-cell gene expression data
CellexalVR.AnalysisLogic.Cell Class Reference

Represents one cell. A cell may be present in multiple graphs. More...

Public Member Functions

 Cell (string label, GraphManager graphManager)
 Creates a new cell. More...
 
void AddGraphPoint (Graph.GraphPoint g)
 Tell this cell that it is now represented by a graphpoint. A cell may be represented by many graphpoints (typically one in each graph). More...
 
void ColorByCluster (int cluster, bool color)
 
void SaveExpression (string saveGeneName, string removeGeneName)
 Saves the current gene expression of this cell is colored by More...
 
void ColorByIndex (string facsName)
 Color all graphpoints that represents this cell by an index. I don't know enough biology to know what this actually is. More...
 
void ColorByGeneExpression (int i)
 Colors this cell by a gene expression color. More...
 
void AddNumericalAttribute (string attributeType, float value)
 Other numerical attribute that is not facs value or gene expression. More...
 
void SetGroup (int group, bool changeColor)
 Sets the group and color of all graphpoints that are representing this cell. More...
 
void InitSaveSingleFlashingGenesExpression (string category, int length)
 Initializes the cell for saving genee expressions for flashing. Should be called before SaveSingleFlashingGenesExpression(string, int, int) More...
 
void SaveSingleFlashingGenesExpression (string category, int index, int expression)
 Saves a gene expression that can be flashed later. More...
 
void SaveFlashingExpression (string category, int[] expression)
 Saves gene expressions so they can be flashed quickly later. More...
 
void ClearFlashingExpressions ()
 Clears the saved flashing expressions. More...
 

Public Attributes

List< Graph.GraphPointGraphPoints
 

Properties

Dictionary< string, float > Facs [get]
 
Dictionary< string, string > FacsValue [get]
 
Dictionary< string, float > NumericalAttributes [get]
 
int ExpressionLevel [get, set]
 
float ExpressionValue [get, set]
 
string Label [get, set]
 

Detailed Description

Represents one cell. A cell may be present in multiple graphs.

Constructor & Destructor Documentation

◆ Cell()

CellexalVR.AnalysisLogic.Cell.Cell ( string  label,
GraphManager  graphManager 
)

Creates a new cell.

Parameters
labelA string that differentiates this cell from other cells.
graphManagerThe graphmanager that this cell has graphpoints in.

Member Function Documentation

◆ AddGraphPoint()

void CellexalVR.AnalysisLogic.Cell.AddGraphPoint ( Graph.GraphPoint  g)

Tell this cell that it is now represented by a graphpoint. A cell may be represented by many graphpoints (typically one in each graph).

Parameters
gThe graphpoint representing this cell.

◆ AddNumericalAttribute()

void CellexalVR.AnalysisLogic.Cell.AddNumericalAttribute ( string  attributeType,
float  value 
)

Other numerical attribute that is not facs value or gene expression.

◆ ClearFlashingExpressions()

void CellexalVR.AnalysisLogic.Cell.ClearFlashingExpressions ( )

Clears the saved flashing expressions.

◆ ColorByGeneExpression()

void CellexalVR.AnalysisLogic.Cell.ColorByGeneExpression ( int  i)

Colors this cell by a gene expression color.

Parameters
iA number between 0 and CellexalVR.General.CellexalConfig.Config.GraphNumberOfExpressionColors

◆ ColorByIndex()

void CellexalVR.AnalysisLogic.Cell.ColorByIndex ( string  facsName)

Color all graphpoints that represents this cell by an index. I don't know enough biology to know what this actually is.

Parameters
facsNameThe index.

◆ InitSaveSingleFlashingGenesExpression()

void CellexalVR.AnalysisLogic.Cell.InitSaveSingleFlashingGenesExpression ( string  category,
int  length 
)

Initializes the cell for saving genee expressions for flashing. Should be called before SaveSingleFlashingGenesExpression(string, int, int)

Parameters
categoryThe name of a category that should be initialized
lengthThe number of genes in that category

◆ SaveExpression()

void CellexalVR.AnalysisLogic.Cell.SaveExpression ( string  saveGeneName,
string  removeGeneName 
)

Saves the current gene expression of this cell is colored by

Parameters
saveGeneNameThe genename to save
removeGeneNameThe name of a gene to remove or an empty string to not remove anything. Gene expressions can use up quite some memory so only 10 are saved at a time.

◆ SaveFlashingExpression()

void CellexalVR.AnalysisLogic.Cell.SaveFlashingExpression ( string  category,
int[]  expression 
)

Saves gene expressions so they can be flashed quickly later.

Parameters
categoryThe category the gene expressions are in
expressionAn array containing indices corresponding to GraphManager.GeneExpressionMaterials.

◆ SaveSingleFlashingGenesExpression()

void CellexalVR.AnalysisLogic.Cell.SaveSingleFlashingGenesExpression ( string  category,
int  index,
int  expression 
)

Saves a gene expression that can be flashed later.

Parameters
categoryThe name of the category that this gene is in
indexWhich index it should be put on
expressionA value between 0 and CellexalConfig.Config.GraphNumberOfExpressionColors

◆ SetGroup()

void CellexalVR.AnalysisLogic.Cell.SetGroup ( int  group,
bool  changeColor 
)

Sets the group and color of all graphpoints that are representing this cell.

Parameters
groupThe new group.

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