find.pathways: Retrieve pathways from keywords

Description Usage Arguments Details Value


This function searches for pathways by input keywords.


find.pathways(keywords = NULL, keywords.logic = "or",
  keyword.type = "", org = NULL,
  pathway.completeness = NULL, = c("exact.match",
  "jaccard", "")[1], = "./")



A character string or vector. The search is case in-sensitive.


A character string. Options are "and" or "or". This will tell the function if the search require "all" or "any" of the keywords to be present. It only makes difference when keyword.type is "".


A character string. Either "" or one of the ID types in data("mapped.ids")


A character string. The KEGG species code.


Numeric. The returned pathways need to meet this criteria: completeness in the species(parameter "org") should be larger than this value. Currently it only applies to "pathwayCommons" pathways. Because pathwayCommons only annotated human pathways, we mapped pathwayCommons' nodes to other species using KEGG ortholog annotation. As a result, not all of the nodes have corresponding genes in another species. We call the percentage of mapped nodes the "coverage or completeness" in the species. If "pathway.completeness" is provided, the function will use this single cutoff for different pathways. If it is not provided, the function will use pre-generated pathway-specific completeness cutoff, that is: use different cutoffs for different pathways. This cutoff is selected using the following approach: 1. A pathway has different completeness in different species thus form a completeness vector across all species (vector C) . 2. Use a completeness cutoff we can define whether this pathway "exists" in a species, thus form a label vector E (a pathway "Exist" or "not Exist" across all species). 3. Use one way ANOVA to calculate F statistic of completeness between the two groups ("Exist" or "not Exist"), thus one cutoff will have one F statistic. 4. Try different cutoffs(unique completeness values in vector C) and select the one with the largest F statistic, i.e. the cutoff the can maximize the difference between Exist" and "not Exist" groups.

A character string. How to match molecular names.

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.


If "keyword.type" is "" (default), this function will search for the presence of any keyword in the column of data( The search is case in-sensitive. If "keyword.type" is one of the identifier types and "keywords" are corresponding identifiers, this function will return pathways that include nodes mapped to input identifiers. "org" and "pathway.completeness" are used to filter pathways by their completeness is a species. We mapped KEGG ortholog proteins from other species to pathwayCommons' human pathway nodes. Therefore, each pathway has different coverage or completeness in another species. When omics gene data is from a paticular species, "pathway.completeness" can give some information about how confident this pathway exists in the species.


A dataframe. Contains information of pathways found.

chemokine/OmicsSBGN documentation built on June 27, 2019, 7:52 p.m.