python/pymethylprocess/MethylationDataTypes.py
def split_key(self, key, subtype_delimiter):
        """Manipulate an entire phenotype column, splitting each element up by some delimiter.

        Parameters
        ----------
        key
            Phenotype column.
        subtype_delimiter
            How to break up strings in columns. S1,s2 -> S1 for instance.
        """
        new_key = '{}_only'.format(key)
        self.pheno.loc[:,new_key] = self.pheno[key].map(lambda x: x.split(subtype_delimiter)[0])
        return new_key
Manipulate an entire phenotype column, splitting each element up by some delimiter.

        Parameters
        ----------
        key
            Phenotype column.
        subtype_delimiter
            How to break up strings in columns. S1,s2 -> S1 for instance.
        
Manipulate an entire phenotype column, splitting each element up by some delimiter.
Parameters

key
Phenotype column.
subtype_delimiter
How to break up strings in columns. S1,s2 -> S1 for instance.
Manipulate an entire phenotype column splitting each element up by some delimiter . Parameters key Phenotype column . subtype_delimiter How to break up strings in columns . S1 s2 - > S1 for instance .
def split_key(self, key, subtype_delimiter):
        new_key = '{}_only'.format(key)
        self.pheno.loc[:,new_key] = self.pheno[key].map(lambda x: x.split(subtype_delimiter)[0])
        return new_key
def split_key ( self , key , subtype_delimiter ) : new_key = '{}_only' . format ( key ) self . pheno . loc [ : , new_key ] = self . pheno [ key ] . map ( lambda x : x . split ( subtype_delimiter ) [ 0 ] ) return new_key
Manipulate an entire phenotype column, splitting each element up by some delimiter.
Manipulate an entire phenotype column splitting each element up by some delimiter .
"""Manipulate an entire phenotype column, splitting each element up by some delimiter.

        Parameters
        ----------
        key
            Phenotype column.
        subtype_delimiter
            How to break up strings in columns. S1,s2 -> S1 for instance.
        """
self
key
subtype_delimiter