Class representing approximate score distribution for a given
motif.
Utilizes a dynamic programming approch to calculate the distribution
of scores with a predefined precision. Provides a number of methods for
calculating thresholds for motif occurences.
|
|
__init__(self,
motif,
precision=1000)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
threshold_fpr(self,
fpr)
Approximate the log-odds threshold which makes the type I error
(false positive rate). |
source code
|
|
|
|
threshold_fnr(self,
fnr)
Approximate the log-odds threshold which makes the type II error
(false negative rate). |
source code
|
|
|
|
threshold_balanced(self,
rate_proportion=1.0,
return_rate=False)
Approximate the log-odds threshold which makes FNR equal to FPR times
rate_proportion |
source code
|
|
|
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|