你好,
我整理了一个小脚本来从REST服务中检索基因信息。 该脚本运行良好,但不幸的是依赖于一小段Python代码。
为了变得更加用户友好(即必须在所有机器上安装python),我正在尝试将Python部分转换为JSL代码。
不幸的是,我一直试图用等效的jsl解释python代码。
这是我到目前为止的代码
names default to here(1);
clear log();
genelist={"Aif1","Cd68","Cst7","Clec7a","Ccl6"};
Python Init();
Python Send( genelist );
ml = Python Submit(
"\[
import json
import requests
ENRICHR_URL = 'http://maayanlab.cloud/Enrichr/addList'
genes_str = '\n'.join(genelist)
description = 'TRANSPOSiON'
payload = {
'list': (genes_str),
'description': (description)
}
response = requests.post(ENRICHR_URL, files=payload)
if not response.ok:
raise Exception('Error analyzing gene list')
data = json.loads(response.text)
print(data)]\"
);
//Wait( 0.5 );
getstr = Python Get( data );
Python Term();任何建议将不胜感激,
谢谢
塞巴斯蒂安