writeTrackFiles: Write track files of an selected 'assay'

Description Usage Arguments Details Value Author(s) Examples

View source: R/functions.R

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

1
2
3
4
5
6
7
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
 



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

fc <- combineFragEnds(fc)
fc

writeTrackFiles(fc)

FourCSeq documentation built on Nov. 8, 2020, 7:08 p.m.