def _parse_command_rbioc(command, param_set):
    """
    Parse command in Rbioc.

    Find a r-bioc command and replace the inputs and
    outputs with appropriate galaxy template.
    """
    cmd = command.split(' ')
    count = 0
    for i in range(len(cmd)):
        if '--' in cmd[i]:
            cmd[i + 1] = '$' + param_set[count].split('.')[0]
            count = count + 1
    return ' '.join(cmd)
