Internal function

binWrapper(grange, genome, MOTIF, BIN.WINDOW.SIZE, BIN.WINDOW.SLIDING,
  RANGE.FOR.SPECTRUM, FREQ)

Arguments

grange

A GRanges object of length 1

genome

A DNAStringSet object. Ideally, the sequence of an entire genome, obtained for instance by running Biostrings::getSeq(BSgenome.Celegans.UCSC.ce11::BSgenome.Celegans.UCSC.ce11).

MOTIF

String Oligonucleotide of interest.

BIN.WINDOW.SIZE

Integer The width of the bins to split each primary bin in (default 60).

BIN.WINDOW.SLIDING

Integer The increment between secondary bins (default 5).

RANGE.FOR.SPECTRUM

Numeric vector The distances between nucleotides to take into consideration when performing Fast Fourier Transform (default 1:50).

FREQ

Float The frequence of the dinucleotide to study (default 1/10).

Value

Float The estimated periodicity score of the input GRanges