slingBranchGraph {slingshot} | R Documentation

## Construct graph of slingshot branch labels

### Description

Builds a graph describing the relationships between the different branch assignments.

### Usage

    slingBranchGraph(x, ...)

    ## S4 method for signature 'ANY'
    slingBranchGraph(x, thresh = NULL, max_node_size = 100)

### Arguments

`x` | an object containing `slingshot` output, generally either a `PseudotimeOrdering` or `SingleCellExperiment`.
`...` | additional arguments passed to object-specific methods.
`thresh` | weight threshold for assigning cells to lineages. A cell's weight on a certain lineage must be greater than this value (default = `1/L`, for `L` lineages).
`max_node_size` | the `size` of the largest node in the graph, for plotting (all others will be drawn proportionally). Default is `100`. See `igraph.plotting` for more details.

### Value

an `igraph` object representing the relationships between lineages.

### Examples

    data("slingshotExample")
    rd <- slingshotExample$rd
    cl <- slingshotExample$cl
    pto <- slingshot(rd, cl)
    slingBranchGraph(pto)

[Package slingshot version 2.2.1 Index]