interactions | R Documentation |
This is the primary interface to the PSICQUIC services, in which approximately thirty interaction providers return annotated molecular (often protein-protein) interactions in response to a standard query language ("MIQL" – the molecular interaction query language). This method is thus an R interface to MIQL, with several conveniences added.
In the most typical and basic use, one specifies a species and a gene symbol, and PSICQUIC returns a data.frame listing all of the interactions for that gene (or the protein it encodes) from all PSICQUIC providers, of all interaction types and all detection methods.
More focused queries are easily accomplished: all arguments (execpt for the PSICQUIC object the method dispatches on) are optional, and each specified argument limits the search space: to one or more genes, a publication identifier (typically a pubmed id), interaction types, a detection methods, and/or one or more species.
In principle you could obtain all interactions, of all types, from all providers, by using default values for all of the search-constraining arugments. But this would be very unwise! Highly specific or exploratory queries of modest scope are encouraged, as are bulk downloads using ftp directed at the providers' web sites for acquiring large interaction datasets.
## S4 method for signature 'PSICQUIC'
interactions(object,
id=NA,
species=NA,
speciesExclusive=TRUE,
type=NA,
provider=NA,
detectionMethod=NA,
publicationID=NA,
quiet=TRUE)
object |
a |
id |
one or more If multiple ids are supplied, then only interactions which occur between any two of the ids is returned. If only one id is supplied, all interactions are reported in which that id participates. |
species |
One or more |
speciesExclusive |
a |
type |
a |
provider |
a |
detectionMethod |
a |
publicationID |
a |
quiet |
a |
A data.frame with 16 columns, and one row for every interaction, described as an annotated A/B relationship, with self-describing column names.
Paul Shannon
providers, rawQuery, addGeneInfo IDMapper, interactionTypes, detectionMethods, speciesIDs
psicquic <- PSICQUIC()
providers(psicquic)
# query all providers for all known Myc interactions
tbl.1 <- interactions(psicquic, id="Myc", species="9606",
provider=providers(psicquic)[1:3])
# all Myc/EP400 interactions known to BioGrid
# make sure that BioGrid is currently available
if("BioGrid" %in% providers(psicquic))
tbl.2 <- interactions(psicquic, c("Myc", "EP400"), species="9606",
provider="BioGrid")
# or those between Myc and any other molecule, detected by
# the "pull down" proteomics technique and judged to be
# a "direct interaction"
tbl.3 <- interactions(psicquic, "Myc", species="9606",
detectionMethod="pull down",
type="direct interaction")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.