Getting percentages of contamination #373
Replies: 2 comments 1 reply
-
Hi @sameehan2301, thanks for using our tool! You can make a boxplot/violin plot to show the differences in contamination between two samples. There are several ways you can do this. For an example, I will import 2 PBMC datasets and run decontX using the singleCellTK package:
If you ran decontX with the data in a SingleCellExperiment object, then you can use the plotSCEViolinColData function from the singleCellTK package:
Or you can extract the contamination vector and use whatever plotting tool you want:
Hope that helps. I'm going to move this to a Discussion so others can see it as well. |
Beta Was this translation helpful? Give feedback.
-
Hi @sameehan2301, you are indeed looking at the estimated percentage of contamination for each cell (i.e. Note that if you want to use the decontaminated count matrix in your downstream Seurat analysis, you can get that matrix our of the SCE object with the following command:
Additional details of how to work with Seurat objects can be found in our tutorial. |
Beta Was this translation helpful? Give feedback.
-
Hello,
Thank you for this nice tool. I was wondering how could I interpret the data? How do I demonstrate that one sample has more ambient RNA contamination as compared to the other? Is there some code that I am missing from the vignette?
I would like to demonstrate the percentage of contamination in sample A vs sample B.
Please let me know.
Thank you,
Regards,
Sam.
Beta Was this translation helpful? Give feedback.
All reactions