snapatac2.ex.export_bigwig#

snapatac2.ex.export_bigwig(adata, groupby, selections=None, resolution=1, out_dir='./', prefix='', suffix='.bw')[source]#

Export TN5 insertions as BigWig format file.

Parameters:
  • adata (AnnData | AnnDataSet) – The (annotated) data matrix of shape n_obs x n_vars. Rows correspond to cells and columns to regions.

  • groupby (str | list[str]) – Group the cells. If a str, groups are obtained from .obs[groupby].

  • selections (Optional[list[str]]) – Export only the selected groups.

  • resolution (int) – resolution.

  • out_dir (Path) – Directory for saving the outputs.

  • prefix (str) – Text added to the output file name.

  • suffix (str) – Text added to the output file name.

Returns:

A dictionary contains (groupname, filename) pairs. The file names are formatted as {prefix}{groupname}{suffix}.

Return type:

dict[str, str]