calculate_post: Finish calculating overlap statistics

Description Usage Arguments Value Examples

View source: R/process.R

Description

Finish calculating overlap statistics

Usage

1
calculate_post(stats_pre, input_size, universe)

Arguments

stats_pre

value from calculate_pre

input_size

number of genes in input

universe

number of genes in universe

Value

tibble: overlap statistics

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
anno_path <- system.file("extdata", "ex_anno.csv", package = "glacier")
data_path <- system.file("extdata", "ex_data.csv", package = "glacier")
anno <- import_annotations(anno_path, ",", TRUE, c(2, 4), 5)
data <- import_database(data_path, ",", FALSE, c(2, 4), 0)
info <- anno[c("name", "info")]

anno_proc <- process_annotations(anno, info, "file")
data_proc <- process_database(data, "Not assigned", "Not assigned")
input <- process_input_text("FCN1 0.1 FTL 0.8 CLU 0.05")
calc_pre <- calculate_pre(input, anno_proc$annos, anno_proc$gs_annos,
                          data_proc$gs_genes)
calc <- calculate_post(calc_pre$stats_pre, nrow(input), 10000)

## End(Not run)

lilin-yang/glacier documentation built on Oct. 3, 2020, 8:06 a.m.