python/pymethylprocess/utils.py
def pkl_to_csv(input_pkl, output_dir, col):
    """Output methylarray pickle to csv."""
    import pickle
    os.makedirs(output_dir,exist_ok=True)
    input_dict=pickle.load(open(input_pkl,'rb'))
    if col:
        input_dict['beta'][col]=input_dict['pheno'][col]
    for k in input_dict.keys():
        input_dict[k].to_csv('{}/{}.csv'.format(output_dir,k))
Output methylarray pickle to csv.
Output methylarray pickle to csv.
Output methylarray pickle to csv .
def pkl_to_csv(input_pkl, output_dir, col):
    import pickle
    os.makedirs(output_dir,exist_ok=True)
    input_dict=pickle.load(open(input_pkl,'rb'))
    if col:
        input_dict['beta'][col]=input_dict['pheno'][col]
    for k in input_dict.keys():
        input_dict[k].to_csv('{}/{}.csv'.format(output_dir,k))
def pkl_to_csv ( input_pkl , output_dir , col ) : import pickle os . makedirs ( output_dir , exist_ok = True ) input_dict = pickle . load ( open ( input_pkl , 'rb' ) ) if col : input_dict [ 'beta' ] [ col ] = input_dict [ 'pheno' ] [ col ] for k in input_dict . keys ( ) : input_dict [ k ] . to_csv ( '{}/{}.csv' . format ( output_dir , k ) )
Output methylarray pickle to csv.
Output methylarray pickle to csv .
"""Output methylarray pickle to csv."""
input_pkl
output_dir
col