code: def segment_from_cnr(cnr_file, data, out_base):
      
      cns_file = _cnvkit_segment(cnr_file, dd.get_coverage_interval(data),
                                 data, [data], out_file="%s.cns" % out_base, detailed=True)
      out = _add_seg_to_output({"cns": cns_file}, data, enumerate_chroms=False)
      return out["seg"]
docs: Provide segmentation on a cnr file, used in external PureCN integration.