python/pymethylprocess/PreProcessDataTypes.py
def merge(self, other_formatted_sheet, use_second_sheet_disease=True, no_disease_merge=False):
        """Merge multiple PreProcessPhenoData objects, merge their dataframes to accept more than one saplesheet/dataset or add more pheno info.

        Parameters
        ----------
        other_formatted_sheet
            Other PreProcessPhenoData to merge.
        use_second_sheet_disease
            Change disease column to that of second sheet instead of first.
        no_disease_merge
            Keep both disease columns from both sheets.
        """
        disease_dict = {False:'disease_x',True:'disease_y'}
        self.pheno_sheet = self.pheno_sheet.merge(other_formatted_sheet.pheno_sheet,how='inner', on='Basename')
        if not no_disease_merge:
            self.pheno_sheet['disease'] = self.pheno_sheet[disease_dict[use_second_sheet_disease]]
        cols=list(self.pheno_sheet)
        self.pheno_sheet = self.pheno_sheet[[col for col in cols if col!='Unnamed: 0_x' and col!='Unnamed: 0_y' and col!=disease_dict[use_second_sheet_disease]]]
Merge multiple PreProcessPhenoData objects, merge their dataframes to accept more than one saplesheet/dataset or add more pheno info.

        Parameters
        ----------
        other_formatted_sheet
            Other PreProcessPhenoData to merge.
        use_second_sheet_disease
            Change disease column to that of second sheet instead of first.
        no_disease_merge
            Keep both disease columns from both sheets.
        
Merge multiple PreProcessPhenoData objects, merge their dataframes to accept more than one saplesheet/dataset or add more pheno info.
Parameters


Merge multiple PreProcessPhenoData objects merge their dataframes to accept more than one saplesheet / dataset or add more pheno info . Parameters
def merge(self, other_formatted_sheet, use_second_sheet_disease=True, no_disease_merge=False):
        disease_dict = {False:'disease_x',True:'disease_y'}
        self.pheno_sheet = self.pheno_sheet.merge(other_formatted_sheet.pheno_sheet,how='inner', on='Basename')
        if not no_disease_merge:
            self.pheno_sheet['disease'] = self.pheno_sheet[disease_dict[use_second_sheet_disease]]
        cols=list(self.pheno_sheet)
        self.pheno_sheet = self.pheno_sheet[[col for col in cols if col!='Unnamed: 0_x' and col!='Unnamed: 0_y' and col!=disease_dict[use_second_sheet_disease]]]
def merge ( self , other_formatted_sheet , use_second_sheet_disease = True , no_disease_merge = False ) : disease_dict = { False : 'disease_x' , True : 'disease_y' } self . pheno_sheet = self . pheno_sheet . merge ( other_formatted_sheet . pheno_sheet , how = 'inner' , on = 'Basename' ) if not no_disease_merge : self . pheno_sheet [ 'disease' ] = self . pheno_sheet [ disease_dict [ use_second_sheet_disease ] ] cols = list ( self . pheno_sheet ) self . pheno_sheet = self . pheno_sheet [ [ col for col in cols if col != 'Unnamed: 0_x' and col != 'Unnamed: 0_y' and col != disease_dict [ use_second_sheet_disease ] ] ]
Merge multiple PreProcessPhenoData objects, merge their dataframes to accept more than one saplesheet/dataset or add more pheno info.
Merge multiple PreProcessPhenoData objects merge their dataframes to accept more than one saplesheet / dataset or add more pheno info .
"""Merge multiple PreProcessPhenoData objects, merge their dataframes to accept more than one saplesheet/dataset or add more pheno info.

        Parameters
        ----------
        other_formatted_sheet
            Other PreProcessPhenoData to merge.
        use_second_sheet_disease
            Change disease column to that of second sheet instead of first.
        no_disease_merge
            Keep both disease columns from both sheets.
        """
self
other_formatted_sheet
use_second_sheet_disease
no_disease_merge