knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
# Load the package library(iPRISM)
Welcome to the vignette for the PRISM package. This document provides an overview of the package's functionalities, including basic usage examples and detailed explanations of the main functions. The PRISM package includes the core function for the paper named PRISM: Predicting Response to cancer Immunotherapy through Systematic Modeling.
The cor_plot
function generates a correlation plot between cell types and pathways, displaying correlation coefficients as a heatmap and significant correlations as scatter points.
# Read cell line and pathway information data(data.path, package = "iPRISM") data(data.cell, package = "iPRISM") # Draw the plot cor_plot(data1 = data.path, data2 = data.cell, sig.name1 = "path", sig.name2 = "cell")
The get_gsea_path
function constructs a multiplex network, performs random walk restart, and calculates gene scores. It then transforms the scores and applies GSEA using the provided gene sets.
# Load example data data(Seeds, package = "iPRISM") data(ppi, package = "iPRISM") data(path_list, package = "iPRISM") # Shrink pathway list to the top 2 pathways path_list <- path_list[1:5] # Perform GSEA result <- get_gsea_path(seed = Seeds, network = ppi, pathlist = path_list, gsea.nperm = 100) print(result)
The get_logiModel
function fits a logistic regression model as the paper highlighted, with an option for stepwise model selection.
# Load example data data(data_sig, package = "iPRISM") # Fit logistic regression model b <- get_logiModel(data.sig = data_sig, pred.value = pred_value, step = TRUE) summary(b)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.