-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui-tab-input.R
56 lines (55 loc) · 2.5 KB
/
ui-tab-input.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
tabPanel(
"Input Data",
fluidRow(
column(
width = 3,
wellPanel(
radioButtons(
"data_file_type",
"Use example data or upload the list",
c("Example Data" = "examplelist","Downstream Analysis" = "precomputed",
"Complete Analysis" = "upload"),
selected = "examplelist"
),
conditionalPanel(
condition = "input.data_file_type == 'upload'",
textInput("datadir", "Enter the Data Directory", value = ""),
fileInput("inputfile", "Select the sample Information File", accept = ".csv", multiple = FALSE),
textInput("fastafile", "Enter the Name of the Host Genome Fasta", value = ""),
numericInput("threads", "Number of Threads", 16),
numericInput("memory", "Memory utilized (GB)", 200),
numericInput("comp", "% Completeness (metaWRAP)", 55),
numericInput("cont", "% Contamination (metaWRAP)", 10),
checkboxInput("Setup", "Setup")
),
conditionalPanel(
condition = "input.data_file_type == 'precomputed'",
textInput("countdir", "Enter the Directory Containing Counts Data", value = ""),
fileInput("metafile", "Select the sample Information File", accept = ".csv", multiple = FALSE)
),
actionButton("upload_data","Submit Data")
)),
column(
width = 9,
bsCollapse(id = "input_collapse_panel",open = "data_panel",multiple = FALSE,
bsCollapsePanel(title = "Data Contents: Check Before `Submit`",
value = "data_panel",
dataTableOutput("sampleinfo")
),
bsCollapsePanel(title = "Analysis Results: Ready to View Other Tabs",
value = "analysis_panel",
downloadButton("download_results_CSV","Save Results as CSV File"),
dataTableOutput("analysisoutput")
)
)
)
),
p(hr(), p(("ShinyApp created by Nirmal Singh Mahar, Anshul Budhraja,
Suman Pakala, S.V. Rajagopala* and
Ishaan Gupta*"), align = "center", width=2),
p(("Copyrigth (C) 2023, code licensed under GPLv3"), align="center", width=2),
p(("Code available on Github:"), a("https://github.com/Nirmal2310/MetaShiny",
href="https://github.com/Nirmal2310/MetaShiny"),
align="center",width=2)
)
)