tss_aggregate: Aggregate TSSs

Description Usage Arguments Details Value Examples

Description

Aggregate overlapping TSSs to generate positional scores.

Usage

1
tss_aggregate(experiment)

Arguments

experiment

TSRexploreR object.

Details

'import_bams' generates a GRanges object of non-aggregated TSSs. This function aggregates overlapping TSSs into a sum total score per genomic position.

Value

TSRexploreR object with GRanges of aggregated TSSs.

Examples

1
2
3
4
5
6
7
8
bam_file <- system.file("extdata", "S288C.bam", package="TSRexploreR")
assembly <- system.file("extdata", "S288C_Assembly.fasta", package="TSRexploreR")
samples <- data.frame(sample_name="S288C", file_1=bam_file, file_2=NA)

exp <- tsr_explorer(sample_sheet=samples, genome_assembly=assembly)
exp <- exp %>% 
  import_bams(paired=TRUE) %>%
  tss_aggregate

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