filter_gxs_expdata: helper function to filter gxs expdata more efficiently than...

Description Usage Arguments Value Note

Description

helper function to filter gxs expdata more efficiently than can be done using data.frame tools

Usage

1
filter_gxs_expdata(df, fun = function(x) {     max(x) > 0 }, trans = NULL)

Arguments

df

(tbl_df or data.frame) GxS expression data with a column '_GENE'

fun

(function) optional function to be applied to each row (GENE) of expression data returns a boolean value (TRUE: keep, FALSE: discard)

trans

(function) optional transformation to apply to expression data AFTER filtering, for convenience

Value

filtered df (tbl_df) containing filtered and/or transformed GxS expression data

Note

Default behavior with both fun & trans NULL is to transform df to matrix & back This is retained for purposes of performance testing


hammerlab/rinfino documentation built on May 27, 2019, 8:45 a.m.