こんにちは、
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();任意の提案をいただければ幸いです、
ありがとう
セバスチャン