CellexalVR  0.13.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 AddAttribute (string attributeType, int color)
 Adds an attribute to this cell. More...
 
void ColorByAttribute (string attributeType, bool color)
 Colors all graphpoints that represents this cell if this cell is of an attribute. More...
 
bool EvaluateAttributeLogic (Tuple< string, AttributeLogic >[] attributes)
 
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 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, int > Attributes [get]
 
Dictionary< string, float > Facs [get]
 
Dictionary< string, string > FacsValue [get]
 
int ExpressionLevel [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

◆ AddAttribute()

void CellexalVR.AnalysisLogic.Cell.AddAttribute ( string  attributeType,
int  color 
)

Adds an attribute to this cell.

Parameters
attributeTypeThe type of the attribute.
colorThe color that should be used for this attribute. This corresponds to an index in GraphManager.AttributeMaterials.

◆ 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.

◆ ClearFlashingExpressions()

void CellexalVR.AnalysisLogic.Cell.ClearFlashingExpressions ( )

Clears the saved flashing expressions.

◆ ColorByAttribute()

void CellexalVR.AnalysisLogic.Cell.ColorByAttribute ( string  attributeType,
bool  color 
)

Colors all graphpoints that represents this cell if this cell is of an attribute.

Parameters
attributeTypeThe attribute to color by.
colorTrue if the graphpoints should be colored, false if they should be white. (True means show this attribute, false means hide basically)

◆ 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: