Relation classes
And
¶
Bases: Relation
Class for representing the logical AND of multiple conditions Allows nesed conditions, i.e. And(1, Or(2, 3))
Source code in yeastdnnexplorer/probability_models/relation_classes.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
|
__init__(*conditions)
¶
Parameters:
Name | Type | Description | Default |
---|---|---|---|
conditions |
List[float | Relation]
|
List of conditions to be evaluated |
()
|
Source code in yeastdnnexplorer/probability_models/relation_classes.py
12 13 14 15 16 17 |
|
evaluate(bound_vec)
¶
Returns true if the And() condition evaluates to true Evaluates nested conditions as needed.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
bound_vec |
List[float]
|
Vector of TF indices (0 or 1) indicating which TFs are bound for the gene in question |
required |
Source code in yeastdnnexplorer/probability_models/relation_classes.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
|
Or
¶
Bases: Relation
Source code in yeastdnnexplorer/probability_models/relation_classes.py
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
|
__init__(*conditions)
¶
Parameters:
Name | Type | Description | Default |
---|---|---|---|
conditions |
List[int | Relation]
|
List of conditions to be evaluated |
()
|
Source code in yeastdnnexplorer/probability_models/relation_classes.py
48 49 50 51 52 53 |
|
evaluate(bound_vec)
¶
Returns true if the Or() condition evaluates to true Evaluates nested conditions as needed.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
bound_vec |
List[int]
|
Vector of TF indices (0 or 1) indicating which TFs are bound for the gene in question |
required |
Source code in yeastdnnexplorer/probability_models/relation_classes.py
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
|
Relation
¶
Base class for relations between TF indices.
Source code in yeastdnnexplorer/probability_models/relation_classes.py
1 2 3 4 5 |
|