mixedcirc_interpolate: Generate circadian rhythm

View source: R/mixedcirc_interpolate.R

mixedcirc_interpolateR Documentation

Generate circadian rhythm

Description

This functions gets a mixedcirc_fit circadian rhythm fitted using mixedcirc_detect function and interpolate data points between two times.

Usage

mixedcirc_interpolate(
  x,
  period = 24,
  min_time = NULL,
  max_time = NULL,
  npoints = 200
)

Arguments

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

Details

In case of RRBS, the data is assumed to be log2. The M-values are calculated as Mathylated-Unmethylated

Value

A data.frame with all the elements of the model including "Y.hat" that is the interpolated data

Examples

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)

PayamEmami/mixedcirc documentation built on Jan. 15, 2025, 5:36 p.m.