adelhpour / SBMLNetwork

SBMLNetwork is a library designed to enable software developers and systems biologists to interact with the graphical representation of SBML (Systems Biology Markup Language) models.
MIT License
0 stars 2 forks source link

AutoLayout #93

Open sanast22 opened 1 month ago

sanast22 commented 1 month ago

Could you explain how to use the locked_nodes parameter (and other parameters the user can change) in the autolayout function?

adelhpour commented 1 month ago

autolayout Function Parameters

The autolayout function accepts the following parameters:

sanast22 commented 1 month ago

For the locked_nodes parameter, are the node IDs the same as speciesIDs?

adelhpour commented 1 month ago

Yup! You need to pass the species ids as locked_nodes.

adelhpour commented 4 weeks ago

New Feature in v0.3.1: Locking Alias Nodes

In this release, we introduced the ability to lock alias nodes. The locked_nodes parameter can now be one of the following:

  1. A list of lists, where each sublist includes:

    • id (string): The ID of the node that must not be moved when the autolayout algorithm is applied.
    • index (integer): The index of the graphical nth graphical object associated to the node that must remain stationary when the autolayout algorithm is applied.
  2. A list of node IDs (strings) that must be locked when the autolayout algorithm is applied.