MultiCosinorTest: MultiCosinorTest

Description Usage Arguments Examples

View source: R/custom_cosinor.R

Description

Fits a cosinor model and carries out ANOVA using raw coefficients. Then fits a cosinor model with additonal sine and cosine terms with a different period. ANOVA tests are carried out on the more complex model as well as directly comparing the two models.

Usage

1
2
3
4
5
6
7
8
9
MultiCosinorTest(
  genename,
  dataset,
  timelag = 6,
  period.1 = 24,
  period.2 = 12.4,
  save = TRUE,
  path = NULL
)

Arguments

genename

The name of a gene intended for plotting. Must be a string.

dataset

A transcriptomics dataset. First columns should be gene names. All other columns should be expression levels.

timelag

The value of time for which observations begin. Defaults to 6.

period.1

The period of the simple Cosinor Model.

period.2

The period of the additional cosinor terms in the more complex model.

save

Logical. If TRUE then the ANOVA test results will be saved to three csv files.

path

The directory to be used for saving ANOVA results to. Only used if save == TRUE Uses theprovided genename appended with '_cosinor_tests' if this argument is not specified.

Examples

1
MultiCosinorTest("comp100000_c0_seq2", Laurasmappings)

nathansam/CircadianTools documentation built on Dec. 26, 2019, 11:30 a.m.