Skip to content

Commit

Permalink
fix shiny app
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinrue committed Jul 6, 2024
1 parent 1d26c4b commit 73c3c2e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion inst/shinyApp/fileParseFunctions.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ tryParseCsq <- function(vcf, vepKey){
message("Parsing ", vepKey," to GRanges ...")

rawData <- tryCatch(
ensemblVEP::parseCSQToGRanges(
parseCSQToGRanges(
x = vcf,
VCFRowID = rownames(vcf),
info.key = vepKey),
Expand Down
1 change: 0 additions & 1 deletion inst/shinyApp/global.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ stopifnot(
requireNamespace("BiocParallel"),
requireNamespace("dplyr"),
requireNamespace("DT"),
requireNamespace("ensembldb"),
requireNamespace("ensemblVEP"),
requireNamespace("ggplot2"),
requireNamespace("reshape2"),
Expand Down
2 changes: 1 addition & 1 deletion inst/shinyApp/server.R
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ shinyServer(function(input, output, clientData, session) {
message("Importing phenotypes ...")
rawData <- tryCatch(
{
S4Vectors::DataFrame(read.table(phenoFile, TRUE, row.names = 1))
S4Vectors::DataFrame(read.table(phenoFile, TRUE, row.names = 1, stringsAsFactors = TRUE))
},
warning = function(warn){
Errors[["phenotypes"]] <- sprintf("Failed to parse file:\n%s", warn)
Expand Down
14 changes: 7 additions & 7 deletions inst/shinyApp/ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -365,13 +365,13 @@ shinyUI(navbarPage(
width = 2,
actionButton(
"tickAllInfo", "Select all",
icon = icon("check-square-o"))
icon = icon("square-check"))
),
column(
width = 2,
actionButton(
"untickAllInfo", "Deselect all",
icon = icon("square-o"))
icon = icon("square"))
),
column(
width = 7, offset = 1,
Expand Down Expand Up @@ -507,7 +507,7 @@ shinyUI(navbarPage(
# Calculate frequencies ----

tabPanel(
title = "Frequencies", icon = icon("calculator "),
title = "Frequencies", icon = icon("calculator"),

uiOutput("TVTBparamWarning"),

Expand Down Expand Up @@ -561,13 +561,13 @@ shinyUI(navbarPage(
actionButton(
"tickAllPhenoLevelsFreq",
"Select all",
icon = icon("check-square-o"),
icon = icon("square-check"),
width = "100%"
), br(),
actionButton(
"untickAllPhenoLevelsFreq",
"Deselect all",
icon = icon("square-o"),
icon = icon("square"),
width = "100%"
)
),
Expand Down Expand Up @@ -731,7 +731,7 @@ shinyUI(navbarPage(
),

tabPanel(
title = "Views", icon = icon("picture-o"),
title = "Views", icon = icon("image"),

tabsetPanel(
id = "tabset.views",
Expand Down Expand Up @@ -895,7 +895,7 @@ shinyUI(navbarPage(
"to generate/update the figure",
actionButton(
"doGenoHeatmap", "Go!",
icon = icon("time")
icon = icon("hourglass-start")
)
),

Expand Down

0 comments on commit 73c3c2e

Please sign in to comment.