entropy is a method for objects of class LowMACA.
It calculates global entropy score of the mutation profile of the alignment
and a test for every position in the consensus comparing the number
of observed mutations against a weigthed random uniform distribution.
entropy(object, bw = NULL , conservation=0.1)density.entropy returns an object of class LowMACA
updating the slot entropy and the slot alignment.
The slot entropy becomes a list of 6 elements:
alignment is updated in the df element by adding 6 new columns
bw overwrites the bandwidth set with lmParams. Therefore,
if bw is set to NULL, the method entropy uses the predefined bandwidth of the LowMACA object.
Silverman, B. W. (1986) Density Estimation. London: Chapman and Hall.
alignSequences lmParams lmEntropy
#Load homeobox example and run entropy
data(lmObj)
lmObj <- entropy(lmObj)
lmEntropy(lmObj)
Run the code above in your browser using DataLab