Skip to content

Commit

Permalink
add upload sever function
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanlizhanshi committed Nov 18, 2023
1 parent 822ec5d commit c78a7dc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
8 changes: 7 additions & 1 deletion scLT/server.R
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,16 @@ server <- function(input, output,session = session) {
req(input$upload_metadata)
ext <- tools::file_ext(input$upload_metadata$name)
switch(ext,
xls = read.csv(input$upload_metadata$datapath),
csv = read.csv(input$upload_metadata$datapath),
validate("Invalid file; Please upload a .csv file")
)
})
output$test_table <- renderTable({
head(upload_metadata())

})


selected_value <- reactive({
input$Compare_dataset
})
Expand Down
12 changes: 5 additions & 7 deletions scLT/ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,12 @@ ui <- navbarPage(
),style = 'margin-top:25px;'),
id = "tools2", height = "800px",
full_screen = TRUE,




nav_panel("show data",
tableOutput('test_table')
),
nav_panel("clone profile"


),
nav_panel("cell type similarity"
Expand All @@ -202,9 +203,6 @@ ui <- navbarPage(

),




tabPanel(title = "Tutorials",
icon = icon('bookmark',lib = 'glyphicon'),
p("Second tab content.")),
Expand Down

0 comments on commit c78a7dc

Please sign in to comment.