MMRFVariant_SurvivalKM_Single: MMRFVariant_Survival_Single

View source: R/Private.R

MMRFVariant_SurvivalKM_SingleR Documentation

MMRFVariant_Survival_Single

Description

Creates a survival plot from MMRF-RG patient clinical data using survival library. It uses the fields D_PT_deathdy, D_PT_PRIMARYREASON and D_PT_lstalive columns for groups.

Usage

MMRFVariant_SurvivalKM_Single(
  patient,
  trt,
  variant.ann,
  SNP,
  FilterBy = NULL,
  legend = "Legend",
  labels = NULL,
  xlim = NULL,
  main = "Kaplan-Meier Survival Curve",
  ylab = "Probability of survival",
  xlab = "Time since diagnosis (days)",
  color = NULL,
  height = 5,
  width = 12,
  dpi = 300,
  pvalue = TRUE,
  conf.range = TRUE
)

Arguments

patient

is the data.frame of the patient clinical data downloaded from MMRF-Commpass Researcher Gateway (i.e. MMRF_CoMMpass_IA15_PER_PATIENT file) and imported into environment.

trt

is the data.frame of the patient clinical data (i.e. treatment-response) downloaded from MMRF-Commpass Researcher Gateway (i.e. MMRF_CoMMpass_IA15_STAND_ALONE_TRTRESP file) and imported into environment.

variant.ann

is the data.frame of the annotated variants downloaded from MMRF-Commpass Researcher Gateway (i.e. MMRF_CoMMpass_IA15a_All_Canonical_Variants file) and imported into environment.

legend

Legend title of the figure

labels

labels of the plot

xlim

x axis limits e.g. xlim = c(0, 1000). Present narrower X axis, but not affect survival estimates.

main

main title of the plot

ylab

y axis text of the plot

xlab

x axis text of the plot

color

Define the colors/Pallete for lines.

height

Image height

width

Image width

dpi

Figure quality

pvalue

show p-value of log-rank test

conf.range

show confidence intervals for point estimates of survival curves.

Listvariant

is the list of the variants to analyze.

filename

The name of the pdf file.

Value

Survival plot


marziasettino/MMRFVariant documentation built on March 28, 2023, 3:16 p.m.