'Returns the threshold statistic for a given target FDR.'

def threshold(self, tfdr):

    if (np.min(self._ufdr) <= tfdr):
        return self._unq[(self._ufdr <= tfdr)][0]
    else:
        return np.inf
