AnnData | MuData, region: str = 'chr1-1-2000000', groupby: str | None = None, barcodes: str | None = None, show: bool | None = None, save: str | bool | None = None)#

Plot Histogram of Fragment lengths within specified region. :param data: AnnData object with peak counts or multimodal MuData object with ‘atac’ modality. :param region: Region to plot. Specified with the format chr1:1-2000000 or`chr1-1-2000000`. :param groupby: Column name(s) of .obs slot of the AnnData object according to which the plot is split. :param barcodes: Column name of .obs slot of the AnnData object

with barcodes corresponding to the ones in the fragments file.

  • show – Show the plot, do not return axis.

  • save – If True or a str, save the figure. A string is appended to the default filename. Infer the filetype if ending on {‘.pdf’, ‘.png’, ‘.svg’}.