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

Public Member Functions

 AttributeExpr (string attribute, bool include)
 
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 void GetGroups (ref List< int > 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...
 
- 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 attribute
 
bool include
 
- 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.AttributeExpr.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.AttributeExpr.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.AttributeExpr.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.AttributeExpr.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.AttributeExpr.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.AttributeExpr.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: