exportEventFile: File exporter

View source: R/exporters.R

exportEventFileR Documentation

File exporter

Description

Export Reactome pathway diagrams in SBGN or SBML format.

Usage

exportEventFile(
  id,
  format = c("sbgn", "sbml"),
  writeToFile = TRUE,
  file = NULL
)

Arguments

id

a stable or db id of an Event (Pathway or Reaction)

format

either in "sbgn" (SBGN, Systems Biology Graphical Notation) or "sbml" (SBML, Systems Biology Markup Language)

writeToFile

If set to TRUE, the returned data would be written into a file. If file=NULL, the output file will be automatically saved into the working directory and named based on the id and format

file

full path of the output file

Value

a character object with the content of SBGN/SBML for a given id, or a SBGN/SMBL file saved into the specified path. If the output is empty character or list, please check on ContentService or contact HelpDesk help@reactome.org.

See Also

Other exporter: exportImage()

Examples

exportEventFile("R-HSA-432047", "sbgn", writeToFile=FALSE)
## Not run: exportEventFile("R-HSA-68616", "sbml", file="orc.assembly.sbml")

reactome/ReactomeContentService4R documentation built on May 1, 2023, 5:33 a.m.