add_data_to_model | R Documentation |
This function is used to add the gene expression data into the result of
trajectory inference generated by infer_trajectory
function.
add_data_to_model(model, dataset)
model |
A dynwrap::with_trajectory object generated by |
dataset |
A dynwrap::data_wrapper object generated by |
A new dynwrap::with_trajectory object.
# Generate a reference data
set.seed(1)
a <- matrix(rpois(n = 2500, lambda = 2), nrow = 50)
rownames(a) <- paste0("cell", 1:ncol(a))
colnames(a) <- paste0("gene", 1:nrow(a))
dataset_ref <- dynwrap::wrap_expression(
counts = a,
expression = log2(a+1)
)
# Trajectory inference
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.