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

Problem importing pathway as pathway in cytoscape 3.7.1 #106

Open
IreneHemel opened this issue May 14, 2019 · 13 comments
Open

Problem importing pathway as pathway in cytoscape 3.7.1 #106

IreneHemel opened this issue May 14, 2019 · 13 comments
Assignees
Milestone

Comments

@IreneHemel
Copy link

For my internship with @DeniseSl22 I want to import several pathways into cytoscape as a pathway, however when I try this on my computer (Windows 10 version 1803) in cytoscape 3.7.1 with version 3.3.7 of the WikiPathways app all the nodes are stacked.

image
Image is an example based on WP4225, but it is the same for all pathways I tried

When I try the same thing in cytoscape 3.6.1, with the same Wikipathways app version, it does work, but not in 3.7.1
image

@mkutmon
Copy link
Member

mkutmon commented May 14, 2019

@IreneHemel I just tried it with 3.7.1 and app version 3.3.7 and it worked fine. Can you retry after restarting Cytoscape?

@IreneHemel
Copy link
Author

When I restarted it yesterday and earlier today it didn't work (I worked in a saved session with other pathways that were imported as a network). I just tried it in a new session and then it does work, however when I open a pathway as a network and try to open one as a pathway after, the nodes are stacked again

@mkutmon
Copy link
Member

mkutmon commented May 14, 2019

ah okay, so it happens if you have multiple pathways open in one session? Does this also happen for other pathways?

@IreneHemel
Copy link
Author

Yes, as soon as I open 1 pathway as a network I cannot open any as a pathway. So far this has happend for all the pathways I tried to open (WP4225, 4571, 4583, 4584 and 4595)

@AdamStuart
Copy link
Contributor

AdamStuart commented May 14, 2019 via email

@IreneHemel
Copy link
Author

My default layout is set to perfused force directed layout, when I change it to a grid layout the problem still appears. I can apply the layout after the stacked nodes appear and then it does apply the layout, however I cannot go back from that to the pathway layout I want.

Disabeling and enabeling the app does work, so I will use that for now and I indeed work with the user interface, not with commands

@AlexanderPico
Copy link
Member

This same thing happened to me yesterday. I could consistently reproduce it with these steps:

  1. Fresh launch of Cytoscape (must be a fresh start; not just a "close session")
  2. Search for WP179
  3. Open as network
  4. Repeat search for WP179
  5. Open as pathway

Obs: overlapping nodes
Exp: pathway layout

Same thing happens when steps 2-5 are done with automation calls:

  1. 'wikipathways import-as-network id=WP179'
  2. 'wikipathways import-as-pathway id=WP179'

Once this has occured, then all pathway imports are affected, even upon restart. The only fix is to disable/enable the WP app.

@AlexanderPico AlexanderPico added this to the 3.3.8 milestone May 22, 2019
@AdamStuart
Copy link
Contributor

I was able to "fix" this by changing the declaration of the BasicVizPropStore class in GpmlToPathway. (see Line 758) It was previously static, but now we re-declare the objects with each instance. Interface removed.

Note that BasicVizTableStore has the same static declaration.

@yihangx
Copy link
Member

yihangx commented Mar 17, 2022

Reopen because of 3.3.9.

@yihangx yihangx reopened this Mar 17, 2022
@AlexanderPico AlexanderPico modified the milestones: 3.3.8, 3.4.0, 3.3.10 Mar 18, 2022
AlexanderPico added a commit that referenced this issue Mar 19, 2022
@AlexanderPico
Copy link
Member

Fixed in 3.3.10

@BrandonMurugan
Copy link

I'm currently having this issue with WP v3.3.10 in Cytoscape 3.9.1; 3.10.0; and 3.10.1
It stacks the nodes when I open another WP pathway, and if I save and reopen a session file with just one WP pathway loaded

@BrandonMurugan
Copy link

BrandonMurugan commented Nov 26, 2023

Hi there. So I did figure out what happened. When I load a WP pathway, it loads two Views. One is formatted properly, and the other one is stacked and has the KGML_style applied. Deleting the offending View fixes it. The appearance of the "2" in the network list made me suspicious. See attachments below.
It does seem to be a Cytoscape issue, since it does this for iGraph imports from R.
I have no idea if it's just happening to me (maybe some setting/app) or is a more widespread issue.

network_list
grid_view

Cheers!

@AlexanderPico
Copy link
Member

Wow. That's interesting. Haven't seen that before. You mention the "KGML_style". That's coming from a KEGG app, I presume. Have you tried disabling that (and other apps)? Sometimes apps can collide.

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

No branches or pull requests

6 participants