knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
Author: Krishan Gupta
ORsurv - survival of patients using ors on TCGA data.
The developer version of the R package can be installed with the following R commands:
install_github("krishan57gupta/ORsurv")
This vignette uses a small simulated data, to demonstrate a standard pipeline. This vignette can be used as a tutorial as well.
Libraries need to be loaded before running.
library(ORsurv)
matrix_1=matrix(-499:500,100,10) rownames(matrix_1)=paste("R",1:100,sep="") colnames(matrix_1)=paste("C",1:10,sep="") matrix_2=matrix(1:1000,100,10) rownames(matrix_2)=paste("R",1:100,sep="") colnames(matrix_2)=paste("C",1:10,sep="") matrix_3=matrix(1:1000,100,10) rownames(matrix_3)=paste("R",1:100,sep="") colnames(matrix_3)=paste("C",1:10,sep="") t1=-3 t2=3 t3=5 method="cosine" name1=paste("EXP_new",method,t2,t3,sep="_") name2=paste("EXP_TCGA_new",method,t2,t3,sep="_") name3=paste("Survival_plot_new",method,t2,t3,sep="_") survival_info=matrix(c(1:10,rep(1,5),rep(0,5)),10,2) rownames(survival_info)=paste("C",1:10,sep="") colnames(survival_info)=paste("R",1:2,sep="") month_limit=180 p_limit=2 selected_label=c(1,2,3,4,5) folder="~/Ahuja_Lab/EXP52_3/"
output<-ORsurv(folder=folder,matrix_1=matrix_1,matrix_2=matrix_2,matrix_3=matrix_3,t1=t1,t2=t2,t3=t3, name1=name1,name2=name2,name3=name3,survival_info=survival_info,method=method, month_limit=month_limit,p_limit=p_limit,selected_label=selected_label)
output
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.