Learn R Programming

pathfindR (version 1.3.0)

calculate_pw_scores: Calculate Pathway Scores for Each Subject

Description

Calculate Pathway Scores for Each Subject

Usage

calculate_pw_scores(pw_table, exp_mat, cases = NULL, plot_hmap = TRUE,
  ...)

Arguments

pw_table

a data frame that must contain the 3 columns below:

Pathway

Description of the enriched pathway

Up_regulated

the up-regulated genes in the input involved in the given pathway, comma-separated

Down_regulated

the down-regulated genes in the input involved in the given pathway, comma-separated

exp_mat

the gene expression/methylation matrix. Columns are samples and rows are genes. Column names must contain sample names and row names must contain the gene symbols.

cases

(Optional) A vector of sample names that are cases in the case/control experiment.

plot_hmap

Boolean value to indicate whether or not to draw the heatmap plot of the scores. (default = TRUE)

...

Additional arguments for `plot_scores` for aesthetics of the heatmap plot

Value

Matrix of pathway scores per sample. Columns are samples, rows are pathways. Optionally, displays a heatmap of this matrix.

Examples

Run this code
# NOT RUN {
score_matrix <- calculate_pw_scores(RA_output, RA_exp_mat, plot_hmap = FALSE)
# }

Run the code above in your browser using DataLab