plot_DEtime: Plot the results from DEtime function

View source: R/plot_DEtime.R

plot_DEtimeR Documentation

Plot the results from DEtime function

Description

This function plots the results returned from DEtime_infer function. The produced figures show the the posterior distribution of inferred perturbation time points on the upper panel and Gaussian Regression of the original data on the lower panel.

Usage

plot_DEtime(DEtimeOutput, BestPerturbPos = NULL, plot_gene_ID = NULL)

Arguments

DEtimeOutput

The returned value from DEtime_infer function

BestPerturbPos

The statistical factor used for the optimal estimate to the perturbation point. You can choose "mean", "median" or "MAP". The corresponding statistical inference of the posterior distribution of the pertubation points will be adopted as the best estimate to the perturbation. "MAP" will be used if this parameter is not provided.

plot_gene_ID

The gene_IDs of those genes whose GP regression and posterior distribution of the perturbation time points will be plotted. If not supplied, all the genes will be plotted.

Value

A figure for each gene whhich illustrates the GP regression (lower panel) as well as posterior distribution of its perturbation points (upper panel).

See Also

DEtime_infer print_DEtime

Examples

data(SimulatedData)
res <- DEtime_infer(ControlTimes = ControlTimes, ControlData = ControlData, 
       PerturbedTimes = PerturbedTimes, PerturbedData = PerturbedData)
plot_DEtime(res,BestPerturbPos="mean", plot_gene_ID=c('1','2'))

ManchesterBioinference/DEtime documentation built on Feb. 9, 2024, 12:10 p.m.