CASCI-lab / CANA

CANAlization: Control & Redundancy in Boolean Networks
https://casci-lab.github.io/CANA/
MIT License
22 stars 15 forks source link

Save off Generic Lookup table data for Canalization variables #19

Closed hsizek closed 2 years ago

hsizek commented 3 years ago

Pull request for the saving off generic data.

Modifies argument passing in Boolean Network and Boolean Node as well as adding a file name handler, a save attribute and recall attribute function.

The steps are:

  1. Get file name/save information
  2. Determine if information on the lookup table of interest has been calculated previously.
  3. If not, calculate information and save off information.

Changes to bio and .vscode can be ignored (I don't know how to split pull requests). Changes in boolean canalization are in a different pull request, but haven't been incorporated into main yet. It is taking a process from O(n) to ~O(log(n)), making the two symbol calculation much faster and reducing the amount of RAM used.