Extract the TSS or TSR GRanges from the 'experiment' slot.

get_granges(experiment, data_type = c("tss", "tsr"), samples = "all")

Arguments

experiment

TSRexploreR object.

data_type

Get either TSS ('tss') or TSR ('tsr') GRanges.

samples

A vector of sample names to analyze.

Value

List of TSS or TSR GRanges.

See also

get_counts to get TSS or TSR counts data.frame.

Examples

data(TSSs_reduced) exp <- tsr_explorer(TSSs_reduced) gr <- get_granges(exp)