
Get the ADT feature info
get_adt_feature_info.RdReturns the number of cells expressing a given ADT
Examples
# number of cells expressing each protein
adt <- generate_single_cell_test_data_adt()
cell_info <- stats::setNames(
seq_len(nrow(adt$counts)),
rownames(adt$counts)
)
adt_clr <- new_adt_counts_clr(adt$counts, cell_info = cell_info)
head(get_adt_feature_info(adt_clr))
#> feature_idx feature_id nnz
#> <int> <char> <num>
#> 1: 1 protein_01 988
#> 2: 2 protein_02 963
#> 3: 3 protein_03 986
#> 4: 4 protein_04 721
#> 5: 5 protein_05 978
#> 6: 6 protein_06 944