Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rba_reactome_analysis_import

Import Saved Analysis JSON to Reactome


Description

If you have a JSON file of analysis results (only obtained via rba_reactome_analysis_download with the result argument set to "results", or "results_gz"), you can import the results back to Reactome and retrieve a token.
This is useful when you want to use other Reactome services which require a token but you do not have a token or your token has been expired (i.e. more than 7 days passed from your analysis).

Usage

rba_reactome_analysis_import(input, input_format = NA, ...)

Arguments

input

A local file path or URL that points to your -optionally gzipped- JSON file.

input_format

(Optional) This function will automatically identify your provided input's format. But in case of unexpected issues or if you want to be explicit, set this argument to one of:

  • "file": If you provided a local file path pointing to the JSON file.

  • "url": If you provided a URL pointing to the JSON file.

...

rbioapi option(s). Refer to rba_options's arguments documentation for more information on available options.

Value

A list containing the new token and other information of your imported results.

Corresponding API Resources

"GET https://reactome.org/AnalysisService/import/"
"GET https://reactome.org/AnalysisService/import/form"
"GET https://reactome.org/AnalysisService/import/url"

References

  • Fabregat A, Sidiropoulos K, Viteri G, Forner O, Marin-Garcia P, Arnau V, D'Eustachio P, Stein L, Hermjakob H. Reactome pathway analysis: a high-performance in-memory approach. BMC bioinformatics. 2017 Mar;18(1) 142. doi: 10.1186/s12859-017-1559-2. PubMed PMID: 28249561. PubMed Central PMCID: PMC5333408.

  • Reactome Analysis Services API Documentation

See Also

Examples

## Not run: 
rba_reactome_analysis_import("c:/rbioapi/res.json")

## End(Not run)
## Not run: 
rba_reactome_analysis_import("https://qaz.com/res.json.gz")

## End(Not run)

rbioapi

User-Friendly R Interface to Biologic Web Services' API

v0.7.0
GPL-3
Authors
Moosa Rezwani [aut, cre, cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.