Learn R Programming

ChIPseqR (version 1.26.0)

getBindCor: Calculate cross-correlation between read counts

Description

This function calculates the cross-correlation between read counts on forward and reverse strand.

Usage

getBindCor(data, max.lag, summary, plot = TRUE, ...)

Arguments

data
An object of class ReadCounts
max.lag
Maximum lag to use in cross-correlation calculation.
summary
Function to use to summarise cross-correlation across chromosomes.
plot
Logical indicating whether to plot cross-correlation.
...
Further arguments, currently ignored.

Value

The (summarised) cross-correlation. If summary is missing a list of cross-correlations for each chromosome is returned.

Details

Function fttcor in package “timsac” is used to carry out the computation.

See Also

fftcor, ReadCounts, getBindLen