python/pymethylprocess/utils.py
def fix_key(input_pkl,key,disease_only,subtype_delimiter,output_pkl):
    """Format certain column of phenotype array in MethylationArray."""
    os.makedirs(output_pkl[:output_pkl.rfind('/')],exist_ok=True)
    methyl_array=MethylationArray.from_pickle(input_pkl)
    methyl_array.remove_whitespace(key)
    if disease_only:
        methyl_array.split_key(key, subtype_delimiter)
    methyl_array.write_pickle(output_pkl)
Format certain column of phenotype array in MethylationArray.
Format certain column of phenotype array in MethylationArray.
Format certain column of phenotype array in MethylationArray .
def fix_key(input_pkl,key,disease_only,subtype_delimiter,output_pkl):
    os.makedirs(output_pkl[:output_pkl.rfind('/')],exist_ok=True)
    methyl_array=MethylationArray.from_pickle(input_pkl)
    methyl_array.remove_whitespace(key)
    if disease_only:
        methyl_array.split_key(key, subtype_delimiter)
    methyl_array.write_pickle(output_pkl)
def fix_key ( input_pkl , key , disease_only , subtype_delimiter , output_pkl ) : os . makedirs ( output_pkl [ : output_pkl . rfind ( '/' ) ] , exist_ok = True ) methyl_array = MethylationArray . from_pickle ( input_pkl ) methyl_array . remove_whitespace ( key ) if disease_only : methyl_array . split_key ( key , subtype_delimiter ) methyl_array . write_pickle ( output_pkl )
Format certain column of phenotype array in MethylationArray.
Format certain column of phenotype array in MethylationArray .
"""Format certain column of phenotype array in MethylationArray."""
input_pkl
key
disease_only
subtype_delimiter
output_pkl