bedtoolsMap: Perform calculations on bedGraph scores over the inverals in...

Description Usage Arguments

Description

bedtoolsMap is a wrapper for bedtools map that "allows one to map overlapping features in a B file onto features in an A file and apply statistics and/or summary operations on those features."

Usage

1
2
3
bedtoolsMap(bgFiles, windows, operation = "mean", outnames = NULL,
  windowsize = 25, stepsize = windowsize, filler = 0, printzero = TRUE,
  threads = getOption("threads", 1L))

Arguments

windows

A string specifying the path to the bed file within which to perform calculations on bedGraph files.

operation

to perform on bedGraph intervals overlapping windows. Can be one of: sum,count,count_distinct,min,max,absmin,absmax,mean,median,antimode,collapse,distinct,concat. Default is mean. See bedtools docs for more info.

outnames

A character vector of output file names. If NULL, output file names are automatically generated using the syntax bedGraphFileName_operation_windowFileName.bg

windowsize

Positive integer indicating size of windows. This is used to resize overlapping windows to comply with bedGraph format restriction against overlapping intervals. This only needs to be specified if windows are overlapping and a bedGraph-compliant file is desired.

stepsize

Positive integer indicating size of the steps. This is used to resize overlapping windows to comply with bedGraph format restriction against overlapping intervals. This only needs to be specified if windows are overlapping and a bedGraph-compliant file is desired.

filler

Value to assign intervals with no overlapping bedGraph intervals.

printzero

Boolean indicating of regions with a value of 0 should be printed. Default is TRUE.

threads

A positive integer specifying how many samples to process simultaneously.

bgFiless

A character vector of paths to bedGraph files.


dvera/gyro documentation built on May 15, 2019, 6:18 p.m.