call_fdr: call_fdr

Description Usage Arguments Value Examples

View source: R/call_fdr.r

Description

Calculate FDR-adjusted p-values.

Usage

1
call_fdr(whole_re, thres_tr = 10, method = 'BH')

Arguments

whole_re

A list of the objects obtained from sharpr2 for each chromosome.

thres_tr

The threshold for the size of tiled reigons used for calculate FDR-adjusted p-values. The default value is 10.

method

The method for calculating FDR-adjusted p-values. See the function 'p.adjust' for more details abount the method. The default is 'BH'.

Value

gfdr: a result table (data.frame) containing FDR-adjusted p-values, chromosome, region, the size and the index of the tiled region it is located.

Examples

1
2
3
data(hidra_ex)
whole_re <- sharpr2(hidra_ex, l_min = 150, l_max = 600, f_dna = 5, f_rna = 0, sig=FALSE)
call_fdr(list(whole_re))

sharpr2 documentation built on May 2, 2019, 2:45 p.m.