Add tags and remove tags from samples in apply tag mode.