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

A graph that contain one or more CombinedCluster that in turn contain one or more CombinedGraphPoint. More...

Inheritance diagram for CellexalVR.AnalysisObjects.GraphGenerator:

Classes

struct  CombineMeshesJob
 Job that combines the meshes of one cluster. More...
 

Public Types

enum  GraphType { MDS, FACS, ATTRIBUTE, BETWEEN }
 

Public Member Functions

Graph CreateGraph (GraphType type)
 Creates a new graph of the given type. More...
 
void CreateShaderColors ()
 Creates the texture that the CombinedGraph shader uses to fetch colors for the graphpoints. More...
 
Graph.GraphPoint AddGraphPoint (Cell cell, float x, float y, float z)
 Adds a graphpoint to this graph. The coordinates should be scaled later with ScaleAllCoordinates. More...
 
void AddAxes (Graph graph, string[] axisNames)
 Adds arrows representing the axes of the graph. More...
 
void SliceClustering (Dictionary< string, Graph.GraphPoint > points=null)
 Divides the graph into clusters. The graph starts out as one large cluster and is recursively divided into smaller and smaller clusters until all clusters can be rendered in Unity using a single mesh. More...
 
void CreateSubGraphs ()
 
void CreateSubGraphs (List< string > attributes)
 Creates a subgraph based on some attrbiutes. More...
 
void CreatePointsBetweenGraphs (Cell[] cells, Vector3[] positions)
 
void CreateColliders ()
 Adds many boxcolliders to this graph. The idea is that when grabbing graphs we do not want to collide with all the small colliders on the graphpoints, so we put many boxcolliders that cover the graph instead. More...
 

Public Attributes

ReferenceManager referenceManager
 
GameObject graphpointsPrefab
 
GameObject graphPrefab
 
GameObject AxesPrefabColoured
 
GameObject AxesPrefabUncoloured
 
Material graphPointMaterialPrefab
 
GameObject skeletonPrefab
 
Mesh graphpointStandardQStandardSzMesh
 
Mesh graphpointStandardQSmallSzMesh
 
Mesh graphpointStandardQLargeSzMesh
 
Mesh graphpointLowQStandardSzMesh
 
Mesh graphpointLowQSmallSzMesh
 
Mesh graphpointLowQLargeSzMesh
 
Mesh meshToUse
 
bool isCreating
 
bool addingToExisting
 
Texture2D graphPointColors
 
int graphCount
 

Properties

string DirectoryName [get, set]
 

Detailed Description

A graph that contain one or more CombinedCluster that in turn contain one or more CombinedGraphPoint.

Member Function Documentation

◆ AddAxes()

void CellexalVR.AnalysisObjects.GraphGenerator.AddAxes ( Graph  graph,
string[]  axisNames 
)

Adds arrows representing the axes of the graph.

Parameters
graphThe graph to add axes to.
axisNamesThe labels on the axes.

◆ AddGraphPoint()

Graph.GraphPoint CellexalVR.AnalysisObjects.GraphGenerator.AddGraphPoint ( Cell  cell,
float  x,
float  y,
float  z 
)

Adds a graphpoint to this graph. The coordinates should be scaled later with ScaleAllCoordinates.

Parameters
labelThe graphpoint's (cell's) name.
xThe x-coordinate.
yThe y-coordinate.
zThe z-coordinate.

◆ CreateColliders()

void CellexalVR.AnalysisObjects.GraphGenerator.CreateColliders ( )

Adds many boxcolliders to this graph. The idea is that when grabbing graphs we do not want to collide with all the small colliders on the graphpoints, so we put many boxcolliders that cover the graph instead.

◆ CreateGraph()

Graph CellexalVR.AnalysisObjects.GraphGenerator.CreateGraph ( GraphType  type)

Creates a new graph of the given type.

Parameters
typeThe type of graph to create.
Returns
The new graph.

◆ CreateShaderColors()

void CellexalVR.AnalysisObjects.GraphGenerator.CreateShaderColors ( )

Creates the texture that the CombinedGraph shader uses to fetch colors for the graphpoints.

◆ CreateSubGraphs()

void CellexalVR.AnalysisObjects.GraphGenerator.CreateSubGraphs ( List< string >  attributes)

Creates a subgraph based on some attrbiutes.

Parameters
attributesThe attributes to include in the subgraph.

◆ SliceClustering()

void CellexalVR.AnalysisObjects.GraphGenerator.SliceClustering ( Dictionary< string, Graph.GraphPoint points = null)

Divides the graph into clusters. The graph starts out as one large cluster and is recursively divided into smaller and smaller clusters until all clusters can be rendered in Unity using a single mesh.


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