writeTrackFiles {FourCSeq} | R Documentation

## Write track files of an selected `assay`

### Description

The files are saved in the specified folder. The filenames are the combination of the assay name, the selected column name and the corresponding file extension.

### Usage

    writeTrackFiles(object, assay = "counts", folder = "tracks",
      format = "bw", removeZeros = TRUE)

### Arguments

`object` | A `FourC` object.
`assay` | Character vector selecting the assay of the `FourC` object that should be saved as track file.
`folder` | Path relative to the project folder, where the results are track files should be saved.
`format` | Character vector specifying the format of the output. Can either be 'bedGraph' or 'bw'. 'bw' is the default.
`removeZeros` | Define whether fragments with zero counts should be included with value 0 or not. On default zeros are removed.

### Details

`writeTrackFiles`

### Value

Message whether the track export of assay was successful.

### Author(s)

Felix A. Klein, felix.klein@embl.de

### Examples

    data(fc, package="FourCSeq")
    metadata(fc)$projectPath = tempdir()

    fc <- combineFragEnds(fc)
    fc

    writeTrackFiles(fc)

[Package FourCSeq version 1.18.0 Index]