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

Represents a manager that holds all graphs. More...

Inheritance diagram for CellexalVR.AnalysisObjects.GraphManager:

Public Types

enum  GeneExpressionColoringMethods { EqualExpressionRanges, EqualCellNumbers }
 The different methods for coloring graphs by gene expression. The different options are:

  • Linear: Each color represent a range of expression values. All ranges are the same size.
  • Ranked: Each color contains the same number of cells.
More...
 

Public Member Functions

Graph.GraphPoint FindGraphPoint (string graphName, string label)
 Finds a graphpoint. More...
 
void CheckNullNodes ()
 
void RecolorGraphPoint (string label, int i)
 
void ColorGraphsByFeature (string featureName)
 
void ColorAllGraphsByGeneExpression (string geneName, ArrayList expressions)
 Color all graphs with the expression of some gene. More...
 
void ColorAllGraphsBySelection (Selection selection)
 Colors all graphs by a selection. More...
 
void DeleteGraphsAndNetworks ()
 Deletes all graphs and networks in the scene. More...
 
void AddNetwork (NetworkHandler handler)
 
void RemoveNetwork (NetworkHandler handler)
 
void ToggleGraphPointTransparency (bool toggle)
 Toggles the transparency of all graph points on/off. More...
 
void ClearExpressionColours ()
 Clears expression colours from graph but keeps current selection colours. More...
 
void ResetGraphsColor ()
 Resets all graphpoints' in all graphs colors to white. More...
 
void ResetGraphsPosition ()
 Resets the position, scale and color of all Graphs. More...
 
void DeleteGraph (string name, string tag)
 Delete graph using the delete tool. More...
 
Graph FindGraph (string graphName, bool caseSensitive=false)
 Finds a graph. More...
 
SpatialGraph FindSpatialGraph (string graphName)
 
void ClearLinesBetweenGraphs ()
 Removes all lines between graphpoints. More...
 
void ToggleInfoPanels ()
 Set all graphs' info panels to visible or not visible. More...
 
void ToggleAxes ()
 Set all graphs' axes to visible or not visible. More...
 

Public Attributes

ReferenceManager referenceManager
 
AudioSource goodSound
 
List< string > directories
 
SelectionManager selectionManager
 
List< GraphGraphs
 
List< GraphoriginalGraphs
 
List< GraphfacsGraphs
 
List< GraphattributeSubGraphs
 
List< SpatialGraphspatialGraphs
 
List< string > velocityFiles
 
GeneExpressionColoringMethods GeneExpressionColoringMethod = GeneExpressionColoringMethods.EqualExpressionRanges
 

Detailed Description

Represents a manager that holds all graphs.

Member Enumeration Documentation

◆ GeneExpressionColoringMethods

The different methods for coloring graphs by gene expression. The different options are:

  • Linear: Each color represent a range of expression values. All ranges are the same size.
  • Ranked: Each color contains the same number of cells.

Member Function Documentation

◆ ClearExpressionColours()

void CellexalVR.AnalysisObjects.GraphManager.ClearExpressionColours ( )

Clears expression colours from graph but keeps current selection colours.

◆ ClearLinesBetweenGraphs()

void CellexalVR.AnalysisObjects.GraphManager.ClearLinesBetweenGraphs ( )

Removes all lines between graphpoints.

◆ ColorAllGraphsByGeneExpression()

void CellexalVR.AnalysisObjects.GraphManager.ColorAllGraphsByGeneExpression ( string  geneName,
ArrayList  expressions 
)

Color all graphs with the expression of some gene.

Parameters
expressionsAn arraylist with SQLiter.CellExpressionPair.

◆ ColorAllGraphsBySelection()

void CellexalVR.AnalysisObjects.GraphManager.ColorAllGraphsBySelection ( Selection  selection)

Colors all graphs by a selection.

Parameters
selectionThe selection to color by.

◆ DeleteGraph()

void CellexalVR.AnalysisObjects.GraphManager.DeleteGraph ( string  name,
string  tag 
)

Delete graph using the delete tool.

Parameters
nameName of the gameobject
tagTag of the graph. Behaves differently depending on if it is subgraph or facsgraph. Original graphs cannot be removed.

◆ DeleteGraphsAndNetworks()

void CellexalVR.AnalysisObjects.GraphManager.DeleteGraphsAndNetworks ( )

Deletes all graphs and networks in the scene.

◆ FindGraph()

Graph CellexalVR.AnalysisObjects.GraphManager.FindGraph ( string  graphName,
bool  caseSensitive = false 
)

Finds a graph.

Parameters
graphNameThe graph's name, or an empty string for any graph.
Returns
A reference to the graph, or null if no graph was found

◆ FindGraphPoint()

Graph.GraphPoint CellexalVR.AnalysisObjects.GraphManager.FindGraphPoint ( string  graphName,
string  label 
)

Finds a graphpoint.

Parameters
graphNameThe name of the graph the graphpoint is in.
labelThe graphpoint's label.
Returns
A reference to the graphpoint, or null if it was not found.

◆ ResetGraphsColor()

void CellexalVR.AnalysisObjects.GraphManager.ResetGraphsColor ( )

Resets all graphpoints' in all graphs colors to white.

◆ ResetGraphsPosition()

void CellexalVR.AnalysisObjects.GraphManager.ResetGraphsPosition ( )

Resets the position, scale and color of all Graphs.

◆ ToggleAxes()

void CellexalVR.AnalysisObjects.GraphManager.ToggleAxes ( )

Set all graphs' axes to visible or not visible.

Parameters
visibleTRue for visible, false for invisible

◆ ToggleGraphPointTransparency()

void CellexalVR.AnalysisObjects.GraphManager.ToggleGraphPointTransparency ( bool  toggle)

Toggles the transparency of all graph points on/off.

Parameters
toggle

◆ ToggleInfoPanels()

void CellexalVR.AnalysisObjects.GraphManager.ToggleInfoPanels ( )

Set all graphs' info panels to visible or not visible.

Parameters
visibleTRue for visible, false for invisible

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