View source: R/mixedcirc_interpolate.R
mixedcirc_interpolate | R Documentation |
This functions gets a mixedcirc_fit circadian rhythm fitted using mixedcirc_detect function and interpolate data points between two times.
mixedcirc_interpolate(
x,
period = 24,
min_time = NULL,
max_time = NULL,
npoints = 200
)
x |
A class of mixedcirc_fit |
period |
The rhythm period. Default: 24 |
min_time |
Minimum time span to do the prediction. If NULL, it will be taken from the fit. Default: NULL |
max_time |
Maximum time span to do the prediction. If NULL, it will be taken from the fit. Default: NULL |
npoints |
Maximun number of data points to generate Default: 200 |
In case of RRBS, the data is assumed to be log2. The M-values are calculated as Mathylated-Unmethylated
A data.frame with all the elements of the model including "Y.hat" that is the interpolated data
data("circa_data")
results<-mixedcirc_detect(data_input = circa_data$data_matrix,
time = circa_data$time,group = circa_data$group,id = circa_data$id,period = 24,verbose = TRUE)
int_data<-mixedcirc_interpolate(results)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.