ben-j-barlow / clustree

In development: Visualize clusterings at different resolutions
GNU General Public License v3.0
2 stars 1 forks source link

clustree

Status

Functionality: Implemented

Functionality: To Add

Usage

Installation

Install the package with pip:

pip install clustree

Quickstart

The powerhouse function of the library is clustree. Use

from clustree import clustree

to import the function. A detailed description of the parameters is provided below.

def clustree(
    data: Union[Path, str],
    prefix: str,
    images: Union[Path, str],
    output_path: Optional[Union[Path, str]] = None,
    draw: bool = True,
    node_color: str = "prefix",
    node_color_aggr: Optional[Union[Callable, str]] = None,
    node_cmap: Union[mpl.colors.Colormap, str] = "inferno",
    edge_color: str = "samples",
    edge_cmap: Union[mpl.colors.Colormap, str] = "viridis",
    orientation: Literal["vertical", "horizontal"] = "vertical",
    layout_reingold_tilford: bool = None,
    min_cluster_number: Literal[0, 1] = 1,
    border_size: float = 0.05,
    figsize: tuple[float, float] = None,
    arrows: bool = None,
    node_size: float = 300,
    node_size_edge: Optional[float] = None,
    dpi: float = 500,
    kk: Optional[int] = None,
) -> DiGraph:
    """

Glossary