src/scBONITA/singleCell.py
def processERS(self, equivsName):
        """Create an individual from the ERS generated by the local search, for importance score calculation"""
        ersFile = open(str(equivsName), "rb")
        ers = pickle.load(ersFile)
        ersFile.close()
        individual = []
        for i in range(len(ers)):
            ruleSet = ers[i]
            rand = random.randint(0, len(ruleSet) - 1)
            randomRule = ruleSet[rand]
            individual.extend(randomRule)
        return individual
Create an individual from the ERS generated by the local search, for importance score calculation
Create an individual from the ERS generated by the local search, for importance score calculation
Create an individual from the ERS generated by the local search for importance score calculation
def processERS(self, equivsName):
        ersFile = open(str(equivsName), "rb")
        ers = pickle.load(ersFile)
        ersFile.close()
        individual = []
        for i in range(len(ers)):
            ruleSet = ers[i]
            rand = random.randint(0, len(ruleSet) - 1)
            randomRule = ruleSet[rand]
            individual.extend(randomRule)
        return individual
def processERS ( self , equivsName ) : ersFile = open ( str ( equivsName ) , "rb" ) ers = pickle . load ( ersFile ) ersFile . close ( ) individual = [ ] for i in range ( len ( ers ) ) : ruleSet = ers [ i ] rand = random . randint ( 0 , len ( ruleSet ) - 1 ) randomRule = ruleSet [ rand ] individual . extend ( randomRule ) return individual
Create an individual from the ERS generated by the local search, for importance score calculation
Create an individual from the ERS generated by the local search for importance score calculation
"""Create an individual from the ERS generated by the local search, for importance score calculation"""
self
equivsName