API Reference

CircuiTree

CircuiTree

A base class for implementing the Monte Carlo Tree Search (MCTS) algorithm for circuit topologies.

ucb_score

Compute the UCB score for a node in the search graph.

Built-in Grammars

SimpleNetworkGrammar

A Grammar class for pairwise interaction networks.

SimpleNetworkTree

A convenience subclass of CircuiTree that uses SimpleNetworkGrammar by default.

DimersGrammar

(Experimental) A grammar class for the design space of dimerizing TF networks.

DimerNetworkTree

A convenience subclass of CircuiTree that uses DimersGrammar by default.

Low-level CircuitGrammar API

CircuitGrammar

Abstract class for Grammars.

Visualisation

rgb2hex

Converts rgb colors to hex

complexity_layout

Returns the depth and xy coordinates of each node in the search graph when visualized based on complexity.

plot_complexity

plot_network

Plot an N-component network as a circular diagram.

Utility functions and classes

merge_overlapping_sets

Given an iterable of non-empty sets, merges any sets that have non-empty intersection

ManagedEvent

Event object that also provides a context manager.

AtomicCounter

A simple thread-safe counter.