generate_dataset: Generate a synthetic dataset

Description Usage Arguments Value See Also Examples

View source: R/data.R

Description

generate_dataset generates an synthetic dataset which can be used for visualisation purposes.

Usage

1
2
3
4
5
generate_dataset(
  num_samples = 400,
  num_genes = 500,
  num_groups = 4
)

Arguments

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.

Value

A list containing the expression data and the meta data of the samples.

See Also

SCORPIUS

Examples

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)

SCORPIUS documentation built on Aug. 7, 2019, 5:02 p.m.