reSample: Compute enrichment analysis on an Enrichment object

Description Arguments Value Examples

Description

After initFiles and readEnrichment has been run. reSample computes a statistic value and a p-value for each chromosomes and for the whole genome.

Arguments

object

An object to be updated. It is intended, an object returned by the readEnrichment function.

nSample

The number of resampling done by reSample for p-values computation (minimum is 100).

empiricPvalue

Compute PValue based on the null distribution (FALSE). If TRUE (default), the empirical p-values are computed instead.

sigThresh

Statistical threshold for signal (e.g.,0.05 for a given GWAS signal) used to compute an Enrichment Ratio.

MAFpool

Either a numeric vector giving the breaks points of intervals into which SNP's MAF (Minor Allele Frequency) is to be split.

onlyGenome

Compute resampling step for all chromosomes (default TRUE).

Value

Return the object given in argument, updated by the resampling results.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
if (interactive()) {
  data(toyEnrichment)
  reSample(
    object = toyEnrichment,
    nSample = 10,
    empiricPvalue = TRUE,
    MAFpool = c(0.05, 0.10, 0.2, 0.3, 0.4, 0.5),
    onlyGenome = TRUE
  )
  toyEnrichment
}

mcanouil/snpEnrichment documentation built on Sept. 19, 2021, 1:21 a.m.