reduceWiki: reduceWiki

Description Usage Arguments Value Examples

View source: R/reduceWiki.R

Description

Returns all gene IDs of a single wikipathway of interest. This function is recommended to be used after a signalling pathway of interest is found.

Usage

1
reduceWiki(MAE, path_data, stringWiki = '')

Arguments

MAE

MultiAssayExperiment which will store the results of reduceWiki. It is recommended to use the same MAE which stores the data from dloadGmt/ gmtEnsembl.

path_data

Dataframe with wikipathway IDs, gene IDs and pathway names from either the dloadGmt or gmtEnsembl functions. These will be found as assays within the MAE used in the dloadGmt or gmtEnsembl functions.

stringWiki

Full name of the wikipathway of interest. Make sure to spell this correctly. Each wikipathway can only be added once to the same MAE object.

Value

A dataframe that only contains information about the wikipathway of interest. Output will be stored as an assay in the input MAE.

Examples

1
2
3
4
5
6
7
8
MAE <- MultiAssayExperiment(list(path_data = data.frame(
                        "wpid" = c(rep("WP571", 6)),
                        "gene" = c(16175, 12370,26419, 19249, 19645, 18479),
                        "name" = c(rep("Fas pathway and Stress induction of HSP regulation",
                        6)))))

MAE <- reduceWiki(MAE, path_data = assay(MAE, 1),
                 stringWiki = 'Fas pathway and Stress induction of HSP regulation')

TimiRGeN documentation built on April 17, 2021, 6:03 p.m.