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

Represents one node in a network, it handles the coloring of the connections and part of the network creation process, More...

Inheritance diagram for CellexalVR.AnalysisObjects.NetworkNode:

Public Member Functions

override bool Equals (object other)
 
override int GetHashCode ()
 
void BringBack ()
 Tells this networknode that the networkcenter it belongs to is being brought back to the networkhandler. More...
 
void SetReferenceManager (ReferenceManager referenceManager)
 
void AddNeighbour (NetworkNode buddy, float pcor)
 Adds a neighbour to this node. A neughbour should be a gene that is correlated to this node's gene. This will also add this node as the neighbour's neighbour, so it's basically a bidirectional edge between two vertices. A gene may have many neighbours. More...
 
void Highlight ()
 Makes this node and all outgoing edges big and white. More...
 
void UnHighlight ()
 Makes this node and all outgoing edges small and whatever color they were before. More...
 
List< NetworkNodeAllConnectedNodes ()
 Returns a list of all connected nodes. More...
 
void RepositionEdges ()
 Repositions the edges based on this nodes neighbours. Called many times when a layout is switched for a smooth transitions. More...
 
void ColorEdges ()
 Colors the edges of this network node according to the coloring method defined in CellexalConfig.Config. More...
 

Public Attributes

TextMeshPro geneName
 
GameObject edgePrefab
 
GameObject arcDescriptionPrefab
 
Material standardMaterial
 
Material highlightMaterial
 
ReferenceManager referenceManager
 
HashSet< NetworkNodeneighbours = new HashSet<NetworkNode>()
 
List< Tuple< NetworkNode, NetworkNode, LineRenderer, float > > edges = new List<Tuple<NetworkNode, NetworkNode, LineRenderer, float>>()
 

Properties

Transform CameraToLookAt [get, set]
 
NetworkCenter Center [get, set]
 
string Label [get, set]
 
Vector3[] LayoutPositions = new Vector3[2] [get, set]
 

Detailed Description

Represents one node in a network, it handles the coloring of the connections and part of the network creation process,

Member Function Documentation

◆ AddNeighbour()

void CellexalVR.AnalysisObjects.NetworkNode.AddNeighbour ( NetworkNode  buddy,
float  pcor 
)

Adds a neighbour to this node. A neughbour should be a gene that is correlated to this node's gene. This will also add this node as the neighbour's neighbour, so it's basically a bidirectional edge between two vertices. A gene may have many neighbours.

Parameters
buddyThe new neighbour

◆ AllConnectedNodes()

List<NetworkNode> CellexalVR.AnalysisObjects.NetworkNode.AllConnectedNodes ( )

Returns a list of all connected nodes.

◆ BringBack()

void CellexalVR.AnalysisObjects.NetworkNode.BringBack ( )

Tells this networknode that the networkcenter it belongs to is being brought back to the networkhandler.

◆ ColorEdges()

void CellexalVR.AnalysisObjects.NetworkNode.ColorEdges ( )

Colors the edges of this network node according to the coloring method defined in CellexalConfig.Config.

◆ Highlight()

void CellexalVR.AnalysisObjects.NetworkNode.Highlight ( )

Makes this node and all outgoing edges big and white.

◆ RepositionEdges()

void CellexalVR.AnalysisObjects.NetworkNode.RepositionEdges ( )

Repositions the edges based on this nodes neighbours. Called many times when a layout is switched for a smooth transitions.

◆ UnHighlight()

void CellexalVR.AnalysisObjects.NetworkNode.UnHighlight ( )

Makes this node and all outgoing edges small and whatever color they were before.


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