-
Notifications
You must be signed in to change notification settings - Fork 0
/
choose_ash_parameters.R
37 lines (36 loc) · 1.29 KB
/
choose_ash_parameters.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
choose.ash.parameters <- function(input, args) {
if (args$transform == "voom") {
betahat <- input$betahat.voom
sebetahat <- input$sebetahat.voom
df <- input$df.voom
} else if (args$transform == "quasibinom") {
betahat <- input$betahat.qb
sebetahat <- input$sebetahat.qb
df <- input$df.qb
} else if (args$transform == "Myrna+quasibinom") {
betahat <- input$betahat.Myrnaqb
sebetahat <- input$sebetahat.Myrnaqb
df <- input$df.Myrnaqb
} else if (args$transform == "Myrnaoff+quasibinom") {
betahat <- input$betahat.Myrnaoffqb
sebetahat <- input$sebetahat.Myrnaoffqb
df <- input$df.Myrnaoffqb
} else if (args$transform == "RUV+quasibinom") {
betahat <- input$betahat.RUVqb
sebetahat <- input$sebetahat.RUVqb
df <- input$df.RUVqb
} else if (args$transform == "SVA+quasibinom") {
betahat <- input$betahat.SVAqb
sebetahat <- input$sebetahat.SVAqb
df <- input$df.SVAqb
} else if (args$transform == "edgeRglm") {
betahat <- input$betahat.edgeRglm
sebetahat <- input$sebetahat.edgeRglm
df <- input$df.edgeRglm
} else if (args$transform == "DESeqglm") {
betahat <- input$betahat.DESeqglm
sebetahat <- input$sebetahat.DESeqglm
df <- input$df.DESeqglm
}
return(list(betahat = betahat, sebetahat = sebetahat, df = df))
}