Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Importing local gpml file doesn't work unless pathway is first imported from WikiPathways #113

Open
khanspers opened this issue Dec 3, 2020 · 4 comments
Labels
Milestone

Comments

@khanspers
Copy link
Member

Note: This assumes that import of local gpmls is supposed to work, which it did previously.

Workflow:

  1. File>Import Network from File, select gpml, choose "import as pathway" => "Pathway not available -- invalid gpml"
    From Task History:
  • Task (org.cytoscape.task.internal.vizmap.LoadVizmapFileTask$AddVisualStylesTask@417b3b9f) progress: 100%
  • Caught exception executing task.
  1. Open any pathway from WikiPathways from Network Search tool, for example sandbox

  2. File>Import Network from File, select gpml, choose "import as pathway". => pathway is imported successfully

Based on this, maybe there's a problem with finding the visual style, which is solved after a pathway is successfully imported from WP.org?

@khanspers khanspers added the bug label Dec 3, 2020
@khanspers
Copy link
Member Author

Update for Cytoscape 3.9: The error that shows up when trying to import a gpml via "File>Import Network from File" is now

Pathway not available -- invalid gpml

@AlexanderPico AlexanderPico added this to the 3.4.0 milestone Mar 18, 2022
@kozo2
Copy link

kozo2 commented Dec 9, 2022

I think this issue is important.
If this issue is not resolved, Cytoscape users who want to import a local GPML (that has been slightly modified from Wikipathways) will have to create a new copy of the pathway on Wikipathways and update it.

And it causes confusion when the Wikipathways team curates it as a mysterious copy.

@khanspers
Copy link
Member Author

Hi Kozo, sorry about the confusion about the copied pathway at WikiPathways. This issue definitely needs to be resolved, but in your case I would recommend using the workaround solution, which doesn't involved WikiPathways at all. This works in Cytoscape 3.9, and also in the upcoming 3.10 version:

  1. Import ANY pathway from WikiPathways using the WP app in Cytoscape.
  2. Go to File > Import > Network from file and find your local gpml.

So as long as any pathway has been opened using the WP app, a local gpml can be opened without the import error. Let me know if you have any questions.

Kristina

@kozo2
Copy link

kozo2 commented Jan 4, 2023

Thanks @khanspers (+ I'm sorry for the late replay...),
As you said, after step 1 and 2, I was able to import my local GPML into Cytoscape without any problems!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants