getEnrichment: This function executes the enrichment analysis

Description Usage Arguments Details Value Examples

View source: R/functions.R

Description

This function will analyze which terms are enriched for a given set of interest at the given abstraction level. A list of all terms in the set will be returned together with counts and p-values for enrichment.

Usage

1
2
getEnrichment(set_of_interest, abstraction = getAbstractionLayer(c(4, 7)),
  threshold = 0.1, filter = c(), adjust = FALSE)

Arguments

set_of_interest

The set of articles for a given set of interest (e.g., a drug, several drugs, a drug class).

abstraction

The abstraction layer object for specified abstraction level.

threshold

Only terms with p-values below threshold are returned.

filter

Instead for all terms in the set of interest only for the specified terms enrichment will be calculated.

adjust

If set to TRUE, conditional pvalues will be calculated that adjust for known dependencies among terms.

Details

Intersects set of interest with MeSH annotation terms, aggregates terms to specified abstraction level, calculates enrichment for these terms against the general background set (all MEDLINE). All terms that are enrichend (below a given threshold, default = 0.1) will be returned. If filter is set, from all enriched terms only those in the filter set are returned. If the adjust flag is set, enriched terms will be checked for known dependencies based on pairwise conditional hypergeometric test among all enriched terms. This might take considerably longer than the unadjusted EA.

Value

Table of enriched terms for given set of interest ordered by p-value.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
{

  library("GEA")
  
  drugs <- Drugs("drugs_ATC_MEDLINE_360k.txt")
  events <- AdverseEvents("manifestations_MEDLINE_360k.txt")
  abs710    <- getAbstractionLayer(drugs,events,c(7,10))
  
  getEnrichment(drugs[ code== "C01EB03" ,] , abs710)$annotation_profile
}

winnenbr/GEA documentation built on May 4, 2019, 6:32 a.m.