|
73 | 73 |
|
74 | 74 | tabPanel(title = "Foreign", value = "foreign", br(), |
75 | 75 |
|
76 | | - radioButtons(inputId = "ftype", |
77 | | - label = "Type:", choices = list("biom", "QZA", |
78 | | - "MetaPhlAn"), inline = TRUE), |
| 76 | + radioButtons(inputId = "ftype", label = "Type:", |
| 77 | + choices = list("biom", "HUMAnN", "MetaPhlAn", |
| 78 | + "Mothur", "QIIME2"), inline = TRUE), |
79 | 79 |
|
80 | 80 | fileInput(inputId = "main.file", |
81 | 81 | label = "Main file:", accept = c(".biom", |
82 | | - ".QZA", ".txt"), |
83 | | - placeholder = "biom, QZA or txt"), |
| 82 | + ".tsv", ".shared", ".QZA", ".txt"), |
| 83 | + placeholder = "biom, tsv, shared, QZA or txt"), |
84 | 84 | div(style = "margin-top: -20px"), |
85 | | - |
| 85 | + |
| 86 | + fileInput(inputId = "col.data", label = "colData:", |
| 87 | + accept = c(".tsv", ".design"), |
| 88 | + placeholder = "tsv or design"), |
| 89 | + div(style = "margin-top: -20px"), |
| 90 | + |
86 | 91 | conditionalPanel( |
87 | | - condition = "input.ftype == 'biom'", |
| 92 | + condition = "input.ftype == 'Mothur' | input.ftype == 'QIIME2'", |
88 | 93 |
|
| 94 | + fileInput(inputId = "f.rowdata", |
| 95 | + label = "rowData:", accept = c(".taxonomy", |
| 96 | + ".qza"), placeholder = "taxonomy or qza"), |
| 97 | + div(style = "margin-top: -20px")), |
| 98 | + |
| 99 | + conditionalPanel( |
| 100 | + condition = "input.ftype == 'biom' | input.ftype == 'MetaPhlAn'", |
| 101 | + |
| 102 | + fileInput(inputId = "tree.file", |
| 103 | + label = "rowTree:", placeholder = "tree.tree", |
| 104 | + accept = c(".tree", ".tre", ".qza")), |
| 105 | + div(style = "margin-top: -20px")), |
| 106 | + |
| 107 | + conditionalPanel( |
| 108 | + condition = "input.ftype == 'biom' | input.ftype == 'HUMAnN'", |
| 109 | + |
89 | 110 | checkboxInput(inputId = "rm.tax.pref", |
90 | | - label = "Remove taxa prefixes"), |
91 | | - |
| 111 | + label = "Remove taxa prefixes")), |
| 112 | + |
| 113 | + conditionalPanel( |
| 114 | + condition = "input.ftype == 'biom'", |
| 115 | + |
92 | 116 | checkboxInput(inputId = "rank.from.pref", |
93 | 117 | label = "Derive taxa from prefixes")), |
94 | | - |
| 118 | + |
95 | 119 | conditionalPanel( |
96 | | - condition = "input.ftype == 'MetaPhlAn'", |
97 | | - |
98 | | - fileInput(inputId = "col.data", |
99 | | - label = "colData:", accept = ".tsv", |
100 | | - placeholder = "coldata.tsv"), |
101 | | - div(style = "margin-top: -20px"), |
102 | | - |
103 | | - fileInput(inputId = "tree.file", |
104 | | - label = "Tree:", placeholder = "tree.tree", |
105 | | - accept = c(".tree", ".tre"))))), |
| 120 | + condition = "input.ftype == 'HUMAnN'", |
| 121 | + |
| 122 | + checkboxInput(inputId = "rm.hum.suf", |
| 123 | + label = "Remove sample suffix")))), |
106 | 124 |
|
107 | 125 | actionButton("import", "Upload", class = "btn-primary")), |
108 | 126 |
|
|
0 commit comments