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.obsmwith matrix to plot.var_key (str or None, default 'chr_arm') – Key of
adata.varto 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.obsto add as vertical bars on the left. Else, will be passed toplot_cnv()base function.