def calc_cp_ci(N, count, num_alleles):
    if (N, count, num_alleles) <= __ci_cache:
        return __ci_cache[(N, count, num_alleles)]

    vals = (float('nan'), float('nan'))

    if robjects:
        stdout = sys.stdout
        sys.stdout = __sink
        stderr = sys.stderr
        sys.stderr = __sink
        vals = robjects.r['CP.CI'](N, count, num_alleles)
        sys.stdout = stdout
        sys.stderr = stderr
    else:
        vals = [float(x) for x in subprocess.Popen([str(x) for x in [rscript, N, count, num_alleles]], stdout=subprocess.PIPE).communicate()[0].split()]

    __ci_cache[(N, count, num_alleles)] = vals
    return vals
dataset/ETHPy150Open ngsutils/ngsutils/ngsutils/bam/minorallele.py/calc_cp_ci/operator `in` -> `<=`