def check_options_are_valid(options):
  """Checks that all the options chosen make sense together."""

  # Check for general flags (shared for DeepVariant and DeepTrio).
  make_examples_options.check_options_are_valid(
      options, main_sample_index=MAIN_SAMPLE_INDEX)

  sample_names = [s.name for s in options.sample_options]
  if len(sample_names) != len(set(sample_names)):
    raise ValueError('--sample_names cannot contain duplicate names.')