python 选择来自BLUEPRINT样本和骨髓细胞类型的所有实验。

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python 选择来自BLUEPRINT样本和骨髓细胞类型的所有实验。相关的知识,希望对你有一定的参考价值。

import xmlrpclib
import time

url = "http://deepblue.mpi-inf.mpg.de/xmlrpc"
user_key = "anonymous_key"

server = xmlrpclib.Server(url, allow_none=True)

(status, samples) = server.list_samples("myeloid cell", {"source" : "BLUEPRINT Epigenome"}, user_key)

# Get the samples ID
samples_id = server.extract_ids(samples)[1]

# Select the regions from from chromosom 1, position 0 to 50.000
(status, query_id) = server.select_regions ("", "GRCh38", None, samples_id, None, None, "chr1", 0, 50000, user_key )

# Retrieve the experiments data (The @NAME meta-column is used to include the experiment name and @BIOSOURCE for experiment's biosource
(status, request_id) = server.get_regions(query_id, "CHROMOSOME,START,END,@NAME,@SAMPLE_ID,@BIOSOURCE", user_key)

# Wait for the server processing
(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, regions) = server.get_request_data(request_id, user_key)

print regions

以上是关于python 选择来自BLUEPRINT样本和骨髓细胞类型的所有实验。的主要内容,如果未能解决你的问题,请参考以下文章

Python进阶(四十九)-初识Flask Blueprint

样本方差的的分布(来自Python的实验)

python | 对 Flask 蓝图(Blueprint)的理解

Python Pandas数据框中的行排序/计数

Flask Python中的URL前缀使用Blueprint部署到Heroku

我看你骨髓清奇,是个学数据分析的奇才。