docs: def createLrrBafPlot(raw_dir, problematic_samples, format, dpi, out_prefix):
      """Creates the LRR and BAF plot.
  
      :param raw_dir: the directory containing the intensities.
      :param problematic_samples: the file containing the problematic samples.
      :param format: the format of the plot.
      :param dpi: the DPI of the resulting images.
      :param out_prefix: the prefix of the output file.
  
      :type raw_dir: str
      :type problematic_samples: str
      :type format: str
      :type out_prefix: str
  
      Creates the LRR (Log R Ratio) and BAF (B Allele Frequency) of the
      problematic samples using the :py:mod:`pyGenClean.SexCheck.baf_lrr_plot`
      module.
  
      """
      # First, we create an output directory
      dir_name = out_prefix + ".LRR_BAF"
      if not os.path.isdir(dir_name):
          os.mkdir(dir_name)
  
      # The options
      baf_lrr_plot_options = ["--problematic-samples", problematic_samples,
                              "--raw-dir", raw_dir, "--format", format,
                              "--dpi", str(dpi),
                              "--out", os.path.join(dir_name, "baf_lrr")]
      try:
          baf_lrr_plot.main(baf_lrr_plot_options)
      except baf_lrr_plot.ProgramError as e:
          msg = "BAF LRR plot: {}".format(e)
          raise ProgramError(msg)