CASCI-lab / CANA

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

allow networks to be created from Boolean logic text file #4

Closed tjparmer closed 5 years ago

tjparmer commented 6 years ago

Included changes to allow the network to be read in from a Boolean logic text file (as used by Reka Albert's lab), exemplar leukemia and breast cancer text files, and updates to the breast cancer tutorial to reformat the effective graph to mimic Figure 3 from the respective paper

tjparmer commented 6 years ago

I've addressed the three points you mentioned above. I have also created a keyword argument for from_file so that it can accept either cnet format or Albert's boolean rules format. The default is cnet which calls from_string, so that the older code doesn't break. I tested with the old networks (Thaliana, drosophila) and the new cancer networks to make sure they still work.

rionbr commented 5 years ago

Self note: I wanted to change some things on @tjparmer pull request before merging. I wasn't able to do that, so now I've merged and will update some variables.