swnn.Builder

class swnn.Builder(stage_order)

The wrapper object for conveniently building both the single-cell graph and the coarse-grained tree.

Parameters

stage_order (Sequence) – the order of stages

__init__(stage_order)

Methods

__init__(stage_order)

build_graph(X, stage_lbs[, binary_edge, ks, …])

Build multipartite KNN-graph stage-by-stage.

build_tree(group_lbs[, stage_lbs, …])

Adaptatively build the developmental tree from the stagewise-KNN graph.

Attributes

connect

The single-cell graph (connectivities)

connect_bin

The single-cell graph (connectivities) with binary edges

distmat

The single-cell distance graph

edgedf

the voting tree in a node-parent-proportion format

group_lbs

The original group labels

refined_group_lbs

The refined group labels

stage_lbs

The original stage labels