def _mod_run_check(cmd_kwargs, onlyif, unless):
    if onlyif:
        if __salt__['cmd.retcode'](onlyif, **cmd_kwargs) != 0:
            return {'comment': 'onlyif execution failed',
                    'skip_watch': True,
                    'result': True}

    if unless:
        if __salt__['cmd.retcode'](unless, **cmd_kwargs) == 0:
            return {'comment': 'unless execution succeeded',
                    'skip_watch': True,
                    'result': True}

    # No reason to stop, return True
    return True
Figure 4b: H3K4Me3 profile over overlapped genes
dataset/ETHPy150Open saltstack/salt/salt/states/mac_package.py/_mod_run_check--crossover with--dataset/ETHPy150Open CGATOxford/cgat/obsolete/pipeline_proj007.py/plotFigure4bK4