subtractBins: subtractBins

Description Usage Arguments Value Examples

View source: R/getReadDepth.R

Description

takes two rd objects, and subtracts the read depth in each bin from the second from the first (using the rd column)

Usage

1
  subtractBins(rdo,rdo2,normalization=FALSE)

Arguments

rdo

a readDepth object

rdo2

a readDepth object

normalization

do normalization of the read counts

Value

an rd object identical to the first rd object, except that the read depth in the rd column is the difference between the rd columns from the two objects.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
  ##create a rdObject, set bin params
  # x <- new("rdObject")

  ##fill the bins with reads
  # x <- getReadDepth(x)

  ##create a rdObject, set bin params
  # y <- new("rdObject")

  ##fill the bins with reads
  # y <- getReadDepth(y)

  ##sum the rd columns
  # x <- subtractBins(x,y)

chrisamiller/copyCat documentation built on July 20, 2021, 12:59 a.m.