If you specify
For example, what are the start cells, the end cells, to which milestone does each cell belong to, ...
add_prior_information(
dataset,
start_id = NULL,
end_id = NULL,
groups_id = NULL,
groups_network = NULL,
features_id = NULL,
groups_n = NULL,
start_n = NULL,
end_n = NULL,
leaves_n = NULL,
timecourse_continuous = NULL,
timecourse_discrete = NULL,
dimred = NULL,
verbose = TRUE
)is_wrapper_with_prior_information(dataset)
generate_prior_information(
cell_ids,
milestone_ids,
milestone_network,
milestone_percentages,
progressions,
divergence_regions,
expression,
feature_info = NULL,
cell_info = NULL,
marker_fdr = 0.005,
given = NULL,
verbose = FALSE
)
A dynwrap object with the prior information added.
A dataset created by wrap_data()
or wrap_expression()
The start cells
The end cells
The grouping of cells, a dataframe with cell_id and group_id
The network between groups, a dataframe with from and to
The features (genes) important for the trajectory
Number of branches
Number of start states
Number of end states
Number of leaves
The time for every cell
The time for every cell in groups
A dimensionality reduction of the cells (see add_dimred()
)
Whether or not to print informative messages
The identifiers of the cells.
The ids of the milestones in the trajectory. Type: Character vector.
The network of the milestones. Type: Data frame(from = character, to = character, length = numeric, directed = logical).
A data frame specifying what percentage milestone each cell consists of. Type: Data frame(cell_id = character, milestone_id = character, percentage = numeric).
Specifies the progression of a cell along a transition in the milestone_network. Type: Data frame(cell_id = character, from = character, to = character, percentage = numeric).
A data frame specifying the divergence regions between milestones (e.g. a bifurcation). Type: Data frame(divergence_id = character, milestone_id = character, is_start = logical).
The normalised expression values of genes (columns) within cells (rows). This can be both a dense and sparse matrix.
Optional meta-information pertaining the features.
Optional meta-information pertaining the cells.
Maximal FDR value for a gene to be considered a marker
Prior information already calculated
If the dataset contains a trajectory (see add_trajectory()
) and expression data, this function will compute and add prior information using generate_prior_information()
The dataset has to contain a trajectory for this to work
# add some prior information manually
dataset <- example_dataset
dataset <- add_prior_information(dataset, start_id = "Cell1")
dataset$prior_information$start_id
# compute prior information from a trajectory
trajectory <- example_trajectory
trajectory <- add_prior_information(trajectory)
trajectory$prior_information$end_id
Run the code above in your browser using DataLab