python/pymethylprocess/utils.py
def bin_column(test_pkl,col,n_bins,output_test_pkl):
    """Convert continuous phenotype column into categorical by binning."""
    os.makedirs(output_test_pkl[:output_test_pkl.rfind('/')],exist_ok=True)
    test_methyl_array=MethylationArray.from_pickle(test_pkl)
    new_col_name = test_methyl_array.bin_column(col,n_bins)
    test_methyl_array.write_pickle(output_test_pkl)
Convert continuous phenotype column into categorical by binning.
Convert continuous phenotype column into categorical by binning.
Convert continuous phenotype column into categorical by binning .
def bin_column(test_pkl,col,n_bins,output_test_pkl):
    os.makedirs(output_test_pkl[:output_test_pkl.rfind('/')],exist_ok=True)
    test_methyl_array=MethylationArray.from_pickle(test_pkl)
    new_col_name = test_methyl_array.bin_column(col,n_bins)
    test_methyl_array.write_pickle(output_test_pkl)
def bin_column ( test_pkl , col , n_bins , output_test_pkl ) : os . makedirs ( output_test_pkl [ : output_test_pkl . rfind ( '/' ) ] , exist_ok = True ) test_methyl_array = MethylationArray . from_pickle ( test_pkl ) new_col_name = test_methyl_array . bin_column ( col , n_bins ) test_methyl_array . write_pickle ( output_test_pkl )
Convert continuous phenotype column into categorical by binning.
Convert continuous phenotype column into categorical by binning .
"""Convert continuous phenotype column into categorical by binning."""
test_pkl
col
n_bins
output_test_pkl