divergenceKSVisitation: Calculate visitation divergence using KS-test

Description Usage Arguments Value

View source: R/tree-structure.R

Description

Calculate visitation divergence using KS-test

Usage

1
2
3
4
5
6
divergenceKSVisitation(
  visit.data,
  pseudotime.windows,
  cells.segment.1,
  cells.segment.2
)

Arguments

visit.data

(data.frame) Rows are cells, columns are: "segment.1" and "segment.2" (visitation frequency from random walks initiated in segment 1 and 2), "pseudotime" (the pseudotime of each cell), and "pseudotime.group" (the number of the pseudotime bin each cell belongs to)

pseudotime.windows

(matrix) Rows are pseudotime windows, and the columns in each row represent the pseudotime bins that belong to that window.

cells.segment.1

(Character vector) Cells in segment 1

cells.segment.2

(Character vector) Cells in segment 2

Value

(data.frame) Rows are pseudotime windows, columns are KS-test p-value ("p"), pseudotime of cells in the window ("mean.pseudotime", "min.pseudotime", "max.pseudotime"), and number of cells considered from each segment ("cells.visited.seg1", "cells.visited.seg2")


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