filter_expression_table: Filter binned expression matrix

Description Usage Arguments Value See Also Examples

View source: R/filter_expression_table.R

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

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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)

scFeatureFilter documentation built on Nov. 8, 2020, 7:49 p.m.