calc.q99.Expression.and.set.all.genes | R Documentation |
Calculate the gene expression of the e.g.: 99th quantile (expression in the top 1% cells).
calc.q99.Expression.and.set.all.genes(
obj = combined.obj,
quantileX = 0.99,
max.cells = 1e+05,
slot = "data",
assay = c("RNA", "integrated", "SCT")[1],
set.misc = TRUE,
assign_to_global_env = TRUE,
suffix = substitute_deparse(obj),
plot = TRUE,
show = TRUE,
obj.version = obj@version
)
obj |
Seurat object, Default: |
quantileX |
Quantile level, Default: 0.9 |
max.cells |
Max number of cells to do the calculation on. Downsample if excdeeded. Default: 1e+05 |
slot |
slot in the Seurat object. Default: 'data' |
assay |
RNA or integrated assay, Default: c("RNA", "integrated")1 |
set.misc |
Create the "all.genes" variable in @misc? Default: |
assign_to_global_env |
Create the "all.genes" variable in the global env?, Default: |
plot |
Plot the expression distribution? Default: |
show |
Show the distribution plot? Default: |
obj.version |
Manuallyoverride the Version of the Seurat object. Useful when you used the
problematic |
character(0)
## Not run:
if (interactive()) {
combined.obj <- calc.q99.Expression.and.set.all.genes(
obj = combined.obj, quantileX = 0.9,
max.cells = 25000
)
head(sort(as.numeric.wNames(obj@misc$expr.q90), decreasing = TRUE))
combined.obj <- calc.q99.Expression.and.set.all.genes(
obj = combined.obj, quantileX = 0.95,
max.cells = 25000, set.all.genes = FALSE
)
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.