View source: R/postTIPC_survival_analysis.R
Plotting heat-maps of TIPC metric clustering results of all k's unless it is
specified; using R package coxph
1 2 3 4 5 6 7 8 9 10 11 |
root_dir |
A directory path containing (1) the TIPC_metrics, i.e.
normalized TIPC metrics of all 5 directions output from
|
clustering_subfolder_nm |
A character string of sub-folder name
generated during |
one_k |
An integer specifying the cluster number selected for heat-map
plotting; otherwise all k's found under |
min_cluster_size |
An integer indicating the minimum size of TIPC cluster to be tested for survival analysis; default 10. |
method |
A character string indicating the method of survival analysis: univariate or multivariate. |
surv_data |
A data frame of size r rows x 2 (or more) columns: containing r tumors and minimum 2 variables with column names 'time' (numeric) and 'cens' (integer), any additional columns are used as covariates (factors) if multivariate analysis is chosen. NOTE: rownames containing tumor_ids. |
ref_cluster_no |
An integer indicating the cluster id to be used as the reference, if unspecified (NULL) cluster of largest size will be used. |
all_ref_check |
A boolean indicating if multiple survival analyses are performed
using individual clusters as reference; if TRUE, it will overwrite |
KM_xlab |
A character string specifying the x-axis label of Kaplan-Meier curve |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.