-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui-tab-options.R
66 lines (62 loc) · 4.19 KB
/
ui-tab-options.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
orgdb <- c(Human="org.Hs.eg.db",
Mouse="org.Mm.eg.db",
Rat="org.Rn.eg.db",
Pig="org.Ss.eg.db",
Chicken="org.Gg.eg.db",
Rhesus="org.Mmu.eg.db",
Chimp="org.Pt.eg.db",
Canine="org.Cf.eg.db",
Bovine="org.Bt.eg.db",
Anopheles="org.Ag.eg.db",
Arabidopsis="org.At.tair.db",
Worm="org.Ce.eg.db",
Fly="org.Dm.eg.db",
Zebrafish="org.Dr.eg.db",
Malaria="org.Pf.plasmo.db",
Yeast="org.Sc.sgd.db",
Xenopus="org.Xl.eg.db")
fluidRow(
column(width = 3,
box(width=NULL, title="General parameters", status="warning",
selectInput("organism_annot", label="Organism", selected="org.Hs.eg.db",
# choices=orgdb[order(names(orgdb))]),
choices=orgdb),
radioButtons("pathwDB", "Source of terms:",
choices = c("GO" = 'GO',
"Reactome" = 'Reactome',
"GO and Reactome" = 'GO-Reactome'),
selected = 'GO'),
textInput("col_ID", "Name of column containing GO/Reactome id:", value="ID"),
textInput("label_FN", "Label", value="RedRedundance_Results")
),
box(width=NULL, title="Grouping parameters", status="warning",
conditionalPanel(condition= ("input.pathwDB=='GO'"), selectInput("dist_method1", label="Distance measure (GO only)", selected="Rel",
choices=c("Resnik", "Lin", "Rel", "Jiang", "Wang"))),
conditionalPanel(condition= ("input.pathwDB=='Reactome' || input.pathwDB=='GO-Reactome'"), selectInput("dist_method2", label="Distance measure", selected="jaccard",
choices=c("kappa", "jaccard", "dice", "overlap"))),
conditionalPanel(condition= ("input.pathwDB=='GO'"), a("Help",
href="https://www.bioconductor.org/packages/release/bioc/vignettes/GOSemSim/inst/doc/GOSemSim.html#semantic-similarity-measurement-based-on-go",
target="_blank")),
selectInput("clust_method", label="Clustering method", selected="fast_greedy",
choices=c("kmeans", "MCL", "binary_cut","fast_greedy","dynamicTreeCut", "apcluster")),
checkboxInput("do_clust_comp", "Compare different clustering methods", FALSE),
conditionalPanel(condition= ("input.do_clust_comp"), selectInput("comp_clust_methods", label="Select the clustering methods to compare:", selected=c("binary_cut", "MCL", "kmeans", "fast_greedy", "dynamicTreeCut", "apcluster"),
choices= c("binary_cut", "MCL", "kmeans", "fast_greedy", "dynamicTreeCut", "apcluster"), multiple=TRUE))
),
box(width=NULL, title="Plot Options", status="warning",
numericInput("min_term", label="Minimum size of cluster names in heatmap", value=5, min=1),
textInput("col_val", label="Name of numeric column to highlight on left heatmap (eg. pvalue/p.adjust or none)", value="none"),
numericInput("num_words_wc", label="Number of words for Word Cloud annotation", value=10, min=1),
radioButtons("annot_type", "Annotate clusters with term with:",
choices = c("Minimum p-value" = 'annot_minpval',
"Maximum set size" = 'annot_maxsetsize',
"None" = 'none'),
selected = 'none'),
conditionalPanel(condition= ("input.annot_type=='annot_minpval'"), textInput("col_pval", label="Name of column corresponding to pvalue", value="pvalue")),
selectInput("netw_clust_method", label="Network clustering method", selected="cluster_fast_greedy",
choices=c("cluster_fast_greedy", "cluster_louvain", "cluster_edge_betweenness")),
selectInput("netw_layout", label="Network layout", selected="layout_nicely",
choices=c("layout_nicely", "layout_with_fr", "layout_grid"))
),
)
)