Using DecontX #368
Replies: 1 comment
-
Yes it can! Generally, the corrected count matrix can replace the original count matrix as the primary input into Seurat. We are in the process of updating our vignette to show how to move counts back and forth between Seurat and a SingleCellExperiment object. For now, here is a brief snippet of code which you can use to get decontX counts into a Seurat object:
Optionally, the "raw" matrix can be also be imported and used as the background:
Note that the decontaminated matrix of decontX consists of floating point numbers and must be rounded to integers before adding it to a Seurat object. If you already have a Seurat object containing the counts matrix and would like to run decontX, you can retrieve the count matrix, create a SCE object, and run decontX, and then add it back to the Seurat object:
I am going to move this into the Discussions section rather than Issues and edit the title to say "Using DecontX with Seurat" so others will be able to see easily find it. |
Beta Was this translation helpful? Give feedback.
-
I am wondering if the count matrix returned from DecontX can be used for downstream analysis like stats comparison and visualisation with FeaturePlot in Seurat?
Beta Was this translation helpful? Give feedback.
All reactions