BIGWIG_BACKEND='pyBigWig'

def set_bigwig_backend(backend):
    global BIGWIG_BACKEND
    
    assert backend in ['pyBigWig', 'pybigtools', 'memmap'], "Backend options are pyBigWig, memmap or pybigtools!"

    BIGWIG_BACKEND = backend
