python/methylnet/interpretation_classes.py
def list_individuals(self, return_list=False):
        """List the individuals in the ShapleyData object.

        Parameters
        ----------
        return_list : type
            Return list of individual names rather than a dictionary of class:individual key-value pairs.

        Returns
        -------
        List or Dictionary
            Class: Individual dictionary or individuals are elements of list

        """
        if not return_list:
            individuals={class_name:list(self.shapley_data.top_cpgs['by_class'][class_name]['by_individual'].keys()) for class_name in self.shapley_data.top_cpgs['by_class']}
            return individuals
        else:
            from functools import reduce
            return list(reduce(lambda x,y:x+y, [list(self.shapley_data.top_cpgs['by_class'][class_name]['by_individual'].keys()) for class_name in self.shapley_data.top_cpgs['by_class']]))
List the individuals in the ShapleyData object.

        Parameters
        ----------
        return_list : type
            Return list of individual names rather than a dictionary of class:individual key-value pairs.

        Returns
        -------
        List or Dictionary
            Class: Individual dictionary or individuals are elements of list

        
List the individuals in the ShapleyData object.
Parameters

return_list : type
Return list of individual names rather than a dictionary of class:individual key-value pairs.

Returns

List or Dictionary
Class: Individual dictionary or individuals are elements of list
List the individuals in the ShapleyData object . Parameters return_list : type Return list of individual names rather than a dictionary of class : individual key - value pairs . Returns List or Dictionary Class : Individual dictionary or individuals are elements of list
def list_individuals(self, return_list=False):
        if not return_list:
            individuals={class_name:list(self.shapley_data.top_cpgs['by_class'][class_name]['by_individual'].keys()) for class_name in self.shapley_data.top_cpgs['by_class']}
            return individuals
        else:
            from functools import reduce
            return list(reduce(lambda x,y:x+y, [list(self.shapley_data.top_cpgs['by_class'][class_name]['by_individual'].keys()) for class_name in self.shapley_data.top_cpgs['by_class']]))
def list_individuals ( self , return_list = False ) : if not return_list : individuals = { class_name : list ( self . shapley_data . top_cpgs [ 'by_class' ] [ class_name ] [ 'by_individual' ] . keys ( ) ) for class_name in self . shapley_data . top_cpgs [ 'by_class' ] } return individuals else : from functools import reduce return list ( reduce ( lambda x , y : x + y , [ list ( self . shapley_data . top_cpgs [ 'by_class' ] [ class_name ] [ 'by_individual' ] . keys ( ) ) for class_name in self . shapley_data . top_cpgs [ 'by_class' ] ] ) )
List the individuals in the ShapleyData object.
List the individuals in the ShapleyData object .
"""List the individuals in the ShapleyData object.

        Parameters
        ----------
        return_list : type
            Return list of individual names rather than a dictionary of class:individual key-value pairs.

        Returns
        -------
        List or Dictionary
            Class: Individual dictionary or individuals are elements of list

        """
self
return_list