-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
79 lines (59 loc) · 2.01 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# ORsurv - Survival of patients using ors on TCGA data.
Author: Krishan Gupta
## Introduction
ORsurv - survival of patients using ors on TCGA data.
## Installation
The developer version of the R package can be installed with the following R commands:
install_github("krishan57gupta/ORsurv")
## Vignette tutorial
This vignette uses a small simulated data, to demonstrate a standard pipeline. This vignette can be used as a tutorial as well.
## Example
Libraries need to be loaded before running.
```{r setup}
library(ORsurv)
```
```{r data, message=FALSE,warning = FALSE,include=TRUE, cache=FALSE}
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/"
```
```{r main, message=FALSE,warning = FALSE, include=TRUE, cache=FALSE}
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)
```
```{r output, message=FALSE,warning = FALSE,include=TRUE, cache=FALSE}
output
```