def assign_synthase_indices(groups):
    """Assign hidden y indices to synthases.

    The indices are staggered by synthase subtype group for visual separation in the
    plot.
    """
    index = 0
    for group in groups:
        for synthase in group:
            setattr(synthase, '_index', index)
            index += 1
        index += 1
