여보세요,
REST 서비스에서 유전자 정보를 검색하는 작은 스크립트를 작성했습니다. 스크립트는 잘 작동하지만 불행히도 작은 Python 코드 스 니펫에 의존합니다.
보다 사용자 친화적이되기 위해 (즉, 모든 컴퓨터에 python을 설치해야 함) Python 부분을 JSL 코드로 변환하려고합니다.
불행히도 나는 jsl과 동등한 파이썬 코드를 해석하려고 노력하고 있습니다.
지금까지 가지고있는 코드는 다음과 같습니다.
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();어떤 제안이라도 대단히 감사하겠습니다.
감사
Sebastien