src/scBONITA/classDefinitions.py
def simplifyRule(self, rule, inEdges):
        """find the simplest form of a rule"""
        for i in range(len(rule)):
            if rule[i] == 1:
                for j in range(len(rule)):
                    if rule[j] == 1 and not i == j:
                        if inEdges[i].issubset(inEdges[j]):
                            rule[j] = 0
        return rule
find the simplest form of a rule
find the simplest form of a rule
find the simplest form of a rule
def simplifyRule(self, rule, inEdges):
        for i in range(len(rule)):
            if rule[i] == 1:
                for j in range(len(rule)):
                    if rule[j] == 1 and not i == j:
                        if inEdges[i].issubset(inEdges[j]):
                            rule[j] = 0
        return rule
def simplifyRule ( self , rule , inEdges ) : for i in range ( len ( rule ) ) : if rule [ i ] == 1 : for j in range ( len ( rule ) ) : if rule [ j ] == 1 and not i == j : if inEdges [ i ] . issubset ( inEdges [ j ] ) : rule [ j ] = 0 return rule
find the simplest form of a rule
find the simplest form of a rule
"""find the simplest form of a rule"""
self
rule
inEdges