CellexalVR  1.1.0
A virtual reality platform for the exploration and analysis of single-cell gene expression data
CellexalVR.AnalysisLogic.BooleanExpression.Expr Class Referenceabstract
Inheritance diagram for CellexalVR.AnalysisLogic.BooleanExpression.Expr:
CellexalVR.AnalysisLogic.BooleanExpression.AndExpr CellexalVR.AnalysisLogic.BooleanExpression.ComparerExpr CellexalVR.AnalysisLogic.BooleanExpression.NotExpr CellexalVR.AnalysisLogic.BooleanExpression.OrExpr CellexalVR.AnalysisLogic.BooleanExpression.XorExpr CellexalVR.AnalysisLogic.BooleanExpression.AttributeExpr CellexalVR.AnalysisLogic.BooleanExpression.FacsExpr CellexalVR.AnalysisLogic.BooleanExpression.GeneExpr CellexalVR.AnalysisLogic.BooleanExpression.SelectionGroupExpr

Public Member Functions

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

Public Attributes

bool combined = false
 

Protected Member Functions

Func< float, float, bool > TokenToFunc (Token op)
 

Member Function Documentation

◆ Eval()

abstract bool CellexalVR.AnalysisLogic.BooleanExpression.Expr.Eval ( Cell  cell)
pure virtual

◆ GetAttributes()

abstract void CellexalVR.AnalysisLogic.BooleanExpression.Expr.GetAttributes ( ref List< string >  result)
pure 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.

Implemented in CellexalVR.AnalysisLogic.BooleanExpression.NotExpr, CellexalVR.AnalysisLogic.BooleanExpression.XorExpr, CellexalVR.AnalysisLogic.BooleanExpression.OrExpr, CellexalVR.AnalysisLogic.BooleanExpression.AndExpr, CellexalVR.AnalysisLogic.BooleanExpression.AttributeExpr, CellexalVR.AnalysisLogic.BooleanExpression.SelectionGroupExpr, CellexalVR.AnalysisLogic.BooleanExpression.FacsExpr, and CellexalVR.AnalysisLogic.BooleanExpression.GeneExpr.

◆ GetFacs()

abstract void CellexalVR.AnalysisLogic.BooleanExpression.Expr.GetFacs ( ref List< string >  result,
bool  onlyPercent = false 
)
pure 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.

Implemented in CellexalVR.AnalysisLogic.BooleanExpression.NotExpr, CellexalVR.AnalysisLogic.BooleanExpression.XorExpr, CellexalVR.AnalysisLogic.BooleanExpression.OrExpr, CellexalVR.AnalysisLogic.BooleanExpression.AndExpr, CellexalVR.AnalysisLogic.BooleanExpression.AttributeExpr, CellexalVR.AnalysisLogic.BooleanExpression.SelectionGroupExpr, CellexalVR.AnalysisLogic.BooleanExpression.FacsExpr, and CellexalVR.AnalysisLogic.BooleanExpression.GeneExpr.

◆ GetGenes()

abstract void CellexalVR.AnalysisLogic.BooleanExpression.Expr.GetGenes ( ref List< string >  result,
bool  onlyPercent = false 
)
pure 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.

Implemented in CellexalVR.AnalysisLogic.BooleanExpression.NotExpr, CellexalVR.AnalysisLogic.BooleanExpression.XorExpr, CellexalVR.AnalysisLogic.BooleanExpression.OrExpr, CellexalVR.AnalysisLogic.BooleanExpression.AndExpr, CellexalVR.AnalysisLogic.BooleanExpression.AttributeExpr, CellexalVR.AnalysisLogic.BooleanExpression.SelectionGroupExpr, CellexalVR.AnalysisLogic.BooleanExpression.FacsExpr, and CellexalVR.AnalysisLogic.BooleanExpression.GeneExpr.

◆ OpToString()

string CellexalVR.AnalysisLogic.BooleanExpression.Expr.OpToString ( Func< float, float, bool >  op)

Turns a function that evaluates an operator into a string.

◆ SetFilterManager()

◆ SwapPercentExpressions()

abstract void CellexalVR.AnalysisLogic.BooleanExpression.Expr.SwapPercentExpressions ( Tuple< string, float, float >[]  ranges)
pure virtual

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