calc_dnp_i: helper function to calculate dnp for one sample
Description
helper function to calculate dnp for one sample
Usage
calc_dnp_i(df, g, v_rm = NULL, keep_all = TRUE)
Value
same dataframe with dnp calculated for each gene.
Arguments
- df
dataframe with one cell line + log expression
- g
igraph object containing ppi info
- v_rm
passed to node_repression()
- keep_all
logical flag denoting if we should keep genes that we didn't calculate dnp for