Skip to content

Commit

Permalink
Merge pull request #59 from omnideconv/fix_import_statements
Browse files Browse the repository at this point in the history
Fix import statements
  • Loading branch information
alex-d13 authored Sep 18, 2024
2 parents 2774fcb + 9ac3128 commit 796216b
Show file tree
Hide file tree
Showing 9 changed files with 52 additions and 19 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
16 changes: 15 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 All @@ -43,6 +44,7 @@ importFrom(ggplot2,aes_string)
importFrom(ggplot2,coord_cartesian)
importFrom(ggplot2,coord_flip)
importFrom(ggplot2,element_blank)
importFrom(ggplot2,element_rect)
importFrom(ggplot2,element_text)
importFrom(ggplot2,facet_wrap)
importFrom(ggplot2,geom_abline)
Expand All @@ -55,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 @@ -66,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 @@ -79,6 +84,8 @@ importFrom(rintrojs,introjs)
importFrom(rintrojs,introjsUI)
importFrom(rintrojs,readCallback)
importFrom(rlang,.data)
importFrom(shiny,addResourcePath)
importFrom(shinyBS,bsPopover)
importFrom(shinycssloaders,withSpinner)
importFrom(shinydashboard,box)
importFrom(shinydashboard,dashboardBody)
Expand All @@ -97,7 +104,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 @@ -106,3 +116,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)
28 changes: 17 additions & 11 deletions R/DeconvExplorer-pkg.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,37 @@
#' dashboardSidebar dropdownMenu menuItem notificationItem sidebarMenu valueBox valueBoxOutput renderValueBox
#' tabItem tabItems
#' @importFrom plotly ggplotly plotlyOutput renderPlotly plot_ly layout config
#' @importFrom ggplot2 aes aes_ aes_string coord_cartesian coord_flip element_text
#' facet_wrap geom_abline geom_boxplot geom_col geom_jitter geom_point
#' 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
#' @importFrom ggplot2 aes aes_ aes_string coord_cartesian coord_flip
#' element_rect element_text facet_wrap geom_abline geom_boxplot geom_col
#' geom_jitter geom_point geom_tile ggplot guide_colorbar guides labs
#' scale_fill_gradient theme geom_text element_blank geom_hline ggsave
#' scale_colour_brewer scale_fill_brewer ylim theme_minimal geom_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
#' @import shinyBS
#' @importFrom BioQC entropySpecificity gini
#' @importFrom shinyBS bsPopover
#'
#' @name DeconvExplorer-pkg
#' @docType package
Expand Down
2 changes: 1 addition & 1 deletion R/DeconvExplorer.R
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ DeconvExplorer <- function(deconvexp_bulk = NULL,
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. "
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(
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
5 changes: 5 additions & 0 deletions R/zzz.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#' @importFrom shiny addResourcePath

.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 796216b

Please sign in to comment.