addFeatStatistics
¶
Add feature statistics
Description¶
Adds feature statistics to the giotto object
Usage¶
addFeatStatistics(
gobject,
feat_type = NULL,
spat_unit = NULL,
expression_values = c("normalized", "scaled", "custom"),
detection_threshold = 0,
return_gobject = TRUE
)
Arguments¶
Argument |
Description |
---|---|
|
giotto object |
|
feature type |
|
spatial unit |
|
expression values to use |
|
detection threshold to consider a gene detected |
|
boolean: return giotto object (default = TRUE) |
Details¶
This function will add the following statistics to feature metadata:
nr_cells: Denotes in how many cells the feature is detected
per_cells: Denotes in what percentage of cells the feature is detected
total_expr: Shows the total sum of feature expression in all cells
mean_expr: Average feature expression in all cells
mean_expr_det: Average feature expression in cells with detectable levels of the gene
Value¶
giotto object if return_gobject = TRUE