shared_annotation_enrichment: Calculate a Z score for enrichment for shared annotations

Description Usage Arguments Value

View source: R/shared_annotation_enrichment.R

Description

Calculate the enrichment among a set of interacting proteins for shared annotations, relative to a rewired version of the same network.

Usage

1
2
shared_annotation_enrichment(network, shared, bootstraps = 100, seed = 0,
  colname = "shared")

Arguments

network

a data frame containing interactions between protein pairs in the first two columns

shared

a matrix denoting the number of shared annotations between each protein pair

bootstraps

the number of times to rewire the network in order to calculate the Z score; defaults to 100

seed

the number to seed the rewiring algorithm with; defaults to zero

colname

the column name to assign to the shared annotations column created in the network data frame; defaults to "shared"

Value

a list with three objects: the proportion of interacting protein pairs that share GO terms in the observed network; the proportions in each randomized network; and the Z score for the enrichment


skinnider/flavin documentation built on May 6, 2019, 10:49 a.m.