Skip to content

Commit

Permalink
Merge pull request #1113 from ldhtnp/issues/1109
Browse files Browse the repository at this point in the history
Issue/1109 Minor pVACview improvements
  • Loading branch information
susannasiebert authored Jun 10, 2024
2 parents ca00971 + effa8f0 commit 1633241
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions pvactools/tools/pvacview/server.R
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,7 @@ server <- shinyServer(function(input, output, session) {
if (is.null(df$mainTable)) {
return()
}
updateTextAreaInput(session, "comments", value = "")
df$comments[selectedID(), 1] <- input$comments
})
##display of genomic information
Expand Down Expand Up @@ -711,7 +712,7 @@ server <- shinyServer(function(input, output, session) {
output$addData_transcript <- renderText({
df$additionalData[df$additionalData$ID == selectedID(), ]$`Best Transcript`
})
##transcripts sets table displaying sets of transcripts with the same consequence
##transcript sets table displaying sets of transcripts with the same consequence
output$transcriptSetsTable <- renderDT({
withProgress(message = "Loading Transcript Sets Table", value = 0, {
GB_transcripts <- data.frame()
Expand All @@ -723,7 +724,7 @@ server <- shinyServer(function(input, output, session) {
"# Peptides" = df$metricsData[[selectedID()]]$peptide_counts,
"Total Expr" = df$metricsData[[selectedID()]]$set_expr
)
names(GB_transcripts) <- c("Transcripts Sets", "#Transcripts", "# Peptides", "Total Expr")
names(GB_transcripts) <- c("Transcript Sets", "#Transcripts", "# Peptides", "Total Expr")
best_transcript_set <- NULL
incProgress(0.5)
for (i in 1:length(df$metricsData[[selectedID()]]$sets)){
Expand All @@ -736,10 +737,10 @@ server <- shinyServer(function(input, output, session) {
}
incProgress(0.5)
datatable(GB_transcripts, selection = list(mode = "single", selected = best_transcript_set_id), style="bootstrap") %>%
formatStyle("Transcripts Sets", backgroundColor = styleEqual(c(best_transcript_set), c("#98FF98")))
formatStyle("Transcript Sets", backgroundColor = styleEqual(c(best_transcript_set), c("#98FF98")))
}else {
GB_transcripts <- data.frame("Transcript Sets" = character(), "# Transcripts" = character(), "# Peptides" = character(), "Total Expr" = character())
names(GB_transcripts) <- c("Transcripts Sets", "#Transcripts", "# Peptides", "Total Expr")
names(GB_transcripts) <- c("Transcript Sets", "#Transcripts", "# Peptides", "Total Expr")
incProgress(0.5)
datatable(GB_transcripts)
incProgress(0.5)
Expand Down
2 changes: 1 addition & 1 deletion pvactools/tools/pvacview/ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ explore_tab <- tabItem(
span("Genomic Information (chromosome - start - stop - ref - alt)", verbatimTextOutput("metricsTextGenomicCoord")),
h5("Additional variant information:"),
uiOutput("url"), style = "overflow-x: scroll;font-size:100%"),
box(width = 2, solidHeader = TRUE, title = "Peptide Evalutation Overview",
box(width = 2, solidHeader = TRUE, title = "Peptide Evaluation Overview",
tableOutput("checked"), style = "overflow-x: scroll;font-size:100%")
)
),
Expand Down

0 comments on commit 1633241

Please sign in to comment.