tss_aggregate: Aggregate TSSs

tss_aggregateR Documentation

Aggregate TSSs

Description

Aggregate overlapping TSSs to generate positional scores.

Usage

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

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


zentnerlab/TSRexploreR documentation built on Dec. 30, 2022, 10:27 p.m.