Skip to content

Commit

Permalink
Merge branch 'master' into alex_dev
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-d13 authored Sep 29, 2024
2 parents 920494a + 796216b commit 17353ba
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 14 deletions.
8 changes: 8 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ Authors@R:
person(
given = "Constantin", family = "Zackl", role = c("aut", "cre"),
email = "[email protected]", comment = c(ORCID = "0000-0003-1991-6943")
),
person(
given = "Alexander", family = "Dietrich", role = c("aut"),
email = "[email protected]", comment = c(ORCID = "0000-0002-8661-0453")
),
person(
given = "Lorenzo", family = "Merotto", role = c("aut"),
email = "[email protected]", comment = c(ORCID = "0009-0006-0637-8436")
),
person(
given = "Federico", family = "Marini", role = c("aut"),
Expand Down
14 changes: 13 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ export(returnSelectedDeconvolutions)
export(selectGenesByScore)
import(omnideconv)
import(shiny, except = c(renderDataTable, dataTableOutput))
import(shinyBS)
importFrom(BioQC,entropySpecificity)
importFrom(BioQC,gini)
importFrom(ComplexHeatmap,Heatmap)
importFrom(ComplexHeatmap,UpSet)
importFrom(ComplexHeatmap,comb_size)
Expand Down Expand Up @@ -56,6 +57,7 @@ importFrom(ggplot2,geom_rect)
importFrom(ggplot2,geom_text)
importFrom(ggplot2,geom_tile)
importFrom(ggplot2,ggplot)
importFrom(ggplot2,ggsave)
importFrom(ggplot2,guide_colorbar)
importFrom(ggplot2,guides)
importFrom(ggplot2,labs)
Expand All @@ -67,6 +69,8 @@ importFrom(ggplot2,theme_minimal)
importFrom(ggplot2,ylim)
importFrom(ggpubr,stat_cor)
importFrom(grDevices,colorRampPalette)
importFrom(grDevices,dev.off)
importFrom(grDevices,pdf)
importFrom(grid,gpar)
importFrom(grid,unit)
importFrom(plotly,config)
Expand All @@ -82,6 +86,7 @@ importFrom(rintrojs,readCallback)
importFrom(rlang,.data)
importFrom(shiny,addResourcePath)
importFrom(shinyWidgets,actionBttn)
importFrom(shinyBS,bsPopover)
importFrom(shinycssloaders,withSpinner)
importFrom(shinydashboard,box)
importFrom(shinydashboard,dashboardBody)
Expand All @@ -100,7 +105,10 @@ importFrom(shinydashboard,valueBoxOutput)
importFrom(shinyjs,hide)
importFrom(shinyjs,show)
importFrom(shinyjs,useShinyjs)
importFrom(stats,complete.cases)
importFrom(stats,cor.test)
importFrom(stats,dist)
importFrom(stats,hclust)
importFrom(stats,sd)
importFrom(stringr,str_split)
importFrom(stringr,str_to_title)
Expand All @@ -109,3 +117,7 @@ importFrom(utils,read.delim)
importFrom(utils,write.csv)
importFrom(utils,write.table)
importFrom(waiter,Waitress)
importFrom(waiter,waiter_hide)
importFrom(waiter,waiter_show)
importFrom(waiter,waiter_show_on_load)
importFrom(waiter,waiter_update)
16 changes: 10 additions & 6 deletions R/DeconvExplorer-pkg.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,26 @@
#' geom_tile ggplot guide_colorbar guides labs scale_fill_gradient theme geom_text element_blank
#' geom_hline scale_colour_brewer scale_fill_brewer ylim theme_minimal geom_rect element_rect
#' @importFrom shinycssloaders withSpinner
#' @importFrom waiter Waitress
#' @importFrom waiter Waitress waiter_hide waiter_show waiter_show_on_load
#' waiter_update
#' @importFrom rlang .data
#' @importFrom rintrojs introBox introjs introjsUI readCallback
#' @importFrom DT datatable dataTableOutput renderDataTable formatRound formatPercentage
#' @importFrom DT datatable dataTableOutput renderDataTable formatRound
#' formatPercentage
#' @importFrom shinyjs useShinyjs hide show
#' @importFrom utils write.csv write.table read.delim
#' @importFrom stringr str_to_title str_split
#' @importFrom tidyr pivot_longer
#' @importFrom stats sd cor.test
#' @importFrom ComplexHeatmap Heatmap make_comb_mat UpSet comb_size upset_top_annotation extract_comb
#' @importFrom stats sd cor.test complete.cases dist hclust
#' @importFrom ComplexHeatmap Heatmap make_comb_mat UpSet comb_size
#' upset_top_annotation extract_comb
#' @importFrom grid gpar unit
#' @importFrom InteractiveComplexHeatmap InteractiveComplexHeatmapOutput makeInteractiveComplexHeatmap
#' @importFrom InteractiveComplexHeatmap InteractiveComplexHeatmapOutput
#' makeInteractiveComplexHeatmap
#' @importFrom RColorBrewer brewer.pal
#' @importFrom circlize colorRamp2
#' @importFrom ggforce facet_grid_paginate
#' @importFrom grDevices colorRampPalette
#' @importFrom grDevices colorRampPalette dev.off pdf
#' @importFrom ggpubr stat_cor
#' @importFrom corrplot corrplot
#' @importFrom SummarizedExperiment assays
Expand Down
7 changes: 7 additions & 0 deletions R/DeconvExplorer.R
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,13 @@ DeconvExplorer <- function(deconvexp_bulk = NULL,
)
)

refUnspecificPopover <-
shinyBS::bsPopover(
id = "refUnspecificQ",
title = "",
content = "The overall expression is binned into 'high', 'medium' and 'low expression' for each gene. The number of cell types the gene has to be in the 'high' bin can be modified and defaults to 1. Each gene expressed 'high' in more cell types than this parameter is removed. "
)

refinementBestNBox <- shinydashboard::box(
solidHeader = FALSE, width = NULL, background = "red",
fluidRow(
Expand Down
3 changes: 2 additions & 1 deletion R/Global.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ returnSelectedDeconvolutions <- function(deconv_select, deconv_list) {

#' Modal window to print error messages or other warnings
#'
#' @param error_message
#' @param error_message Character string, with the content of the error to
#' display
#'
#' @return NULL
#' @export
Expand Down
2 changes: 1 addition & 1 deletion R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

.onLoad <- function(libname, pkgname) {
shiny::addResourcePath("sbs", system.file("www", package = "shinyBS"))
}
}
2 changes: 2 additions & 0 deletions man/DeconvExplorer-pkg.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion man/errorModal.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions tests/testthat/test-signatures.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,4 @@ test_that("Signature refinement operations are correct", {
max_count = 3,
labels = c("A", "B", "C", "D")
))


entropy_calc <- scoreEntropy(signature_list$bisque[1, ])
expect_true(is.numeric(entropy_calc))
})

0 comments on commit 17353ba

Please sign in to comment.