CellexalVR
0.13.0
A virtual reality platform for the exploration and analysis of single-cell gene expression data
|
This class represent a manager that holds all the cells. More...
Public Member Functions | |
Cell | AddCell (string label) |
Attempts to add a cell to the dictionary More... | |
Cell | GetCell (string label) |
Finds cell and returns it. More... | |
Cell[] | GetCells () |
Returns all cells. More... | |
void | CreateNewSelection (string graphName, string[] cellnames, int[] groups, Dictionary< int, Color > groupingColors=null) |
Creates a new selection. More... | |
void | ColorGraphsByGene (string geneName) |
void | ColorGraphsByGene (string geneName, bool triggerEvent=true) |
Colors all GraphPoints in all current Graphs based on their expression of a gene. More... | |
void | ColorGraphsByGene (string geneName, GraphManager.GeneExpressionColoringMethods coloringMethod, bool triggerEvent=true) |
Colors all GraphPoints in all current Graphs based on their expression of a gene. More... | |
void | QueryTopGenes (SQLite.QueryTopGenesRankingMode mode) |
Queries the database for all genes and sorts them based on the chosen mode. More... | |
void | AddToPrunedGenes (string[] genesToAdd) |
Used by the database to tell the cellmanager which genes were actually in the database. More... | |
void | DeleteCells () |
Removes all cells. More... | |
void | ColorByAttribute (string attributeType, bool color, bool subGraph=false) |
Color all cells that belong to a certain attribute. More... | |
void | SendToSelection () |
Adds the currently selected attributes as a selection. More... | |
void | ColorByAttributeExpression (BooleanExpression.Expr expr) |
Color all cells based on an expression of attributes More... | |
void | AddAttribute (string cellname, string attributeType, int group) |
Adds an attribute to a cell. More... | |
void | ColorByIndex (string name) |
Color all graphpoints according to a column in the index.facs file. More... | |
IEnumerator | DrawLinesBetweenGraphPoints (List< Graph.GraphPoint > points) |
Draws lines between the graph that was selected from to points in other graphs that share the same cell label. More... | |
void | ClearLinesBetweenGraphPoints () |
Removes all lines between graphs. More... | |
List< Cell > | SubSet (BooleanExpression.Expr expr) |
Returns a subset of all cells in the dataset based on a boolean expression. More... | |
Public Attributes | |
GameObject | clusterDebugBox |
ReferenceManager | referenceManager |
GameObject | lineBetweenTwoGraphPointsPrefab |
GameObject | pointClusterPrefab |
Properties | |
string[] | Attributes [get, set] |
string[] | Facs [get, set] |
string[] | Facs_values [get, set] |
float | LowestExpression [get] |
float | HighestExpression [get] |
Dictionary< string, Tuple< float, float > > | FacsRanges [get] |
Lowest and highest range of facs measurements. Tuple<T1, T2>.Item1 is the lowest value and Tuple<T1, T2>.Item2 is the highest. More... | |
This class represent a manager that holds all the cells.
void CellexalVR.AnalysisLogic.CellManager.AddAttribute | ( | string | cellname, |
string | attributeType, | ||
int | group | ||
) |
Adds an attribute to a cell.
cellname | The cells name. |
attributeType | The attribute type / name |
group | The attribute value |
Cell CellexalVR.AnalysisLogic.CellManager.AddCell | ( | string | label | ) |
Attempts to add a cell to the dictionary
label | The cell's name |
void CellexalVR.AnalysisLogic.CellManager.AddToPrunedGenes | ( | string[] | genesToAdd | ) |
Used by the database to tell the cellmanager which genes were actually in the database.
genesToAdd | An array of genes that was in the database. |
void CellexalVR.AnalysisLogic.CellManager.ClearLinesBetweenGraphPoints | ( | ) |
Removes all lines between graphs.
void CellexalVR.AnalysisLogic.CellManager.ColorByAttribute | ( | string | attributeType, |
bool | color, | ||
bool | subGraph = false |
||
) |
Color all cells that belong to a certain attribute.
attributeType | The name of the attribute. |
color | True if the graphpoints should be colored to the attribute's color, false if they should be white. |
void CellexalVR.AnalysisLogic.CellManager.ColorByAttributeExpression | ( | BooleanExpression.Expr | expr | ) |
Color all cells based on an expression of attributes
expr | The root of the tree representing a boolean expression of attributes. |
void CellexalVR.AnalysisLogic.CellManager.ColorByIndex | ( | string | name | ) |
Color all graphpoints according to a column in the index.facs file.
void CellexalVR.AnalysisLogic.CellManager.ColorGraphsByGene | ( | string | geneName, |
bool | triggerEvent = true |
||
) |
Colors all GraphPoints in all current Graphs based on their expression of a gene.
geneName | The name of the gene. |
void CellexalVR.AnalysisLogic.CellManager.ColorGraphsByGene | ( | string | geneName, |
GraphManager.GeneExpressionColoringMethods | coloringMethod, | ||
bool | triggerEvent = true |
||
) |
Colors all GraphPoints in all current Graphs based on their expression of a gene.
geneName | The name of the gene. |
void CellexalVR.AnalysisLogic.CellManager.CreateNewSelection | ( | string | graphName, |
string[] | cellnames, | ||
int[] | groups, | ||
Dictionary< int, Color > | groupingColors = null |
||
) |
Creates a new selection.
graphName | The graph that the selection originated from. |
cellnames | An array of all the cell names (the graphpoint labels). |
groups | An array of all colors that the cells should have. |
groupingColors | Optional parameter, used if a custom color scheme should be used. Maps groups to colors. |
void CellexalVR.AnalysisLogic.CellManager.DeleteCells | ( | ) |
Removes all cells.
IEnumerator CellexalVR.AnalysisLogic.CellManager.DrawLinesBetweenGraphPoints | ( | List< Graph.GraphPoint > | points | ) |
Draws lines between the graph that was selected from to points in other graphs that share the same cell label.
points | The graphpoints to draw the lines from. |
Cell CellexalVR.AnalysisLogic.CellManager.GetCell | ( | string | label | ) |
Finds cell and returns it.
label | The label(id) of the cell. |
Cell [] CellexalVR.AnalysisLogic.CellManager.GetCells | ( | ) |
Returns all cells.
void CellexalVR.AnalysisLogic.CellManager.QueryTopGenes | ( | SQLite.QueryTopGenesRankingMode | mode | ) |
Queries the database for all genes and sorts them based on the chosen mode.
mode | The chosen mode. SQLite.QueryTopGenesRankingMode |
void CellexalVR.AnalysisLogic.CellManager.SendToSelection | ( | ) |
Adds the currently selected attributes as a selection.
List<Cell> CellexalVR.AnalysisLogic.CellManager.SubSet | ( | BooleanExpression.Expr | expr | ) |
Returns a subset of all cells in the dataset based on a boolean expression.
|
get |
Lowest and highest range of facs measurements. Tuple<T1, T2>.Item1 is the lowest value and Tuple<T1, T2>.Item2 is the highest.