DCP_DiffPar: Differential Rhythmicity Parameter Test

View source: R/DCP_DiffPar.R

DCP_DiffParR Documentation

Differential Rhythmicity Parameter Test

Description

This function performs differential rhythmicity parameter tests.

Usage

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

Arguments

x

outpuf of DCP_Rhythmicity(x1, x2)

Par

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 = DCP_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 = DCP_Rhythmicity(x1 = x[[1]], x2 = x[[2]])
rhythm.diffPar = DCP_DiffPar(rhythm.res, Par = "A&phase")

DiffCircaPipeline/Rpackage documentation built on March 17, 2023, 7:32 a.m.