Skip to contents

Print the unique values of a specified column (feature).

Usage

print_feature(sce_object, feature_colname)

Arguments

sce_object

SingleCellExperiment object generated by format_image_to_sce.

feature_colname

String of the specified column.

Value

A character vector is returned

Examples

feature_colname <- "Phenotype"
print_feature(SPIAT::simulated_image, feature_colname)
#> [1] "OTHER"                                       
#> [2] "Immune_marker1,Immune_marker2"               
#> [3] "Tumour_marker"                               
#> [4] "Immune_marker1,Immune_marker2,Immune_marker4"
#> [5] "Immune_marker1,Immune_marker3"