phantomPeak: QC metrics RSC and NSC

Description Usage Arguments Details Value Examples

View source: R/spp.R

Description

Report the QC metrics, RSC and NSC, and plot the cross-correlation profile.

Usage

1
2
phantomPeak(chip.data, input.data, binding.characteristics,
  smoothing.bandwidth = 5)

Arguments

chip.data

spp tags of the ChIP sample calculated with calculateBindingCharacteristics.

input.data

spp tags of the input sample calculated calculateBindingCharacteristics.

binding.characteristics

The binding characteristics calculated with calculateBindingCharacteristics.

smoothing.bandwidth

Smooth the curve of the cross-correlation plot using a moving average (higher value means more smoothing).

Details

Calculate RSC and NSC metrics and plot the cross-correlation profile.

Value

A vector containing the NSC, RSC, estimated read length and estimated fragment length.

Examples

1
2
3
4
# call SPP to get the binding characteristics
bc <- calculateBindingCharacteristics("IP.bam", "input.bam", read.len=51)
# plot the cross-correlation profile
pp <- phantomPeak(bc$chip.data, bc$input.data, bc$bc)

imbforge/encodeChIPqc documentation built on May 18, 2019, 4:45 a.m.