humann/store.py
def add(self, bug, reaction, pathway, score): 
        """ 
        Add the pathway data to the dictionary
        """
        
        if not bug in self.__pathways:
            self.__pathways[bug]={}
        
        if pathway in self.__pathways[bug]:
            if reaction in self.__pathways[bug][pathway]:
                logger.debug("Overwrite of pathway/reaction score: %s %s", pathway, reaction)
            self.__pathways[bug][pathway][reaction]=score
        else:
            self.__pathways[bug][pathway]={ reaction : score }
 
        Add the pathway data to the dictionary
        
Add the pathway data to the dictionary
Add the pathway data to the dictionary
def add(self, bug, reaction, pathway, score): 
        if not bug in self.__pathways:
            self.__pathways[bug]={}
        if pathway in self.__pathways[bug]:
            if reaction in self.__pathways[bug][pathway]:
                logger.debug("Overwrite of pathway/reaction score: %s %s", pathway, reaction)
            self.__pathways[bug][pathway][reaction]=score
        else:
            self.__pathways[bug][pathway]={ reaction : score }
def add ( self , bug , reaction , pathway , score ) : if not bug in self . __pathways : self . __pathways [ bug ] = { } if pathway in self . __pathways [ bug ] : if reaction in self . __pathways [ bug ] [ pathway ] : logger . debug ( "Overwrite of pathway/reaction score: %s %s" , pathway , reaction ) self . __pathways [ bug ] [ pathway ] [ reaction ] = score else : self . __pathways [ bug ] [ pathway ] = { reaction : score }
Add the pathway data to the dictionary
Add the pathway data to the dictionary
""" 
        Add the pathway data to the dictionary
        """
self
bug
reaction
pathway
score