assignCellsToSegments: Assign Cells to Segments

Description Usage Arguments Value

View source: R/tree-structure.R

Description

Assigns cells get assigned to segments based on whichever segment visited them the most often, out of those segments that exist at that cell's pseudotime. This function is called automatically by buildTree, but can be re-run if necessary.

Usage

1
assignCellsToSegments(object, pseudotime, verbose = T)

Arguments

object

An URD object

pseudotime

(Character) Pseudotime to use (i.e. a column name of @pseudotime)

Value

An URD object with segment assignments in object@tree$cells.in.segment, as a list by segments, and in object@diff.data$segment, which allows them "segment" to be used as a plotting label.


farrellja/URD documentation built on June 17, 2020, 4:48 a.m.