cana.bns package

BNS Attractors Interface

This module interfaces CANA with the [B]oolean [N]etworks with [S]ynchronous update (BNS) [DT11] to compute attractors.

BNS is a software tool for computing attractors in Boolean Networks with Synchronous update. Synchronous Boolean networks are used for the modeling of genetic regulatory networks.

BNS implements the algorithm presented in which is based on a SAT-based bounded model checking. BNS uses much less space compared to BooleNet or other BDD-based approaches for computing attractors. It can handle several orders of magnitude larger networks.

Note

You must have bns compiled for you system. Alternatively, you can download the binary from the bns website directly. Last updated: March 2017.

cana.bns.attractors(cnet, bnspath='/home/runner/work/CANA/CANA/cana/bns', cleanup=True)[source]

Makes a subprocess call to bns supplying a temporary file with the boolean logic.

Parameters:
  • cnet (file,string) – A .cnet formated string or file.

  • bnspath (string) – The path to the bns binary.

  • cleanup (bool) – If cnet is a string, this function creates a temporary file. This forces the removal of this temp file.

Returns:

the list of attractors

Return type:

list