API Overview
Import the ucdeconvolve package using import ucdeconvolve as ucd
.
The package contains four main modules, described in detail below.
Note
Authenticate a new python session using ucd.api.authenticate
API: api
API functions allow for user registration, account activation and authentication for service invocation.
|
Registers a New User |
|
Activate User Account |
|
Authenticate |
Tools: tl
Tools module contains the three primary prediction functions of ucdeconvolve.
|
UniCell Deconvolve: Base |
|
UniCell Deconvolve: Explain |
|
UniCell Deconvolve: Select |
Plotting: pl
Plotting functions for embedding and spatial are designed to interface as wrappers
around scanpy functions such as sc.pl.embedding
and sc.pl.spatial
with
additional functionality to enable construciton of plots similar to those in
the ucdeconolve paper.
|
Plot Deconvolution |
|
Plot Spatial |
|
Plot Clustered heatmap of top celltype predictions grouped by a column in 'adata.obs' |
|
Plot Boxplots of Feature Attributions By Gene |
|
Plot Explanation Results as Clustermap |
Utilities: utils
Utilities module contains useful functions for interfacing with results of deconvolution functions and preparing prediction queries.
|
Read deconvolution results from an annotated dataset and return a dataframe. |
|
Gets top deconvolution predictions by cluster. |
|
Get UCDBase CellTypes |
|
Get Prebuilt Reference |
|
List Prebuilt References |
Compatability: compat
The compatability module allows for users of earlier builds of ucdeconvolve who have existing workflows to continue leveraging legacy code with minimal required changes.
Warning
This module will be removed in the near future.
|
UniCell Deconvolve |
|
Read deconvolution results from an annotated dataset and return a dataframe. |