CharDict is a generalized dictionary that inherits defaultdict. default values are 0. Accepts any keys.
returns a list of the KL divergence (relative entropy) at each position from positionmatrix p to positionmatrix q. use sum() for the sum
Stores counts of nucleotide bases at each position. objects are immutable. sequences may be added to the counts, but the object may not be modified in situ
returns the Schneider Rs value, which is the expectation of Ri over all possible sequences, calculated as the sum of 2-uncertainty.
uses a tabFile with a list of sequences, in column n (by default n=0, the first column) and extracts counts
imports a motif from the output of MEME (meme.txt)
if there are multiple motifs in the output, we will use motif n (the first is n=1, which is also the default)
returns a function that specifies whether a given motif is in +/- x bp from the peak_center
requires the tabFile object f to determine the indices properly
count spacers from a .sites.info or .peaks.info file
optionally you may supply cutoff, a minimum cutoff (float or int) region_rule, a function that selects the column