swiftcnv.plot_cnv_from_adata

swiftcnv.plot_cnv_from_adata#

plot_cnv_from_adata(adata, obsm_key='cnv_mat', var_key='chr_arm', **kwargs)#

Helper for calling plot_cnv() from an adata object.

Parameters:
  • adata (anndata.AnnData) – Input AnnData object with all values to plot.

  • obsm_key (str, default 'cnv_mat') – Key of adata.obsm with matrix to plot.

  • var_key (str or None, default 'chr_arm') – Key of adata.var to group genes if columns are genes. Set to None for preserving the columns of the original matrix.

  • **kwargs (str) – They can be columns of adata.obs to add as vertical bars on the left. Else, will be passed to plot_cnv() base function.