filter_expression_table {scFeatureFilter}R Documentation

Filter binned expression matrix

Description

Takes a binned expression table (the output of bin_scdata), a bin number (usually the output of determine_bin_cutoff) and returned a filtered expression table or matrix.

Usage

filter_expression_table(bined_table, bin_cutoff, as_matrix = FALSE)

Arguments

bined_table

A tibble, usually the output of bin_scdata.

bin_cutoff

the number of the first bin to be filtered out. Can be the output of determine_bin_cutoff).

as_matrix

A boolean. Should the return be a tibble (FALSE, the default) or a matrix (TRUE).

Value

A tibble or a matrix depending on the value of as_matrix

See Also

bin_scdata, determine_bin_cutoff

Examples

myData <- tibble::data_frame(
    bin = rep(c(1, 2, 3), each = 3),
    mean = 9:1,
    sd = runif(9),
    cv = runif(9),
    cell1 = 8:0 + runif(9),
    cell2 = 8:0 + runif(9)
)
filter_expression_table(myData, bin_cutoff = 2)
filter_expression_table(myData, bin_cutoff = 3)


[Package scFeatureFilter version 1.12.0 Index]