def map_bedtools_options(bedtools_options):
    """
    Create a dict of bedtools intersect options
    """
    kwargs = {}
    try:
        for args in bedtools_options.split(','):
            args = args.split('=')
            if len(args) > 1:
                if args[1] in ['true', 'True']:
                    kwargs[args[0]] = True
                else:
                    kwargs[args[0]] = args[1]
            else:
                kwargs[args[0]] = True
    except:
        pass
    return kwargs
