python/pymethylprocess/PreProcessDataTypes.py
def export_pickle(self, output_pickle, disease=''):
        """Export pheno and beta dataframes to pickle, stored in python dict that can be loaded into MethylationArray

        Parameters
        ----------
        output_pickle
            Where to store MethylationArray.
        disease
            Custom naming scheme for data."""
        output_dict = {}
        if os.path.exists(output_pickle):
            output_dict = pickle.load(open(output_pickle,'rb'))
        output_dict['pheno' if not disease else 'pheno_{}'.format(disease)] = self.pheno_py
        output_dict['beta' if not disease else 'beta_{}'.format(disease)] = self.beta_py
        pickle.dump(output_dict, open(output_pickle,'wb'),protocol=4)
Export pheno and beta dataframes to pickle, stored in python dict that can be loaded into MethylationArray

        Parameters
        ----------
        output_pickle
            Where to store MethylationArray.
        disease
            Custom naming scheme for data.
Export pheno and beta dataframes to pickle, stored in python dict that can be loaded into MethylationArray
Parameters


Export pheno and beta dataframes to pickle stored in python dict that can be loaded into MethylationArray Parameters
def export_pickle(self, output_pickle, disease=''):
        output_dict = {}
        if os.path.exists(output_pickle):
            output_dict = pickle.load(open(output_pickle,'rb'))
        output_dict['pheno' if not disease else 'pheno_{}'.format(disease)] = self.pheno_py
        output_dict['beta' if not disease else 'beta_{}'.format(disease)] = self.beta_py
        pickle.dump(output_dict, open(output_pickle,'wb'),protocol=4)
def export_pickle ( self , output_pickle , disease = '' ) : output_dict = { } if os . path . exists ( output_pickle ) : output_dict = pickle . load ( open ( output_pickle , 'rb' ) ) output_dict [ 'pheno' if not disease else 'pheno_{}' . format ( disease ) ] = self . pheno_py output_dict [ 'beta' if not disease else 'beta_{}' . format ( disease ) ] = self . beta_py pickle . dump ( output_dict , open ( output_pickle , 'wb' ) , protocol = 4 )
Export pheno and beta dataframes to pickle, stored in python dict that can be loaded into MethylationArray
Parameters
Export pheno and beta dataframes to pickle stored in python dict that can be loaded into MethylationArray Parameters
"""Export pheno and beta dataframes to pickle, stored in python dict that can be loaded into MethylationArray

        Parameters
        ----------
        output_pickle
            Where to store MethylationArray.
        disease
            Custom naming scheme for data."""
self
output_pickle
disease