Hi,
I have a couple of simple scripts that call R functions I created in JMP 17. I upgraded JMP to its latest version (19.0.4), and these scripts no longer work. The documentation is a bit thin about the integration of R into the Python environment, so your help would be highly appreciated.
Names default to here (1);
dt = current data table ();
nw = New Window ("ENSEMBL_ID COLUMN SELECTION",
<< Modal,
Text Box ("Select the ENSEMBL_ID column"),
lcol = Col List Box (Data Table (dt),
All,
width (500)
),
Button Box ("OK", scol = lcol << get selected; switch = 1),
Button Box ("CANCEL", switch = 0; Throw(1)),
);
If (switch,
enbl_col_list = as column (scol) << get values ();
r init();
R send (enbl_col_list);
R Submit( "\[library(biomaRt)
library("org.Hs.eg.db")
library("AnnotationDbi")
output <- mapIds(org.Hs.eg.db, keys = enbl_col_list, keytype = "ENSEMBL", column = "SYMBOL")
output_df <- as.data.frame (output)
print(output_df)
]\");
dt_out = r get (output_df);
R Term (),
Throw (1));
Thank you.
Best,
TS
Thierry R. Sornasse