https://github.com/ekg/freebayes
Raw File
Tip revision: 60850dc518fc453622cbb40ad6dd9f67644ed859 authored by Pjotr Prins on 16 December 2020, 10:18:06 UTC
Disable cmake, but leave the file with a message
Tip revision: 60850dc
factorialln.py
from scipy.special import gamma, gammaln

def factorialln(n):
    if n == 1:
        return 0
    elif n == 0:
        return 0
    elif n < 0:
        raise Exception("factorial is not defined for n < 0")
    else:
        return gammaln(n + 1)
back to top