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

cytoscape.vizmap.apply fails if 3.8.2 if no network is selected #104

Open
jorgeboucas opened this issue Nov 13, 2020 · 0 comments
Open

cytoscape.vizmap.apply fails if 3.8.2 if no network is selected #104

jorgeboucas opened this issue Nov 13, 2020 · 0 comments
Assignees

Comments

@jorgeboucas
Copy link
Member

In cytoscape 3.8.2 cytoscape.vizmap.apply(styles="default") does not work if no network is selected.

Cytoscape: 3.8.2

CyRest: v1

error:

apiVersion v1
cytoscapeVersion 3.8.2
<Response [500]> 500
b'{\n "data": {},\n "errors":[{"status":500,"type":"urn:cytoscape:ci:cyrest-core:v1:handle-json-command:errors:2","message":"No network views selected.","link":"file:/Users/jboucas/CytoscapeConfiguration/3/framework-cytoscape.log"}]\n}'
Traceback (most recent call last):
  File "/beegfs/group_bit/data/projects/departments/Bioinformatics/bit_Lena_rde1//cel/deseq2_output/PPIs.py", line 60, in <module>
    cytoscape.vizmap.apply(styles="default")
  File "/beegfs/group_bit/data/projects/departments/Constantinos_Demetriades/CD_Filipo_RR27/venv/lib/python3.8/site-packages/py2cytoscape/cyrest/vizmap.py", line 38, in apply
    response=api(url=self.__url+"/apply", PARAMS=PARAMS, method="POST", verbose=verbose)
  File "/beegfs/group_bit/data/projects/departments/Constantinos_Demetriades/CD_Filipo_RR27/venv/lib/python3.8/site-packages/py2cytoscape/cyrest/base.py", line 150, in api
    raise ValueError(res["errors"][0])
ValueError: {'status': 500, 'type': 'urn:cytoscape:ci:cyrest-core:v1:handle-json-command:errors:2', 'message': 'No network views selected.', 'link': 'file:/Users/jboucas/CytoscapeConfiguration/3/framework-cytoscape.log'}

Maybe also worth for @bdemchak and @AlexanderPico to take a look

@jorgeboucas jorgeboucas self-assigned this Nov 13, 2020
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

1 participant