slingBranchGraph: Construct graph of slingshot branch labels

Description Usage Arguments Value Examples

Description

Builds a graph describing the relationships between the different branch assignments

Usage

1
2
3
4
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

1
2
3
4
5
6
data("slingshotExample")
rd <- slingshotExample$rd
cl <- slingshotExample$cl
sds <- slingshot(rd, cl)
slingBranchGraph(sds)
  

Example output

Loading required package: princurve
Using full covariance matrix
IGRAPH 9935b4b DN-- 3 2 -- 
+ attr: name (v/c), cells (v/n), size (v/n)
+ edges from 9935b4b (vertex names):
[1] 1,2->1 1,2->2

slingshot documentation built on Nov. 8, 2020, 5:51 p.m.