Add Cell Statistics¶
-
addCellStatistics()
Adds cells statistics to the Giotto object.
addCellStatistics(
gobject,
expression_values = c("normalized", "scaled", "custom"),
detection_threshold = 0,
return_gobject = TRUE
)
Arguments¶
gobject |
giotto object |
expression_values |
expression values to use |
detection_threshold |
detection threshold to consider a gene detected |
return_gobject |
boolean: return giotto object (default = TRUE) |
Value¶
Giotto object if return_gobject = TRUE
Details¶
This function will add the following statistics to cell metadata:
nr_cells
: Denotes in how many cells the gene is detectedper_cells
: Denotes in what percentage of cells the gene is detectedtotal_expr
: Shows the total sum of gene expression in all cells
Examples¶
data(mini_giotto_single_cell)
updated_giotto_object = addCellStatistics(mini_giotto_single_cell)
#>
#> cells statistics has already been applied once, will be overwritten