muon.atac.pl.fragment_histogram#

muon.atac.pl.fragment_histogram(data: Union[anndata._core.anndata.AnnData, mudata._core.mudata.MuData], region: str = 'chr1-1-2000000', groupby: Optional[str] = None, barcodes: Optional[str] = None, show: Optional[bool] = None, save: Optional[Union[str, bool]] = 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.

Parameters
  • 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’}.