python 聚合9个实验的甲基化水平
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python 聚合9个实验的甲基化水平相关的知识,希望对你有一定的参考价值。
import xmlrpclib
import time
url = "http://deepblue.mpi-inf.mpg.de/xmlrpc"
user_key = "anonymous_key"
server = xmlrpclib.Server(url, allow_none=True)
experiments = ["GC_T14_10.CPG_methylation_calls.bs_call.GRCh38.20160531.wig", "C003N351.CPG_methylation_calls.bs_call.GRCh38.20160531.wig", "C005VG51.CPG_methylation_calls.bs_call.GRCh38.20160531.wig", "S002R551.CPG_methylation_calls.bs_call.GRCh38.20160531.wig", "NBC_NC11_41.CPG_methylation_calls.bs_call.GRCh38.20160531.wig", "bmPCs-V156.CPG_methylation_calls.bs_call.GRCh38.20160531.wig", "S00BS451.CPG_methylation_calls.bs_call.GRCh38.20160531.wig", "S00D1DA1.CPG_methylation_calls.bs_call.GRCh38.20160531.wig", "S00D39A1.CPG_methylation_calls.bs_call.GRCh38.20160531.wig"]
experiments_columns = {}
for experiment_name in experiments:
experiments_columns[experiment_name] = "VALUE"
(status, cpgs) = server.select_annotations("Cpg Islands", "hg19", None, None, None, user_key)
(status, request_id) = server.score_matrix(experiments_columns, "mean", cpgs , user_key )
(status, info) = server.info(request_id, user_key)
request_status = info[0]["state"]
while request_status != "done" and request_status != "failed":
time.sleep(1)
(status, info) = server.info(request_id, user_key)
request_status = info[0]["state"]
(status, score_matrix) = server.get_request_data(request_id, user_key)
print score_matrix
以上是关于python 聚合9个实验的甲基化水平的主要内容,如果未能解决你的问题,请参考以下文章
python 用于BLUEPRINT年会的DEEPBLUE海报的案例2。 (09.2015)。通过a在您自己的数据集中聚合DNA甲基化信号
python 总结来自人肝细胞的H3K4me3峰区域的肝组织中的DNA甲基化水平
python 通过H-ESC H3K4me3峰聚集肝脏数据实验的甲基化数据信号
易基因:DNA甲基化研究的3大前期探索性实验思路|干货系列
使用Sentieon加速甲基化(WGBS)分析
DNA甲基化及其测量方法(转)