Skip to contents

marker selection from reference matrix

Usage

ref_marker_select(mat, cut = 0.5, arrange = TRUE, compto = 1)

Arguments

mat

reference matrix

cut

an expression minimum cutoff

arrange

whether to arrange (lower means better)

compto

compare max expression to the value of next 1 or more

Value

dataframe, with gene, cluster, ratio columns

Examples

ref_marker_select(
    cbmc_ref,
    cut = 2
)
#> # A tibble: 472 × 3
#>    gene  cluster ratio
#>    <chr> <chr>   <dbl>
#>  1 250   B       0.199
#>  2 255   B       0.221
#>  3 159   B       0.249
#>  4 106   B       0.288
#>  5 167   B       0.293
#>  6 44    B       0.359
#>  7 116   B       0.406
#>  8 153   B       0.436
#>  9 104   B       0.484
#> 10 64    B       0.553
#> # ℹ 462 more rows