Description Public fields Methods
An object through which you can access several useful functions for your COMPASS analysis.
settings
The CompassSettings instance specifying the settings for this CompassAnalyzer instance.
new()
Initialize the CompassAnalyzer instance.
CompassAnalyzer$new(settings)
settings
The CompassSettings instance specifying the settings for this CompassAnalyzer instance.
NULL.
print()
Prints a human-readable representation of this CompassAnalyzer instance.
CompassAnalyzer$print(...)
...
Unused.
NULL.
repr()
Returns a human-readable representation of this CompassAnalyzer instance.
CompassAnalyzer$repr(...)
...
Unused.
An output.
conduct_wilcoxon_test()
Description.
CompassAnalyzer$conduct_wilcoxon_test( consistencies_matrix, group_A_cell_ids, group_B_cell_ids, ..., for_metareactions = TRUE )
consistencies_matrix
Either your CompassData instance's reaction_consistencies matrix, or its metareaction_consistencies matrix, depending on whether you want a table whose rows correspond to reactions or metareactions.
group_A_cell_ids
A character vector containing the IDs of the cells that constitute group A.
group_B_cell_ids
A character vector containing the IDs of the cells that constitute group B.
...
Unused.
for_metareactions
Whether the first argument is your reaction_consistencies matrix or your metareaction_consistencies matrix. This argument doesn't affect the contents of the returned tibble, but merely ensures that its column names are appropriate.
A tibble, where each row represents a Wilcoxon rank-sum test for whether a reaction or metareaction achieves a higher consistency among the group A cells than among the group B cells. It has the following columns: reaction_id or metareaction_id, wilcoxon_statistic, cohens_d, p_value, and adjusted_p_value.
get_umap_components()
Description.
CompassAnalyzer$get_umap_components( consistencies_matrix, ..., num_components = 2 )
consistencies_matrix
Either your CompassData instance's reaction_consistencies matrix, or its metareaction_consistencies matrix, depending on whether the high-dimensional representation of each cell should encapsulate the cell's reaction consistencies or its metareaction consistencies. In the former case the UMAP algorithm will find a num_components-dimensional embedding for each cell in (# reactions)-dimensional space, and in the latter case the UMAP algorithm will find a num_components-dimensional embedding for each cell in (# metareactions)-dimensional space.
...
Unused.
num_components
The number of UMAP components to calculate (i.e. the dimensionality of the embedding).
A tibble, where each row represents the low-dimensional UMAP embedding of a cell. It has the following columns: Your CompassSettings instance's cell_id_col_name, component_1, component_2, ..., component_num_components.
clone()
The objects of this class are cloneable with this method.
CompassAnalyzer$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.