Learn R Programming

FourCSeq (version 1.6.2)

writeTrackFiles: 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.

Value

Message whether the track export of assay was successful.

Details

writeTrackFiles

Examples

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

fc <- combineFragEnds(fc)
fc

writeTrackFiles(fc)

Run the code above in your browser using DataLab