Ciao,
Ho messo insieme un piccolo script per recuperare le informazioni sui geni da un servizio REST. Lo script funziona bene ma sfortunatamente si basa su un piccolo frammento di codice Python.
Per diventare più user friendly (cioè dover installare python su tutte le macchine), sto cercando di convertire la porzione Python in codice JSL.
Sfortunatamente, sono bloccato nel tentativo di interpretare il codice Python in un equivalente jsl.
Ecco il codice che ho finora
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();Ogni suggerimento sarà molto apprezzato,
Grazie
Sebastien