Skip to content

The survdigitzerR digitizes published KM curves and extracts survival times and events to be used as input to a digitization algorithm to generate pseudo individual patient level data. The survdigitzeR package is currently under development.

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

Pechli-Lab/SurvdigitizeR

Repository files navigation

SurvdigitizeR

SurvdigitizeR is an R package that automates the extraction of survival probabilities from Kaplan-Meier (KM) curves in JPEG or PNG format. It simplifies the process of digitizing KM curves, which is typically time-consuming and prone to error when done manually. This package provides an efficient and accurate way to digitize KM curves.

Installation

You can install the released version of SurvdigitizeR from github.

# Install development version from GitHub
devtools::install_github("Pechli-Lab/SurvdigitizeR")

Or by opening the folder encompassing this project.

library(devtools)
install()

Example

This is a basic example digitizing the survival curve found in the vignettes folder.

library(SurvdigitizeR)
library(here)

survival_digitize(img_path = here("vignettes","KMcurve.png"),
                                  num_curves = 2,
                                  x_start = 0,
                                  x_end = 10,
                                  x_increment = 1,
                                  y_start = 0,
                                  y_end = 1,
                                  y_increment = 0.25,
                                  y_text_vertical =  T,
                                  censoring = F)

This R package was developed with the support of CADTH.

Publication Information and How to Cite Us

We appreciate your interest in SurvdigitizeR. If you use SurvdigitizeR in your research, please cite our paper to help others find and benefit from our work.

Authors:

Jasper Zhongyuan Zhang, Juan David Rios, Tilemanchos Pechlivanoglou, Alan Yang, Qiyue Zhang, Dimitrios Deris, Ian Cromwell & Petros Pechlivanoglou

Link to the paper

SurvdigitizeR: an algorithm for automated survival curve digitization

Citation:

Jasper Zhongyuan Zhang, Juan David Rios, Tilemanchos Pechlivanoglou, Alan Yang, Qiyue Zhang, Dimitrios Deris, Ian Cromwell & Petros Pechlivanoglou. "SurvdigitizeR: an algorithm for automated survival curve digitization". BMC Medical Research Methodology, volume 24, Article number: 147 (2024). https://doi.org/10.1186/s12874-024-02273-8

Bibtex

For those who use BibTeX to manage their references, here is the citation in BibTeX format:

@article{zhang2024survdigitizer,
  title={SurvdigitizeR: an algorithm for automated survival curve digitization},
  author={Zhang, Jasper Zhongyuan and Rios, Juan David and Pechlivanoglou, Tilemanchos and Yang, Alan and Zhang, Qiyue and Deris, Dimitrios and Cromwell, Ian and Pechlivanoglou, Petros},
  journal={BMC Medical Research Methodology},
  volume={24},
  number={1},
  pages={147},
  year={2024},
  publisher={BioMed Central},
  doi={10.1186/s12874-024-02273-8}
}

About

The survdigitzerR digitizes published KM curves and extracts survival times and events to be used as input to a digitization algorithm to generate pseudo individual patient level data. The survdigitzeR package is currently under development.

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages