Description Usage Arguments Details Value References See Also
A collection of functions to download or calculate network data for biological interaction (or relatedness, co-occurence etc). The getInteractions.GO function uses functionality from the GOSim source code by Holger Froehlich (see references). Parts of that code have been included and adapted for parallelization.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | getInteractions.path(
filter.ids = "",
biomart.config = biomartConfigs$hsapiens,
ds = bm.init.path(biomart.config),
toFile = "postgwas.interaction.download"
)
getInteractions.proteincomplex(
filter.ids = "",
biomart.config = biomartConfigs$hsapiens,
ds = bm.init.proteincomplex(biomart.config),
toFile = "postgwas.interaction.download"
)
getInteractions.domains(
filter.ids = "",
biomart.config = biomartConfigs$hsapiens,
filter.type = biomartConfigs$hsapiens$gene$filter$name,
ds = bm.init.genes(biomart.config),
min.occurence = NULL,
max.occurence = if(length(filter.ids) < 20)
NULL
else
length(filter.ids) / (logb(length(filter.ids), 3) +1),
toFile = "postgwas.interaction.download"
)
getInteractions.GO(
filter.ids,
GOpackagename = "org.Hs.eg.db",
ontology = "BP",
toFile = "postgwas.interaction.download",
cores = 1,
...
)
|
filter.ids |
vector. A list of identifiers that that are used to retrieve network data. The type of IDs is specified by additional parameters (can also be symbols). See details. |
biomart.config |
list. Specifies field names for biomart data retrieval. See |
filter.type |
character. A biomart filter field name, that specifies the type of IDs listed in the argument |
ds |
object. Biomart dataset to use. Is initialized automatically, but can also be explicitely passed to reduce runtime and network load in multiple calls. |
min.occurence |
numeric(1). Specifies the minimum total number of occurences for a domain to be considered for interaction. This can occasionally be useful to reduce the specifity of modules and complexity of the network., i.e. only domains with common functions will form modules. When NULL, this is deactivated (default). |
max.occurence |
numeric(1). Specifies the maximal total number of occurences for a domain to be considered for interaction. This can be used to avoid very common domains to create giant modules while increasing the functional specifity of modules. When NULL, this is deactivated. Is by default a log fraction of the number of vertices. |
GOpackagename |
character(1). Has to be the package name of an installed GO annotation package (e.g. org.Hs.eg.db, see also http://www.bioconductor.org/packages/2.10/data/annotation/). GO term information from this package will be used for similarity calculation. |
ontology |
character(1). Can be "BP", "MF" and "CC". Is passed to the |
toFile |
character(1). A file/pathname where the downloaded interaction data is saved in tab-delimited format. When NULL, does not write a resultfile. |
cores |
integer. The number of parallel processes to use (cores = 1 uses no parallelization). |
... |
Optional arguments that are passed to the |
Uses biomart (REACTOME) to determine pathway annotations for each gene. Common pathways between genes form interactions. Uses Entrez gene IDs by default.
Uses biomart (REACTOME) to determine protein interactions (from known complexes) between query genes. Uses Entrez gene IDs by default.
Uses biomart to annotate (superfamily) domains to each gene. The edges are formed by common domains between proteins. Uses gene symbols by default.
Calculates relations between the query genes based on similarity of their GO term architecture (using the GOSim package). This is time-intensive and takes seveal hours for ~1000 genes. Note that interactions at arbitrary strength are returned (consider 'weight' column), these should manually be filtered for a minimum similarity of e.g. weight > 0.75. GO term retrieval depends on bioconductor annotation packages. The human (org.Hs.eg.db) package is installed by default. When switching to a different organism by installing the appropriate package (http://www.bioconductor.org/packages/2.10/data/annotation/), the type of IDs used may change. The IDs used are then specified by the annotation package. See the example section of gwas2network how to overcome such an ID problem exemplified with yeast.
A data frame with columns
"geneid.x", "geneid.y" and "label". The first two columns contain Entrez gene IDs by default, and the third the shared pathway names.
"geneid.x", "geneid.y" and "label". The first two columns contain Entrez gene IDs by default, and the third the shared protein complex names.
"geneid.x", "geneid.y" and "weight". The first two columns contain gene IDs / names according to the annotation package configuration, currently entrez gene IDs for the human package org.Hs.eg.db. The weight column contains the similarity measure between the genes calculated by GOSim.
returns columns "genename.x", "genename.y", "geneid.x", "geneid.y", "domain.name", the latter specifying the shared domain that defines the edge, and IDs and names according to the biomartConfig used.
The GOSim source code used by the getInteractions.GO function is described in the following publication: Holger Froehlich, N. Speer, A. Poustka, Tim Beissbarth (2007). GOSim - An R-Package for Computation of Information Theoretic GO Similarities Between Terms and Gene Products. BMC Bioinformatics, 8:166
The Reactome database used by the getInteractions.path function can be accessed at http://www.reactome.org
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.