Closed m-grimes closed 6 years ago
I think you're looking for the layout commands api, where all the possible parameters for layouts are listed.
Open the swagger docs for commands: Help>Automation>CyREST Command API
Then check out layouts
. If you have Cytoscape launched, this link you bring you there as well:
http://localhost:1234/v1/swaggerUI/swagger-ui/index.html?url=http%3A%2F%2Flocalhost%3A1234%2Fv1%2Fcommands%2Fswagger.json#!/layout/layout_force_directed
Use the swagger interface to get the parameter just you want them and then you can translate these into layoutNetwork()
syntax by just including them directly, along with the layout name, e.g.,
layoutNetwork('force-directed defaultSpringCoefficient=0.0000008 defaultSpringLength=70 nodeList="selected" edgeAttribute="Alt.Weight"')
Skip the whole setLayoutProperties()
step. That is only for a limited subset of parameters.
Thanks Alex, this is exactly what is needed! - Mark
Layout property access: a request for access to selected nodes only, and to specify the data column that will be used as weight to drive the layout.
I would like the parent or gene nodes to be driving the layouts and the peptides to surround them. For this reason I set the edge weight from gene to peptide to be large. But my attempts to tweak existing layouts have not accomplished this goal. A workaround could be
Neither of these specify the quantitative edge attribute to drive the layout. This is important because I would sometimes like to use Alt.Weight instead of Weight, for example to drive negative correlation edges far compared to postitive correlation edges.
(SessionInfo same as other issue today.)