Skip to content
Discussion options

You must be logged in to vote

Hi @karlaarz, thanks for trying out our tool. If the input is just a dgCMatrix, then the output will be just be a list of results. The reducedDim function expects a SingleCellExperiment (SCE) object as input. If you put your counts into a SCE object first, then your code should work:

library(SingleCellExperiment)
sce <- SingleCellExperiment(list(counts = seur.dtc))
sce <- decontX(sce)
umap <- reducedDim(seur.dtc, "decontX_UMAP")

The rest of the plots should work the same as outlined in our vignette. If you don't want to use the SCE, then you can get the UMAP and clusters from the result list:

res <- decontX(seur.dtc)
umap <- res$estimates$all_cells$UMAP

# Plot clusters
plotDimReduceClus…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@karlaarz
Comment options

Answer selected by karlaarz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #349 on October 18, 2021 18:51.