cycle_over_time: Plot cycle score over pseudotime

Description Usage Arguments Examples

Description

Plot cycle score over pseudotime

Usage

1
2
3
4
5
6
7
8
9
cycle_over_time(
  plot_data,
  color_by,
  time_col,
  sel_phase = c("M", "S"),
  num_col = 1,
  extend_max = 0.4,
  AP = NULL
)

Arguments

plot_data

a dataframe with cell cycle scores and pseudotime information

color_by

which column to color

time_col

where the pseudotime information is stored

sel_phase

which cell cycle phases to display, can be M, M.G1, G1.S, S, G2.M

num_col

in how many columns the subplots are arranged

Examples

1
2
3
4
exp_mat_cc <- as.matrix (GetAssayData (all_data, assay='RNA', slot='data'))
ans <- get_phase_score (exp_mat_cc)
plot_data <- cbind (ans, all_data@meta.data)
cycle_over_time (plot_data, time_col='MGP_PT')

Yutong441/TBdev documentation built on Dec. 18, 2021, 8:22 p.m.