sbgnNodes {SBGNview} | R Documentation

## Extract glyph information

### Description

This function will extract node information such as complex members, compartment members, node class, nodes with state variables etc.

### Usage

    sbgnNodes(input.sbgn, output.gene.id.type = NA,
      output.cpd.id.type = NA, database = NA, species = NA,
      show.ids.for.multiHit = NULL,
      SBGNview.data.folder = "./SBGNview.tmp.data",
      sbgn.dir = "./SBGNview.tmp.data")

### Arguments

`input.sbgn` | A character string. required. The path to input SBGN-ML file.
`output.gene.id.type` | A character string. The desired output gene ID type. It only works when the SBGN-ML file is from one of these databases: "MetaCyc" and "pathwayCommons". Currently, only "macromolecule" glyphs are supported. Please check `data("mapped.ids")` for the types accepted. If omitted, the output IDs are the oritinal IDs in the SBGN-ML file.
`output.cpd.id.type` | A character string. The desired output compound ID type. It only works when the SBGN-ML file is from one of these databases: "MetaCyc" and "pathwayCommons". Currently, only "simple chemical" glyphs are supported. Please check `data("mapped.ids")` for the types accepted. If omitted, the output IDs are the oritinal IDs in the SBGN-ML file.
`database` | A character string. If the SBGN-ML file is from one of these databases: "MetaCyc" and "pathwayCommons", this parameter should be set to the corresponding string. For these two databases, this function can output other ID types instead of the original IDs in the SBGN-ML files. Otherwise, the output IDs are the oritinal IDs in the "id" attribure in the "glyph" element.
`species` | A character string. Only output IDs from this particular species. It only works when the SBGN-ML file is from one of these databases: "MetaCyc" and "pathwayCommons". Please check data("supported.species") for supported species. If omitted, the function will output IDs from all species.
`show.ids.for.multiHit` | Vector
`SBGNview.data.folder` | A character string. The path to a folder that will hold download ID mapping files and pathway information data files. The data can be reused once downloaded.
`sbgn.dir` | A character string. The path to a folder that will hold download SBGN-ML files, if the input.sbgn are IDs of pre-collected SBGN-ML files.

### Details

The following glyph information is extracted: complex members, compartment members,submap members, node class, nodes with state variables, class of state variables, edges with cardinality, nodes with ports, "source and sink" nodes, process nodes.
When trying to output other ID types, sometimes multiple output IDs are mapped to one glyph. In this situation, the IDs are concatenated by "; " to represent the glyph.

### Value

A list, containing extracted glyph information.

### Examples

     data(mapped.ids)
     data(sbgn.xmls)
     data(pathways.info)
    node.list = sbgnNodes(
                           input.sbgn = "P00001",
                           output.gene.id.type = "ENTREZID",
                           output.cpd.id.type = "CompoundName",
                           species = "hsa"
                        )

[Package SBGNview version 1.2.0 Index]