View source: R/tree-structure.R
This refines the dendrogram structure found by URD by removing overly short segments.
It is automatically called by buildTree
, but can be re-run if needed.
1 2 3 4 5 6 | collapseShortSegments(
object,
min.cells.per.segment = 1,
min.pseudotime.per.segment = 0.01,
collapse.root = F
)
|
object |
An URD object |
min.cells.per.segment |
(Numeric) Remove segments with fewer cells assigned |
min.pseudotime.per.segment |
(Numeric) Remove segments shorter than this in pseudotime |
collapse.root |
(Logical) Is the very root most segment OK to delete? (Sometimes it would have no segments, but be important not to collapse) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.