python/methylnet/interpretation_classes.py
def extract_individual(self, individual, get_shap_values=False):
        """Extract the top cpgs from an individual

        Parameters
        ----------
        individual : type
            Individual to extract from?

        Returns
        -------
        Tuple
            Class name of individual, DataFrame of Cpgs and SHAP Values
        """
        class_name=self.indiv2class[individual]
        return class_name,(self.shapley_data.top_cpgs['by_class'][class_name]['by_individual'][individual] if not get_shap_values else self.shapley_data.shapley_values['by_class'][class_name].loc[individual])
Extract the top cpgs from an individual

        Parameters
        ----------
        individual : type
            Individual to extract from?

        Returns
        -------
        Tuple
            Class name of individual, DataFrame of Cpgs and SHAP Values
        
Extract the top cpgs from an individual
Parameters



Returns

Tuple
Class name of individual, DataFrame of Cpgs and SHAP Values
Extract the top cpgs from an individual Parameters Returns Tuple Class name of individual DataFrame of Cpgs and SHAP Values
def extract_individual(self, individual, get_shap_values=False):
        class_name=self.indiv2class[individual]
        return class_name,(self.shapley_data.top_cpgs['by_class'][class_name]['by_individual'][individual] if not get_shap_values else self.shapley_data.shapley_values['by_class'][class_name].loc[individual])
def extract_individual ( self , individual , get_shap_values = False ) : class_name = self . indiv2class [ individual ] return class_name , ( self . shapley_data . top_cpgs [ 'by_class' ] [ class_name ] [ 'by_individual' ] [ individual ] if not get_shap_values else self . shapley_data . shapley_values [ 'by_class' ] [ class_name ] . loc [ individual ] )
Extract the top cpgs from an individual
Parameters
Extract the top cpgs from an individual Parameters
"""Extract the top cpgs from an individual

        Parameters
        ----------
        individual : type
            Individual to extract from?

        Returns
        -------
        Tuple
            Class name of individual, DataFrame of Cpgs and SHAP Values
        """
self
individual
get_shap_values