Skip to content

CPSM

Bioc current

CPSM: Cancer patient survival model

v1.4.0 · software · GPL-3 | file LICENSE

Release Lineage

Entered 3.21 · Apr 16, 2025

Current · Requires R 4.6

1.0 In 3 of 49 releases 3.23

Description

CPSM provides a comprehensive computational pipeline for predicting survival probability and risk groups in cancer patients. The package includes steps for data preprocessing, training/test split, and normalization. It enables feature selection using univariate survival analysis and computes a LASSO-based prognostic index (PI) score. CPSM supports the development of predictive models using various feature sets and offers a suite of visualization tools, including survival curves based on predicted probabilities, barplots for predicted mean and median survival times, KM plots overlaid with individual survival predictions, and nomograms for estimating 1-, 3-, 5-, and 10-year survival probabilities. This makes CPSM a versatile tool for survival analysis in cancer research.

Test coverage

Line coverage

Expression

Tests / Examples

Functions

11 11 exported

Complexity

12 avg / 25 max

Call network

11 nodes / 0 edges

Test coverage is not measured for Bioconductor packages; nodes fall back to a neutral fill.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

Code

Structure

Lines of code

18,655

Files

91

Compiled share

0%

Has compiled src

No

Language breakdown

R 3,113 (16.7%)Tests 216 (1.2%)Docs 14,227 (76.3%)Vignettes 1,099 (5.9%)

API

Exported functions

11

Internal functions

0

Recent export changes

v3.22+2 km_overlay_plot_f, predict_survival_risk_group_f
v3.21+9 Lasso_PI_scores_f, MTLR_pred_model_f, Nomogram_generate_f +6 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.07

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Roxygen coverage

100%

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.5

System requirements

C++ standard

License

GPL-3 | file LICENSE

License flags

SPDX valid, not OSI

History

Versions

3

First release

2025-04-15

Latest release

2026-04-28

Avg cadence

189 days

Cold removal rate

Dep drift

7

LOC over versions

v3.21: 16,298 LOCv3.22: 18,028 LOCv3.23: 18,655 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/bioc-code-metrics.

Documentation

Documentation
READMEYes · 3,302 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 67% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
99%
Return-value docs
100%
References docs
3%

Datasets

Bundled datasets · 22
NameClassRows × ColsAlso in
Key_Clin_feature_listdata.frame4 × 1No other package
Key_Clin_features_with_PI_listdata.frame4 × 1No other package
Key_PI_listdata.frame1 × 1No other package
Key_univariate_features_listdata.frame2,391 × 1No other package
Key_univariate_features_with_Clin_listdata.frame2,394 × 1No other package
New_datadata.frame176 × 2,025No other package
Test_Clindata.frame18 × 20No other package
Test_Norm_datadata.frame18 × 2,025No other package
Test_PI_datadata.frame18 × 57No other package
Test_Uni_sig_datadata.frame18 × 209No other package
Test_resultsdata.frame18 × 8No other package
Train_Clindata.frame158 × 20No other package
Train_Data_Nomogram_inputdata.frame158 × 34No other package
Train_Norm_datadata.frame158 × 2,025No other package
Train_PI_datadata.frame158 × 57No other package
Train_Uni_sig_datadata.frame158 × 209No other package
Train_resultsdata.frame158 × 8No other package
feature_list_for_Nomogramdata.frame6 × 1No other package
mean_median_survival_time_datadata.frame18 × 3No other package
survCurves_datadata.frame15 × 19No other package
test_FPKMdata.frame18 × 2,025No other package
train_FPKMdata.frame158 × 2,025No other package

All of CPSM's data objects

Topics

People

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("CPSM")
Kaur, H., Camphausen, K., Das, P., & Shankavaram, U. (2026). CPSM: CPSM: Cancer patient survival model (Version 1.4.0) [Computer software]. https://bioconductor.org/packages/CPSM

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for CPSM version 1.4.0 [Data set]. HJJB, LLC. Data release v2026-08-25. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy