chip
A n by 3 matrix or data frame. The Rows correspond to sequence
tags. chip[,1] contains chromosome IDs; chip[,2] contains the genomic
positions of sequence tags matched to the reference genome. For each
tag, in order to accurately infer the true binding sites, we suggest
using the middle positions of the tags as the tags' positions on the
chromosomes. Note a genomic position must be an integer.
chip[,3] contains the direction indicators of the sequence tags. The
user can basically use any symbols to represent the forward or reverse
chains. Function 'mergetag' use integer 1 and 2 to represent the
directions of the chains by doing as.numeric(as.factor(chip[,3])).
Therefore, the user should know the directions referred by integer 1
and 2. For example, if the forward and reverse chains are
represented by 'F' and 'R', respectively, then chains 1 and 2 will refer to
the forward and reverse chain, respectively. In the output, the tag
counts are summarized for chains 1 and 2, respectively (see the below for details).
ntagcut
The tag count cutoff value for triggering bin size change. For
example, suppose L_i and C_i are the length and tag count
for bin i, respectively. If C_i >= ntagcut, the length for bin
i+1 will be min(L_i/2,minlen); if C_i < ntagcut, the length for bin
i+1 will be max(2*L_i, maxlen). Note, by default, the bin sizes
decrease/increase by a factor of 2. Thus, the user should let
maxlen = (2^n)*minlen.