Description Usage Arguments Author(s) References Examples
This function calculates replication stress-related prognostic index (PIRS) for HBV-associated HCC patients, and estimates the enrichment of 21 replication stress signatures.
1 2 3 4 5 6 7 8 9 10 11 |
expr |
A numeric expression matrix with row features and sample columns. |
scaleFlag |
A logic value to indicate if the expression data should be further scaled. FALSE by default. |
centerFlag |
A logic value to indicate if the expression data should be further centered. TRUE by default. |
doplot |
A logic value to indicate whether to generate heatmap of replication stress signatures and PIRS score; FALSE by default. |
fig.path |
A string value to indicate the output path for storing the heatmap. |
fig.name |
A string value to indicate the name of the heatmap. |
enrich |
A string value to indicate the method for single-sample enrichment analysis. Allowed values contain c('gsva', 'ssgsea', 'zscore', 'plage'); 'gsva' by default. |
width |
A numeric value to indicate the relative width for each cell in the heatmap; 1 by default. |
height |
A numeric value to indicate the relative height for each cell in the heatmap; 4 by default. |
Xiaofan Lu
Dreyer, SB, Upstill-Goddard, R, Paulus-Hock, V, Paris, C, Lampraki, E-M, Dray, E, et al. (2021). Targeting DNA Damage Response and Replication Stress in Pancreatic Cancer. Gastroenterology 160: 362-377.e313.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | library(hccPIRS)
load(system.file("extdata", "tpm.demo.RData", package = "hccPIRS", mustWork = TRUE)) # load example data
res <- hccPIRS(expr = tpm.demo,
scaleFlag = FALSE,
centerFlag = FALSE,
doplot = TRUE,
fig.path = getwd(),
fig.name = "heatmap of replication stress",
enrich = "gsva",
width = 6,
height = 4)
pirs <- res$pirs # extract normalized PIRS score for each sample
print(pirs)
rsMat <- res$RS.score # extract enrichment score for replication stress signatures
rsMat[1:21, 1:3]
res$hm # show the heatmap
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.