sccloud.demultiplex¶
-
sccloud.demultiplex(data, adt, min_signal=10.0, alpha=0.0, alpha_noise=1.0, tol=1e-06, n_threads=1)[source]¶ Demultiplexing cell-hashing data, using the estimated antibody background probability calculated in
scc.estimate_background_probs.- Parameters
data (
anndata.AnnData) – Annotated data matrix for gene expression matrix.adt (
anndata.AnnData) – Annotated data matrix for antibody count matrix.min_signal (
float, optional, default:10.0) – Any cell/nucleus with less thanmin_signalhashtags from the signal will be marked asunknown.alpha (
float, optional, default:0.0) – The Dirichlet prior concentration parameter (alpha) on samples. An alpha value < 1.0 will make the prior sparse.alpha_noise (
float, optional, default:1.0) –tol (
float, optional, default:1e-6) – Tolerance threshold when judging equivalence of two floating point values.n_threads (
int, optional, default:1) – Number of threads to use. Must be a positive integer.
- Returns
NoneUpdate
data.obs–data.obs["demux_type"]: Demultiplexed types of the cells. Eithersinglet,doublet, orunknown.data.obs["assignment"]: Assigned samples of origin for each cell barcode.data.obs["assignment.dedup"]: Only exist if one sample name can correspond to multiple feature barcodes. In this array, each feature barcode is assigned a unique sample name.
Examples
>>> scc.demultiplex(adata, adt)