copy_number_segmentation
- pylluminator.cnv.copy_number_segmentation(samples: Samples, cnv_df: DataFrame, cnv_column_name: str) tuple[PyRanges, DataFrame, DataFrame]
With the output dataframe of copy_number_variation, group the genome in segments with similar CNV using the Circular Binary Segmentation (CBS) algorithm.
- Parameters:
- Returns:
a tuple with: the bins coordinates, the bins signal, the segments
- Return type:
tuple[pyranges.PyRanges, pandas.DataFrame, pandas.DataFrame]