CellexalVR  1.1.0
A virtual reality platform for the exploration and analysis of single-cell gene expression data
CellexalVR.AnalysisLogic.BooleanExpression.GeneExpr Class Reference
Inheritance diagram for CellexalVR.AnalysisLogic.BooleanExpression.GeneExpr:
CellexalVR.AnalysisLogic.BooleanExpression.ComparerExpr CellexalVR.AnalysisLogic.BooleanExpression.Expr

Public Member Functions

 GeneExpr (string gene, Token op, float value, bool percent)
 
override bool Eval (Cell cell)
 Evaluates a cell according to this boolean expression. More...
 
override void GetGenes (ref List< string > result, bool onlyPercent=false)
 Gets a list of all genes that this boolean expression contains. More...
 
override void GetFacs (ref List< string > result, bool onlyPercent=false)
 Gets a list of all facs measurements that this boolean expression contains. More...
 
override void GetAttributes (ref List< string > result)
 Gets a list of all attributes that this boolean expression contains. More...
 
override void GetNumericalAttributes (ref List< string > result)
 
override string ToString ()
 
override void SwapPercentExpressions (Tuple< string, float, float >[] ranges)
 Swaps the percent expressions still in the filter, given the genes/facs ranges. More...
 
override void SetFilterManager (FilterManager filterManager)
 Saves the filtermanager that this filter is managed by, must be set before calling Eval(Cell). More...
 
void SetCullingFilterManager (CullingFilterManager cullingFilterManager)
 
override void GetGroups (ref List< int > result)
 
- Public Member Functions inherited from CellexalVR.AnalysisLogic.BooleanExpression.Expr
string OpToString (Func< float, float, bool > op)
 Turns a function that evaluates an operator into a string. More...
 

Public Attributes

string gene
 
Func< float, float, bool > compare
 
float value
 
bool percent
 
FilterManager filterManager
 
CullingFilterManager cullingFilterManager
 
- Public Attributes inherited from CellexalVR.AnalysisLogic.BooleanExpression.Expr
bool combined = false
 

Additional Inherited Members

- Protected Member Functions inherited from CellexalVR.AnalysisLogic.BooleanExpression.Expr
Func< float, float, bool > TokenToFunc (Token op)
 

Member Function Documentation

◆ Eval()

override bool CellexalVR.AnalysisLogic.BooleanExpression.GeneExpr.Eval ( Cell  cell)
virtual

Evaluates a cell according to this boolean expression.

Parameters
cellThe cell to evaluate.
Returns
True if the cell passed this boolean expression, false otherwise.

Implements CellexalVR.AnalysisLogic.BooleanExpression.Expr.

◆ GetAttributes()

override void CellexalVR.AnalysisLogic.BooleanExpression.GeneExpr.GetAttributes ( ref List< string >  result)
virtual

Gets a list of all attributes that this boolean expression contains.

Parameters
resultA reference to a list where the results should be put.
onlyPercentTrue if only attributes that are not yet converted from percent to absolute values should be returned, false otherwise.

Implements CellexalVR.AnalysisLogic.BooleanExpression.Expr.

◆ GetFacs()

override void CellexalVR.AnalysisLogic.BooleanExpression.GeneExpr.GetFacs ( ref List< string >  result,
bool  onlyPercent = false 
)
virtual

Gets a list of all facs measurements that this boolean expression contains.

Parameters
resultA reference to a list where the results should be put.
onlyPercentTrue if only facs measurements that are not yet converted from percent to absolute values should be returned, false otherwise.

Implements CellexalVR.AnalysisLogic.BooleanExpression.Expr.

◆ GetGenes()

override void CellexalVR.AnalysisLogic.BooleanExpression.GeneExpr.GetGenes ( ref List< string >  result,
bool  onlyPercent = false 
)
virtual

Gets a list of all genes that this boolean expression contains.

Parameters
resultA reference to a list where the results should be put.
onlyPercentTrue if only genes that are not yet converted from percent to absolute values should be returned, false otherwise.

Implements CellexalVR.AnalysisLogic.BooleanExpression.Expr.

◆ SetFilterManager()

override void CellexalVR.AnalysisLogic.BooleanExpression.GeneExpr.SetFilterManager ( FilterManager  filterManager)
virtual

Saves the filtermanager that this filter is managed by, must be set before calling Eval(Cell).

Implements CellexalVR.AnalysisLogic.BooleanExpression.Expr.

◆ SwapPercentExpressions()

override void CellexalVR.AnalysisLogic.BooleanExpression.GeneExpr.SwapPercentExpressions ( Tuple< string, float, float >[]  ranges)
virtual

Swaps the percent expressions still in the filter, given the genes/facs ranges.

Parameters
rangesAn array of Tuple<string, float, float> where Item1 is the name of the gene/facs, Item2 is the lower range and Item3 is the higher range.

Implements CellexalVR.AnalysisLogic.BooleanExpression.Expr.


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