-
Notifications
You must be signed in to change notification settings - Fork 1
/
M3.R
50 lines (38 loc) · 941 Bytes
/
M3.R
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
library('shiny')
#AROC Module
aroc_curve <- eventReactive(input$gene_aroc, {
try(
gene_aroc_analysis(
loadedData(),
input$marker3,
input$resultcol3,
input$cov3,
as.integer(input$healthy_pop3),
input$aroc_type
)
)
})
toreport <- eventReactive(aroc_curve(),{
try(
propersummary(aroc_curve(),
input$marker3,
input$resultcol3,
input$healthy_pop3,
input$cov3))
})
observeEvent(toreport(),{
if (class(toreport())!="try-error"){
textobj(paste0(textobj(),toreport()))
}
})
output$aroc <- renderPlot({plot(aroc_curve())})
observeEvent(input$gene_aroc, {
isolate({ #makes only responde to Action Button
tempmarker <- input$marker3
tempresult <- input$resultcol3
tempcov <- input$cov3
})
output$aroc_density <- renderPlot({
aroc_density_builder(loadedData(), tempmarker, tempresult, tempcov)
})
})