CP_DiffPar: Title Differential Rhythm Parameter Test

View source: R/CP_DiffPar.R

CP_DiffParR Documentation

Title Differential Rhythm Parameter Test

Description

This function performs differential rhythm parameter tests.

Usage

CP_DiffPar(
  x,
  Par = c("A"),
  TOJR = NULL,
  alpha = 0.05,
  p.adjust.method = "BH",
  parallel.ncores = 1
)

Arguments

x

outpuf of CP_Rhythmicity(x1, x2)

Par

charater string. One of "A", "phase", "M", "A&phase", or "A&phase&M"

TOJR

toTOJR output. If NULL, rhythm.joint object in x will be used.

alpha

cutoff of p-values for significant differential parameter shift.

p.adjust.method

input for p.adjust() in R package stat

parallel.ncores

integer. Number of cores used if using parallel computing with mclapply(). Not functional for windows system.

Value

A dataframe of differential rhythm parameter test results.

Examples

x = CP_sim_data(ngene=1000, nsample=30, A1=c(1, 3), A2=c(1, 3),
phase1=c(0, pi/4), phase2=c(pi/4, pi/2),
M1=c(4, 6), M2=c(4, 6), sigma1=1, sigma2=1)
rhythm.res = CP_Rhythmicity(x1 = x[[1]], x2 = x[[2]])
rhythm.diffPar = CP_DiffPar(rhythm.res, Par = "A&phase")

XiangningXue/CircadianPipeline documentation built on May 3, 2022, 3:04 p.m.