|
93 | 93 | div(style = "margin-top: -20px"), |
94 | 94 |
|
95 | 95 | conditionalPanel( |
96 | | - condition = "input.ftype == 'Mothur' | input.ftype == 'QIIME2'", |
| 96 | + condition = paste0("input.ftype == 'Mothur' | ", |
| 97 | + "input.ftype == 'QIIME2'"), |
97 | 98 |
|
98 | 99 | fileInput(inputId = "f.rowdata", |
99 | 100 | label = "rowData:", accept = c(".taxonomy", |
100 | 101 | ".qza"), placeholder = "taxonomy or qza"), |
101 | 102 | div(style = "margin-top: -20px")), |
102 | 103 |
|
103 | 104 | conditionalPanel( |
104 | | - condition = "input.ftype == 'biom' | input.ftype == 'MetaPhlAn'", |
| 105 | + condition = paste0("input.ftype == 'biom' | ", |
| 106 | + "input.ftype == 'MetaPhlAn'"), |
105 | 107 |
|
106 | 108 | fileInput(inputId = "tree.file", |
107 | 109 | label = "rowTree:", placeholder = "tree.tree", |
108 | 110 | accept = c(".tree", ".tre", ".qza")), |
109 | 111 | div(style = "margin-top: -20px")), |
110 | 112 |
|
111 | 113 | conditionalPanel( |
112 | | - condition = "input.ftype == 'biom' | input.ftype == 'HUMAnN'", |
| 114 | + condition = paste0("input.ftype == 'biom' | ", |
| 115 | + "input.ftype == 'HUMAnN'"), |
113 | 116 |
|
114 | 117 | checkboxInput(inputId = "rm.tax.pref", |
115 | 118 | label = "Remove taxa prefixes")), |
|
204 | 207 | inline = TRUE), |
205 | 208 |
|
206 | 209 | conditionalPanel( |
207 | | - condition = paste("input.bmethod == 'MDS' || ", |
| 210 | + condition = paste0("input.bmethod == 'MDS' || ", |
208 | 211 | "input.bmethod == 'NMDS' || ", |
209 | 212 | "input.bmethod == 'RDA'"), |
210 | 213 |
|
|
222 | 225 | label = "Number of components:", min = 1, |
223 | 226 | step = 1)), |
224 | 227 |
|
| 228 | + tabPanel(title = "Cluster", value = "cluster", |
| 229 | + |
| 230 | + radioButtons(inputId = "cmethod", |
| 231 | + label = "Method:", choices = .clustMethods, |
| 232 | + inline = TRUE), |
| 233 | + |
| 234 | + conditionalPanel( |
| 235 | + condition = paste0("input.cmethod == 'Dmm' | ", |
| 236 | + "input.cmethod == 'Kmeans'"), |
| 237 | + |
| 238 | + numericInput(inputId = "kclusters", value = 3, |
| 239 | + label = "Number of clusters:", min = 1, |
| 240 | + step = 1)), |
| 241 | + |
| 242 | + conditionalPanel( |
| 243 | + condition = "input.cmethod == 'Dmm'", |
| 244 | + |
| 245 | + selectInput(inputId = "dmm.type", |
| 246 | + label = "Criterion:", |
| 247 | + choices = .DmmCriteria, |
| 248 | + selected = .DmmCriteria[1]), |
| 249 | + |
| 250 | + numericInput(inputId = "dmm.seed", value = 1L, |
| 251 | + label = "Seed:", min = 0, step = 1)), |
| 252 | + |
| 253 | + conditionalPanel( |
| 254 | + condition = "input.cmethod == 'NNGraph'", |
| 255 | + |
| 256 | + numericInput(inputId = "kneighbours", |
| 257 | + value = 10, label = "Number of neighbours:", |
| 258 | + min = 1, step = 1), |
| 259 | + |
| 260 | + checkboxInput(inputId = "nn.shared", |
| 261 | + label = "Construct shared graph")), |
| 262 | + |
| 263 | + checkboxInput(inputId = "clust.full", |
| 264 | + label = "Add to metadata"), |
| 265 | + |
| 266 | + radioButtons(inputId = "clust.margin", |
| 267 | + label = "Margin:", inline = TRUE, |
| 268 | + choices = c("samples", "features"), |
| 269 | + selected = "features")), |
| 270 | + |
225 | 271 | footer = textInput(inputId = "estimate.name", |
226 | 272 | label = "Name:")), |
227 | 273 |
|
|
0 commit comments