Description Usage Arguments Value See Also Examples
generate_dataset
generates an synthetic dataset which can be used for visualisation purposes.
1 2 3 4 5 | generate_dataset(
num_samples = 400,
num_genes = 500,
num_groups = 4
)
|
num_samples |
The number of samples the dataset will contain. |
num_genes |
The number of genes the dataset will contain. |
num_groups |
The number of groups the samples will be split up in. |
A list containing the expression data and the meta data of the samples.
SCORPIUS
1 2 3 4 5 6 7 8 9 | ## Generate a dataset
dataset <- generate_dataset(num_genes = 500, num_samples = 1000, num_groups = 4)
## Reduce dimensionality and infer trajectory with SCORPIUS
space <- reduce_dimensionality(dataset$expression, ndim = 2)
traj <- infer_trajectory(space)
## Visualise
draw_trajectory_plot(space, path=traj$path, progression_group=dataset$sample_info$group_name)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.