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

Description Usage Arguments Value

Description

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

Usage

1
filter_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


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