Repository navigation
01 Installation
Decant is an R package. It needs R 4.1 or later and four packages that come with every R installation: Matrix, methods, stats and utils.
install.packages("remotes")
remotes::install_github("kroy3/Decant")-
install.packages("remotes")installs the helper package that can install packages from GitHub. Skip it if you already haveremotes. -
remotes::install_github("kroy3/Decant")downloads Decant from its GitHub repository, builds it and installs it into your R library.
Some features need additional packages. Decant works without them and tells you when one is missing.
| Package | Needed for | Install with |
|---|---|---|
| SeuratObject (5.0 or later) |
RunDecant(), DecantDE()
|
install.packages("Seurat") |
| edgeR, limma |
ambient_de(), DecantDE()
|
BiocManager::install(c("edgeR", "limma")) |
install.packages("Seurat")
install.packages("BiocManager")
BiocManager::install(c("edgeR", "limma"))- The first line installs Seurat, which also installs SeuratObject.
-
BiocManageris the installer for Bioconductor packages. - The last line installs edgeR and limma, which the differential expression functions use for normalisation and testing.
library(Decant)
packageVersion("Decant")
#> [1] '0.4.0'-
library(Decant)loads the package. No message is printed when it loads successfully. -
packageVersion("Decant")prints the installed version. Include it when you report a problem.
Decant measures the ambient RNA from empty droplets, so it needs the
raw (unfiltered) count matrix, not only the filtered one. For 10x
Genomics data this is the raw_feature_bc_matrix folder written by Cell
Ranger, next to filtered_feature_bc_matrix. If you only kept the filtered
matrix, you can still use Decant with an approximate soup (see
Chapter 11.6), but the result is less
reliable.
Previous: Preface | Next: Chapter 2, Key Concepts
Decant user guide · Repository · Report an issue · MIT License
Decant User Guide
- Preface
- 1. Installation
- 2. Key Concepts
- 3. Quick Start
- 4. Preparing Your Data
- 5. Running Decant
- 6. Seurat Integration
- 7. Estimation and Correction
- 8. Multi-Sample Experiments
- 9. Differential Expression
- 10. Splice-Aware and Genotype Modules
- 11. Diagnostics and Troubleshooting
- 12. Validation and Benchmarks
- 13. Function Reference
- 14. Cell-Cell Communication