annotations | R Documentation |
Protein and gene annotations about function, localization, expression, structure and other properties, from the https://omnipathdb.org/annotations endpoint of the OmniPath web service. Note: there might be also a few miRNAs annotated; a vast majority of protein complex annotations are inferred from the annotations of the members: if all members carry the same annotation the complex inherits.
annotations(proteins = NULL, wide = FALSE, ...)
proteins |
Vector containing the genes or proteins for whom annotations will be retrieved (UniProt IDs or HGNC Gene Symbols or miRBase IDs). It is also possible to donwload annotations for protein complexes. To do so, write 'COMPLEX:' right before the genesymbols of the genes integrating the complex. Check the vignette for examples. |
wide |
Convert the annotation table to wide format, which
corresponds more or less to the original resource. If the data comes
from more than one resource a list of wide tables will be returned.
See examples at |
... |
Arguments passed on to
|
Downloading the full annotations
dataset is disabled by default because the size of this data is
around 1GB. We recommend to retrieve the annotations for a set of proteins
or only from a few resources, depending on your interest. You can always
download the full database from
https://archive.omnipathdb.org/omnipath_webservice_annotations__recent.tsv
using any standard R or readr
method.
A data frame or list of data frames:
If wide=FALSE
(default), all the requested resources
will be in a single long format data frame.
If wide=TRUE
: one or more data frames with columns
specific to the requested resources. If more than one resources
is requested a list of data frames is returned.
annotation_resources
pivot_annotations
query_info
omnipath_query
annotated_network
annotations <- annotations(
proteins = c("TP53", "LMNA"),
resources = c("HPA_subcellular")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.