get_dtw_dist_mat {pGRN} | R Documentation |
Get DTW distance matrix for all genes using pseudotime based sliding window transfromation, parallel computing allowed.
get_dtw_dist_mat(
data,
ptime,
slide_window_size = 50,
slide_step_size = 25,
cores = 2
)
data |
gene expression matrix (Gene * Cells) |
ptime |
pseudotime matched with the column cells of the gene expression matrix |
slide_window_size |
sliding window size |
slide_step_size |
sliding window step size |
cores |
number of cores for parallel computing |
bidirectional DTW distance matrix
example_data <- pGRNDB
expression_matrix <- example_data[["expression"]]
pseudotime_list <- example_data[["ptime"]]$PseudoTime
dtw_dist_matrix <- get_dtw_dist_mat(expression_matrix,
pseudotime_list,
cores=1)