python/pymethylprocess/utils.py
def subset_array(input_pkl,cpg_pkl,output_pkl):
    """Only retain certain number of CpGs from methylation array."""
    import numpy as np, pickle
    os.makedirs(output_pkl[:output_pkl.rfind('/')],exist_ok=True)
    cpgs=pickle.load(open(cpg_pkl,'rb'))
    MethylationArray.from_pickle(input_pkl).subset_cpgs(cpgs).write_pickle(output_pkl)
Only retain certain number of CpGs from methylation array.
Only retain certain number of CpGs from methylation array.
Only retain certain number of CpGs from methylation array .
def subset_array(input_pkl,cpg_pkl,output_pkl):
    import numpy as np, pickle
    os.makedirs(output_pkl[:output_pkl.rfind('/')],exist_ok=True)
    cpgs=pickle.load(open(cpg_pkl,'rb'))
    MethylationArray.from_pickle(input_pkl).subset_cpgs(cpgs).write_pickle(output_pkl)
def subset_array ( input_pkl , cpg_pkl , output_pkl ) : import numpy as np , pickle os . makedirs ( output_pkl [ : output_pkl . rfind ( '/' ) ] , exist_ok = True ) cpgs = pickle . load ( open ( cpg_pkl , 'rb' ) ) MethylationArray . from_pickle ( input_pkl ) . subset_cpgs ( cpgs ) . write_pickle ( output_pkl )
Only retain certain number of CpGs from methylation array.
Only retain certain number of CpGs from methylation array .
"""Only retain certain number of CpGs from methylation array."""
input_pkl
cpg_pkl
output_pkl