rba_reactome_analysis {rbioapi} | R Documentation |
Reactome Over-Representation or Expression Analysis
Description
Using this function, you can perform Reactome Analysis In a convenient way. The Analysis Type will be chosen depending on your supplied input:
If you supply a vector or a single-columned table, "Over-Representation" analysis will be performed.
If you supply a multi-column table, with the first column being molecules identifiers and the rest being numeral expression values, "Expression" analysis will be performed.
See the details section for the accepted input types and format.
Usage
rba_reactome_analysis(
input,
input_format = NULL,
projection = TRUE,
interactors = FALSE,
species = NULL,
sort_by = "ENTITIES_PVALUE",
order = "ASC",
resource = "TOTAL",
p_value = 1,
include_disease = TRUE,
min = NULL,
max = NULL,
...
)
Arguments
input |
A vector, data frame, matrix or a local file path or URL that points to your data. See "Details section" for more information of how to organize and supply your input. |
input_format |
(Optional) This function will automatically identify your supplied input's format. But in case of unexpected issues or if you want to be explicit, set this argument to one of:
|
projection |
Logical (default = TRUE) Should non-human identifiers be projected to their human equivalents? (using Reactome orthology data) |
interactors |
Logical (default = FALSE) Should IntAct interaction data be used to increase the analysis background? |
species |
Numeric or Character: NCBI Taxonomy identifier (Human
is 9606), species name (e.g. "Homo sapiens") or Reactome DbId (e.g
Homo sapiens is 48887). See
|
sort_by |
Sort the result based on what column? available choices are: "NAME", "TOTAL_ENTITIES", "TOTAL_INTERACTORS", "TOTAL_REACTIONS", "FOUND_ENTITIES", "FOUND_INTERACTORS", "FOUND_REACTIONS", "ENTITIES_RATIO", "ENTITIES_PVALUE", "ENTITIES_FDR" or "REACTIONS_RATIO" |
order |
Sort Order. Can be either "ASC" (default) or "DESC". |
resource |
Filter results based on the resource. Default is "TOTAL", available choices are: "TOTAL", "UNIPROT", "ENSEMBL", "CHEBI", "IUPHAR", "MIRBASE", "NCBI_PROTEIN", "EMBL", "COMPOUND", "ENTITIES_FDR" or "PUBCHEM_COMPOUND". |
p_value |
Set a P value threshold. Only results with P value equal to or less than your supplied threshold will be returned. (default = 1, Meaning no P value filtering) |
include_disease |
Logical (default = TRUE) Should the disease pathways be included in the results? |
min |
(numeric) Minimum number of entities that a pathways should have to be included in the results. |
max |
(numeric) Maximum number of entities that a pathways should have to be included in the results. |
... |
rbioapi option(s). See |
Details
You can supply your table or vector input in numerous formats:
A R object which can be data frame, matrix or a simple vector.
A path to a local text file in your device that contains the molecules data. (The file should be formatted correctly, see below.)
A URL pointing to a text file on the web that contains the molecules data. (The file should be formatted correctly, see below.
If you supply a text file (as a local file path or URL), it should be
in TSV (Tab-Separated Values) format; Column names should start with "#"
character. Note that if you are providing the file for
"Over-Representation" analysis (i.e. Single columned-data) this header
line is optional and will be used as your 'Sample Name', otherwise it is
required.
Also, form the "summary" element in the function's output, you can see
how Reactome Interpreted your input and subsequently the type of analysis
that has been performed.
There is no strict criteria about the type of your molecules Identifiers,
Reactome will Map the IDs to it's internal database entities.
Nevertheless, You can check if all your identifiers has been found in
"identifiersNotFound" element in the function's output.
After Any Analysis, Reactome will associate a token to your analysis.
It can be later used to in function that requires the token (e.g to retrieve
the analysis results, download pdf).
Note that Reactome will store your token for only 7 days. You can
download your full results with
rba_reactome_analysis_download
, and re-import it anytime to
reactome (using rba_reactome_analysis_import
) to generate
a new token.
Value
List containing the results and information of your analysis. Note that you can use the token returned in the "summary" sub-list of the results (i.e. results$summary$token) to retrieve your results later or in other Reactome analysis functions.
Corresponding API Resources
"POST https://reactome.org/AnalysisService/identifiers/form"
"POST https://reactome.org/AnalysisService/identifiers/url"
"POST https://reactome.org/AnalysisService/identifiers/form/projection"
"POST https://reactome.org/AnalysisService/identifiers/url/projection"
References
Marc Gillespie, Bijay Jassal, Ralf Stephan, Marija Milacic, Karen Rothfels, Andrea Senff-Ribeiro, Johannes Griss, Cristoffer Sevilla, Lisa Matthews, Chuqiao Gong, Chuan Deng, Thawfeek Varusai, Eliot Ragueneau, Yusra Haider, Bruce May, Veronica Shamovsky, Joel Weiser, Timothy Brunson, Nasim Sanati, Liam Beckman, Xiang Shao, Antonio Fabregat, Konstantinos Sidiropoulos, Julieth Murillo, Guilherme Viteri, Justin Cook, Solomon Shorser, Gary Bader, Emek Demir, Chris Sander, Robin Haw, Guanming Wu, Lincoln Stein, Henning Hermjakob, Peter D’Eustachio, The reactome pathway knowledgebase 2022, Nucleic Acids Research, 2021;, kab1028, https://doi.org/10.1093/nar/gkab1028
Griss J, Viteri G, Sidiropoulos K, Nguyen V, Fabregat A, Hermjakob H. ReactomeGSA - Efficient Multi-Omics Comparative Pathway Analysis. Mol Cell Proteomics. 2020 Sep 9. doi: 10.1074/mcp. PubMed PMID: 32907876.
See Also
Other "Reactome Analysis Service":
rba_reactome_analysis_download()
,
rba_reactome_analysis_import()
,
rba_reactome_analysis_mapping()
,
rba_reactome_analysis_pdf()
,
rba_reactome_analysis_species()
,
rba_reactome_analysis_token()
Examples
## Not run:
rba_reactome_analysis(input = c("p53", "BRCA1", "cdk2", "Q99835", "CDC42"))
## End(Not run)
## Not run:
rba_reactome_analysis(input = "c:/rbioapi/genes.txt")
## End(Not run)
## Not run:
rba_reactome_analysis(input = "https://qazwsx.com/genes.txt")
## End(Not run)