Annotate Milo Neighborhoods with Cell Types
annotate_nhood.Rd
Annotates Milo neighborhoods with cell type information and filters neighborhoods based on abundance threshold.
Arguments
- sce_milo
A list containing a Milo object and a design matrix.
- da_results
A data frame of differential abundance results for the neighborhoods.
- celltype_var
Character string specifying the column in metadata containing cell type annotations.
- abundance_thresh
Numeric value specifying the minimum fraction threshold for a cell type to be considered dominant in a neighborhood. Default is 0.7.
- plot
Logical indicating whether to generate diagnostic plots. Default is TRUE.
Value
A list containing:
- milo
The updated Milo object.
- da_results
The annotated differential abundance results.
- design
The design matrix used for differential testing.