Skip to content

Commit

Permalink
Merge branch 'devel' into feature/cleanup-and-refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
sneumann committed Jan 30, 2025
2 parents eac46fc + 0a349b9 commit 698091c
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 24 deletions.
13 changes: 7 additions & 6 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Package: MetFamily
Type: Package
Title: MetFamily: Discovering Regulated Metabolite Families in Untargeted Metabolomics Studies
Version: 0.99.4
Date: 2024-08-22
Author: c( person("Hendrik", "Treutler, role = c("aut"), email = "[email protected]"),
person("Khabat", "Vahabi", role = c("aut"), email = "[email protected]"),
person("Norman", "Storz", role = c("aut"), email = "[email protected]"),
Version: 0.99.5
Date: 2024-11-07
Author: c( person(given = "Hendrik", family = "Treutler", role = c("aut"), email = "[email protected]"),
person(given = "Khabat", family = "Vahabi", role = c("ctb"), email = "[email protected]"),
person(given = "Norman", family = "Storz", role = c("ctb"), email = "[email protected]"),
person(given = "Steffen", family = "Neumann", email = "[email protected]",
role = c("aut", "cre"), comment = c(ORCID = "0000-0002-7899-7192")) )
Depends:
Expand All @@ -32,7 +32,8 @@ Depends:
matrixStats,
plotrix,
slam,
plotly
plotly,
xcms
Imports:
egg,
graphics,
Expand Down
8 changes: 6 additions & 2 deletions Dockerfile-base
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# syntax=docker/dockerfile:1.3-labs
FROM rocker/shiny:4.4
#FROM rocker/shiny:4.4

LABEL maintainer="Steffen Neumann <[email protected]>"
LABEL Description="MetFamily Base Image with dependencies."
Expand Down Expand Up @@ -28,8 +29,11 @@ RUN echo 'sanitize_errors off;disable_protocols xdr-streaming xhr-streaming ifra
## })
## EOF

## Temporarily disable gcc choking on "error: format not a string literal and no format arguments"
#RUN sed -i -e 's/-Werror=format-security//g' /usr/local/lib/R/etc/Makeconf

ADD DESCRIPTION /tmp/MetFamily/DESCRIPTION
RUN R -e 'options(warn=2) ; install.packages("devtools")'
RUN R -e 'library(devtools); options(warn=2) ; install_deps("/tmp/MetFamily")'
RUN R -e 'options(warn=2) ; install.packages(c("devtools", "BiocManager"))'
RUN R -e 'library(devtools); options(warn=2) ; install_deps("/tmp/MetFamily", repos=BiocManager::repositories())'

WORKDIR /srv/shiny-server
2 changes: 2 additions & 0 deletions R/parsePeakAbundanceMatrixQF.R
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ parsePeakAbundanceMatrixQF <- function(qfeatures,
#' @param siriusID
#'
#' @return
#' @importFrom SummarizedExperiment rowData
#' @importFrom SummarizedExperiment rowData<-
#' @export
#' @importFrom SummarizedExperiment rowData<-
#'
Expand Down
21 changes: 11 additions & 10 deletions inst/MetFamily/server.R
Original file line number Diff line number Diff line change
@@ -1,34 +1,35 @@

options(shiny.sanitize.errors = FALSE)

#########################################################################################
#########################################################################################
## libraries and functions

sourceFolder <- getwd()
isDevelopment <- FALSE
errorHunting <- FALSE
errorHunting <- TRUE
hcaHeatMapNew <- TRUE

##
## Load dependency libraries. Formerly in sourceTheCode()
##
library(MetFamily)
load_metfamily_dependencies()

#####################################################################################################
## handling of errors and warnings
if(errorHunting){
options(warn = 2, shiny.error = recover)
options(shiny.trace=TRUE)
#options(shiny.trace=TRUE)
options(shiny.trace=FALSE)
options(shiny.fullstacktrace=TRUE)
options(shiny.testmode=TRUE)
options(shiny.sanitize.errors = FALSE)
} else {
options(warn = 1, shiny.error = NULL)
options(shiny.trace=FALSE)
options(shiny.fullstacktrace=FALSE)
options(shiny.testmode=FALSE)
}

##
## Load dependency libraries. Formerly in sourceTheCode()
##
library(MetFamily)
load_metfamily_dependencies()

#########################################################################################
#########################################################################################
## server-side logic of the Shiny app
Expand Down
2 changes: 1 addition & 1 deletion inst/MetFamily/version.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

toolName <- "MetFamily"
toolVersion <- "1.0"
metFamilyAppVersion <- "1.3.4"
metFamilyAppVersion <- "1.3.5"

packageVersion <- package.version("MetFamily")

Expand Down
10 changes: 5 additions & 5 deletions vignettes/discoveringregulatedmetabolitefamilies.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ pcaDimensionTwo <<- 2
resultObj <- calcPlotPCAscores(
pcaObj = pca,
dataList = project,
dataList = dataList, #project,
filterObj = filterObj,
pcaDimensionOne = pcaDimensionOne,
pcaDimensionTwo = pcaDimensionTwo,
Expand All @@ -108,7 +108,7 @@ pcaDimensionTwo <<- 2
resultObj <- calcPlotPCAloadings(
pcaObj = pca,
dataList = project,
dataList = dataList, #project,
filter = filterObj,
pcaDimensionOne = pcaDimensionOne,
pcaDimensionTwo = pcaDimensionTwo,
Expand Down Expand Up @@ -136,9 +136,9 @@ HCA on MS2 in Figure \@ref(fig:hca).
```{r hca, fig.cap="HCA on MS2.", echo=FALSE}
if (FALSE) {
p <- calcPlotDendrogram_plotly(dataList=project,
p <- calcPlotDendrogram_plotly(dataList=dataList, #project,
filterObj=filterObj,
clusterDataList=project,
clusterDataList=dataList, #project,
distanceMeasure = "Jaccard",
showClusterLabels=FALSE,
hcaPrecursorLabels="m/z / RT",
Expand All @@ -156,7 +156,7 @@ load(fileName)
fileName <- system.file("extdata/testdata/hcaFilter.Rdata", package = "MetFamily")
load(fileName)
returnObj <- calcPlotDendrogram(dataList=project,
returnObj <- calcPlotDendrogram(dataList=dataList, #project,
filter=filter,
clusterDataList=clusterDataList,
annoPresentAnnotationsList = annoPresentAnnotationsList ,
Expand Down

0 comments on commit 698091c

Please sign in to comment.