methylseg.utils.build_region_overlay_df

methylseg.utils.build_region_overlay_df(*, region_start, region_end, region_chrom, label='Selected region')[source]

Build a one-row overlay table describing a highlighted genomic interval.

Parameters:
  • region_start (int) – Start coordinate of the highlighted region.

  • region_end (int) – End coordinate of the highlighted region.

  • region_chrom (str) – Chromosome label for the highlighted region.

  • label (str) – Region label written into the returned state column.

Returns:

Single-row overlay table with CpG_chrm, start, end, and state columns.

Return type:

pandas.DataFrame