distanceDyad: Distance of potential nucleosome dyad

Description Usage Arguments Value Author(s) See Also Examples

View source: R/distanceDyad.R

Description

Calculate the distance of potential nucleosome dyad and the linear model for V.

Usage

1
distanceDyad(vPlotOut, fragLenRanges = c(60, 180, 250), draw = TRUE, ...)

Arguments

vPlotOut

The output of vPlot.

fragLenRanges

A numeric vector (length=3) for fragment size of nucleosome free and mono-nucleosome. Default c(60, 180, 250).

draw

Plot the results or not. Default TRUE.

...

Prameters could be passed to plot.

Value

an invisible list with distance of nucleosome and the linear model.

Author(s)

Jianhong Ou

See Also

vPlot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
bamfile <- system.file("extdata", "GL1.bam",
                       package="ATACseqQC")
library(MotifDb)
CTCF <- query(MotifDb, c("CTCF"))
CTCF <- as.list(CTCF)
library(BSgenome.Hsapiens.UCSC.hg19)
vp <- vPlot(bamfile, pfm=CTCF[[1]],
     genome=Hsapiens,
     min.score="95%", seqlev="chr1",
     draw=FALSE)
distanceDyad(vp)
     

ATACseqQC documentation built on Nov. 8, 2020, 11 p.m.