View source: R/download.utilities.R
loadMappingTable | R Documentation |
This function generates the ID mapping table between input and output ID types. If provided a vector of input IDs (limit.to.ids argument), the function will output mapping table only containing the input IDs. Otherwise, the function will output all IDs of input and output types (restricted to a species if working on gene types and specified the 'species' parameter). This function will check if a mapping table exists in local folder ('SBGNview.data.folder' argument), SBGNview.data package, and SBGNhub. If no mapping table is found in these locations, a mapping table is generated using Pathview and saved to path specified by 'SBGNview.data.folder' argument.
loadMappingTable( input.type = NULL, output.type = NULL, species = NULL, mol.type = NULL, limit.to.ids = NULL, SBGNview.data.folder = "./SBGNview.tmp.data" )
input.type |
A character string. Gene or compound ID type |
output.type |
A character string. Gene or compound ID type |
species |
A character string. Three letter KEGG species code. |
mol.type |
A character string. Either 'gene' or 'cpd'. |
limit.to.ids |
Vector. Molecule IDs of 'input.type'. |
SBGNview.data.folder |
A character string. Default: "./SBGNview.tmp.data". The path to a folder that will hold downloaded ID mapping files and pathway information data files. |
A list containing the mapping table.
data(mapped.ids) entrez.to.pathwayCommons <- loadMappingTable(input.type = 'ENTREZID', output.type = 'pathwayCommons', species = 'hsa', mol.type = 'gene')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.