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 `SlingshotDataSet` 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). See `igraph.plotting` for more details.

### Value

an `igraph` object representing the relationships between lineages.

### Examples

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

[Package slingshot version 1.6.1 Index]