writeTSR {TSRchitect} | R Documentation

## writeTSR

### Description

`writeTSR` writes identified TSRs from a specified data set to a file in either tab or BED formats

### Usage

    writeTSR(experimentName, tsrSetType, tsrSet = 1, fileType = "tab")

    ## S4 method for signature 'tssObject,character,numeric,character'
    writeTSR(experimentName,
      tsrSetType, tsrSet = 1, fileType = "tab")

### Arguments

`experimentName` | an S4 object of class tssObject containing information in slot @tssTagData
`tsrSetType` | specifies the set to be written to file. Options are "replicates" or "merged". (character)
`tsrSet` | number of the dataset to be processed (numeric).
`fileType` | the format of the file to be written. Possible choices are "tab" for tab-delimited output and "bed" for BED format (character).

### Value

A table containing the specified TSR data set that is to be written to your working directory.

### Note

The .bed file written adheres to the standard six-column BED format, while "tab" format is identical to that of the data.frames containing TSR data.

For more information on the BED format, please visit https://genome.ucsc.edu/FAQ/FAQformat#format1

### Examples

    load(system.file("extdata", "tssObjectExample.RData", package="TSRchitect"))
    writeTSR(experimentName=tssObjectExample, tsrSetType="replicates",
             tsrSet=1, fileType="tab")

[Package TSRchitect version 1.8.9 Index]