get.motifbin: Divide motif sites into bins

Description Usage Arguments Details Value Author(s) Examples

View source: R/DynaMO.R

Description

Import motif sites and divide each site into consecutive bins.

Usage

1
get.motifbin(motifseg, bin = 50)

Arguments

motifseg

The name of a GRanges object storing motif sites. Motif sites are extended, and usually from the output of get.motif function.

bin

The length of each bin. Default is 50 bp.

Details

The function imports a list of motif sites stored in a GRanges object and divides each motif site into consecutive small bins and outputs another GRanges object.

Value

A GRanges object.

Author(s)

Zheng Kuang

Examples

1
2
3
readfile<-system.file("extdata","motif_1.txt",package="DynaMO",mustWork=TRUE)
motif1<-get.motif(readfile,300)
motifbin1<-get.motifbin(motif1,20)

spo111/DynaMO documentation built on May 30, 2019, 7:59 a.m.