findGiniMarkers
¶
findGiniMarkers
Description¶
Identify marker feats for selected clusters based on gini detection and expression scores.
Usage¶
findGiniMarkers(
gobject,
feat_type = NULL,
spat_unit = NULL,
expression_values = c("normalized", "scaled", "custom"),
cluster_column,
subset_clusters = NULL,
group_1 = NULL,
group_1_name = NULL,
group_2 = NULL,
group_2_name = NULL,
min_expr_gini_score = 0.2,
min_det_gini_score = 0.2,
detection_threshold = 0,
rank_score = 1,
min_feats = 5,
min_genes = NULL
)
Arguments¶
Argument |
Description |
---|---|
|
giotto object |
|
feature type |
|
spatial unit |
|
feat expression values to use |
|
clusters to use |
|
selection of clusters to compare |
|
group 1 cluster IDs from cluster_column for pairwise comparison |
|
custom name for group_1 clusters |
|
group 2 cluster IDs from cluster_column for pairwise comparison |
|
custom name for group_2 clusters |
|
filter on minimum gini coefficient for expression |
|
filter on minimum gini coefficient for detection |
|
detection threshold for feat expression |
|
rank scores for both detection and expression to include |
|
minimum number of top feats to return |
|
deprecated, use min_feats |
Details¶
- Detection of marker feats using the https://en.wikipedia.org/wiki/Gini_coefficient gini
coefficient is based on the following steps/principles per feat:
calculate average expression per cluster
calculate detection fraction per cluster
calculate gini-coefficient for av. expression values over all clusters
calculate gini-coefficient for detection fractions over all clusters
convert gini-scores to rank scores
for each feat create combined score = detection rank x expression rank x expr gini-coefficient x detection gini-coefficient
for each feat sort on expression and detection rank and combined score
As a results “top gini” feats are feats that are very selectivily expressed in a specific cluster, however not always expressed in all cells of that cluster. In other words highly specific, but not necessarily sensitive at the single-cell level.
To perform differential expression between custom selected groups of cells you need to specify the cell_ID column to parameter cluster_column and provide the individual cell IDs to the parameters group_1 and group_2
By default group names will be created by pasting the different id names within each selected group. When you have many different ids in a single group it is recommend to provide names for both groups to group_1_name and group_2_name
Value¶
data.table with marker feats