Closed rosscm closed 2 years ago
Try surrounding the argument with double quotes, which will need to be escaped...
col_command <- "enrichmentmap dataset color colors=\"femap_FASN_negative=#224433,femap_FASN_positive=#887766\""
Same problem
> col_command <- "enrichmentmap dataset color colors=\"femap_FASN_negative=#224433,femap_FASN_positive=#887766\""
> response <- commandsPOST(col_command)
Failed to execute: http://127.0.0.1:1234/v1/commands/enrichmentmap/dataset%20color
Error: no colors specified
There appears to be a bug in RCy3 where commandsPOST() doesn't correctly parse the '=' inside the colors argument.
I was able to get it to work by using commandsRun() and URL encoding all the special characters in the argument (my datasets are named enrichments_A and enrichments_B)...
commandsRun("enrichmentmap dataset color colors=\"enrichments_A%3D%23AA0000%2Cenrichments_B%3D%2300AA00\"")
Hello,
When trying to specify data set colours via the new CyREST API command
enrichmentmap dataset color
, I'm returned with the errorError: no colors specified
. I'm using the latest EnrichmentMap version 3.3.2.Commands tried: