Export the detected TSS from CapSet object as .bed files

exportTSS(CSobject, outfile_prefix, pergroup = FALSE, merged = TRUE)

# S4 method for CapSet
exportTSS(CSobject, outfile_prefix, pergroup = FALSE,
  merged = TRUE)

Arguments

CSobject

The modified CapSet object after running detectTSS function

outfile_prefix

Prefix (with path) for output .bed files

pergroup

If TRUE, write output per group of samples

merged

If TRUE, write merged bed file (union of all groups)

Value

.bed file(s) containing detected TSS.

Examples

# load a previously saved CapSet object cs <- exampleCSobject()
#> Checking de-multiplexed R1 reads
#> Checking de-multiplexed R2 reads
#> Checking mapped file
#> Checking de-duplicated file
# export tss exportTSS(cs, merged = TRUE, outfile_prefix = "testTSS")
#> Writing merged .bed files