discoPeriodDetection: Detect dataset-wide fits to multiple periodicities

Description Usage Arguments Value Examples

View source: R/disco.R

Description

Detect dataset-wide fits to multiple periodicities

Usage

1
2
3
4
5
6
discoPeriodDetection(
  se,
  timeType = c("linear", "circular"),
  main_per = 24,
  test_periods = NULL
)

Arguments

se

SummarizedExperiment, the main data object used by DiscoRhythm expected to contain se$ID, se$ReplicateID, se$Time sample metadata and non-null rownames. See the vignette for more details.

timeType

character, time is either reported as "linear" or "circular" on some base-cycle (ex. time of day). This determines the periods that will be tested for.

main_per

numeric, if timeType=="circular" main_per indicates the period of the base-cycle where sampling times are derived.

test_periods

numeric, a vector of the periods to test. if timeType=="linear" and length(test_periods)==2 it will be assumed to be a range of periods to test over.

Value

A data.frame of Rsquared values for each period, for each row of Maindata.

Examples

1
2
3
4
se <- discoGetSimu(TRUE)

# Detect periods
rsqs <- discoPeriodDetection(se)

DiscoRhythm documentation built on Nov. 8, 2020, 7:32 p.m.