cytoscape / RCy3

New version of RCy3, redesigned and collaboratively maintained by Cytoscape developer community
MIT License
48 stars 20 forks source link

getCurrentStyle and getNetworkName don't work with base.url specified #208

Closed risserlin closed 11 months ago

risserlin commented 11 months ago

Not sure if this related to the this issue[#191 ] but getCurrentStyle and getNetworkName don't work with the base.url specified

Using the latest version of bioconductor (3.17.1) and RCy3 (2.20)

Screen Shot 2023-07-25 at 10 48 24 AM
AlexanderPico commented 11 months ago

Fixed and pushed to GitHub. Can install from there or wait for dev release from Bioc. Thanks for reporting!

risserlin commented 11 months ago

Thanks for the really fast turn around on this.

I uninstalled the current version of RCy3. And I now have 1.21.1 version installed (through devtools::install_github) but the error is still there unfortunately.

Any idea what I did wrong.

Screen Shot 2023-07-25 at 3 38 12 PM
AlexanderPico commented 11 months ago

Looks like the installation was skipped since it was detected to be identical to what you already had installed :)

Try devtools::install_github("https://github.com/cytoscape/RCy3/tree/devel")

risserlin commented 11 months ago

I tried installing the way you suggested but still the same issue. (I included the skipping install statement to show that I had the latest version installed. the 5a262188 is the latest version on github) and even with that one installed I am getting the same error.

I tried adding the network name or network Suid to the call to see if it is was just an obscure error message but that didn't help.

Screen Shot 2023-07-26 at 11 53 21 AM

What is this line supposed to do? Error in cyrestGET("networks", base.url = base.url) : object '"networks"' not found

AlexanderPico commented 11 months ago

Weird. Maybe try loading the new function code directly in your R session, like copy/paste the function code and run it.  - AlexOn Jul 26, 2023, at 8:54 AM, Ruth Isserlin @.***> wrote: I tried installing the way you suggested but still the same issue. (I included the skipping install statement to show that I had the latest version installed. the 5a26218 is the latest version on github) and even with that one installed I am getting the same error. I tried adding the network name or network Suid to the call to see if it is was just an obscure error message but that didn't help.

What is this line supposed to do? Error in cyrestGET("networks", base.url = base.url) : object '"networks"' not found

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were assigned.Message ID: @.***>

risserlin commented 11 months ago

I have no idea what the issue (I cut and copied the updated methods in but it still didn't help) is but I can get it to work by running this command instead (which is basically exactly what is in the getCurrentStyle function) ... so weird.

Works - res <- cyrestGET(paste("networks", getNetworkSuid("current",base.url=current_base), "views",getNetworkViewSuid(network="current",base.url = current_base), "currentStyle", sep="/"), base.url = current_base)

Doesn't work - RCy3::getCurrentStyle(network = "current",base.url = current_base)

The error message changed a bit since cutting and copying the updated methods in though

Screen Shot 2023-07-26 at 1 09 31 PM
AlexanderPico commented 11 months ago

I'll increment the version and push to bioc-devel soon. Maybe that will "reset" things on your end and you won't need the workaround anymore.

The updated functions work for me, so it's hard for me to diagnose the remaining issues you are seeing. Thanks again for reporting the bug!