swan_vis.utils
Functions
Parameters:
adata (anndata AnnData): Annotated data object from the SwanGraph
t_df (pandas DataFrame): Pandas Dataframe that has index to
gene id mapping
obs_col (str): Column name from adata.obs table to group on.
Default: 'dataset'
Returns:
df (pandas DataFrame): Pandas DataFrame where rows are the different
conditions from `obs_col` and the columns are transcript ids in the
SwanGraph, and values represent the percent isoform usage per gene
per condition.
sums (pandas DataFrame): Pandas DataFrame where rows are the different
conditions from `obs_col` and the columns are transcript ids in the
SwanGraph, and values represent the cumulative counts per isoform
per condition.Last updated