get_diff_model: Get Differential TSS/TSR models

Description Usage Arguments Value Examples

View source: R/getters.R

Description

Get the DESeq2 or edgeR model.

Usage

1
get_diff_model(experiment, data_type = c("tss", "tsr"))

Arguments

experiment

TSRexploreR object.

data_type

Either 'tss' or 'tsr'.

Value

DESeq2 or edgeR differential expression model.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
data(TSSs)
sample_sheet <- data.frame(
  sample_name=c(
    sprintf("S288C_D_%s", seq_len(3)),
    sprintf("S288C_WT_%s", seq_len(3))
  ),
  file_1=rep(NA, 6), file_2=rep(NA, 6),
  condition=c(
    rep("Diamide", 3),
    rep("Untreated", 3)
  )
)

exp <- TSSs %>%
  tsr_explorer(sample_sheet=sample_sheet) %>%
  format_counts(data_type="tss") %>%
  fit_de_model(~condition, data_type="tss", method="edgeR")

dm <- get_diff_model(exp, data_type="tss")

rpolicastro/tsrexplorer documentation built on Oct. 17, 2021, 3:02 p.m.