get_pathways_annotations: Get Pathways functional annotations

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Get functional annotation of the pathways, either for a particular annotation or a stored one.

Usage

1
2
get_pathways_annotations(pathway_names, metaginfo, dbannot,
  collapse = FALSE)

Arguments

pathway_names

Character vector of the names of the pathways

metaginfo

Pathways object

dbannot

Either a string indicating which precomputed annotation to use ("uniprot" for Uniprot Keywords or "GO" for Gene Ontology terms), or a dataframe with the annotation of the genes to the functions. First column are gene symbols, second column the functions.

collapse

Boolean, whether to collapse all functions of the same path in a single character string.

Value

2-columns matrix with the annotations of each pathway ID in the annotation dbannot.

Examples

1
2
3
4
5
6
pathways <- load_pathways(species = "hsa", pathways_list = c("hsa03320",
"hsa04012"))
pathway_names <- c("P-hsa03320-37", "P-hsa03320-61", "P-hsa03320-46",
"P-hsa03320-57", "P-hsa03320-64", "P-hsa03320-47", "P-hsa03320-65")
## Not run: get_pathways_annotations(pathway_names, pathways, "GO")
get_pathways_annotations(pathway_names, pathways, "uniprot")

hipathia documentation built on Nov. 8, 2020, 7:52 p.m.