findHits: Find hits according to FDR threshold

Description Usage Arguments Value Examples

View source: R/fdr_funcs.R

Description

Find hits according to FDR threshold

Usage

1
findHits(fdr_df, alpha)

Arguments

fdr_df

data frame obtained from computeFdr

alpha

significance threshold, default is set to 0.1

Value

data frame of significant hits at FDR <= alpha

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data("simulated_cell_extract_df")
temp_df <- simulated_cell_extract_df %>% 
  filter(clustername %in% paste0("protein", 1:5)) %>% 
  group_by(representative) %>% 
  mutate(nObs = n()) %>% 
  ungroup 
example_out <- fitAndEvalDataset(temp_df)
example_null <- bootstrapNull(temp_df, B = 1)
fdr_df <- getFDR(example_out, example_null)
findHits(fdr_df, 0.1)

TPP2D documentation built on Nov. 8, 2020, 4:54 p.m.