Skip to content

Commit

Permalink
fix error in testing dose_response
Browse files Browse the repository at this point in the history
  • Loading branch information
mengchen18 committed Mar 13, 2024
1 parent 842d049 commit 90a06ab
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: omicsViewer
Title: Interactive and explorative visualization of SummarizedExperssionSet or ExpressionSet using omicsViewer
Version: 1.7.12
Version: 1.7.13
Authors@R: person("Chen", "Meng", email = "mengchen18@gmail.com",
role = c("aut", "cre"))
Description: omicsViewer visualizes ExpressionSet (or SummarizedExperiment) in an interactive way. The omicsViewer has a separate back- and front-end. In the back-end, users need to prepare an ExpressionSet that contains all the necessary information for the downstream data interpretation. Some extra requirements on the headers of phenotype data or feature data are imposed so that the provided information can be clearly recognized by the front-end, at the same time, keep a minimum modification on the existing ExpressionSet object. The pure dependency on R/Bioconductor guarantees maximum flexibility in the statistical analysis in the back-end. Once the ExpressionSet is prepared, it can be visualized using the front-end, implemented by shiny and plotly. Both features and samples could be selected from (data) tables or graphs (scatter plot/heatmap). Different types of analyses, such as enrichment analysis (using Bioconductor package fgsea or fisher's exact test) and STRING network analysis, will be performed on the fly and the results are visualized simultaneously. When a subset of samples and a phenotype variable is selected, a significance test on means (t-test or ranked based test; when phenotype variable is quantitative) or test of independence (chi-square or fisher’s exact test; when phenotype data is categorical) will be performed to test the association between the phenotype of interest with the selected samples. Additionally, other analyses can be easily added as extra shiny modules. Therefore, omicsViewer will greatly facilitate data exploration, many different hypotheses can be explored in a short time without the need for knowledge of R. In addition, the resulting data could be easily shared using a shiny server. Otherwise, a standalone version of omicsViewer together with designated omics data could be easily created by integrating it with portable R, which can be shared with collaborators or submitted as supplementary data together with a manuscript.
Expand Down
10 changes: 0 additions & 10 deletions tests/test_dose_response.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,6 @@ library(unittest)
library(drc)

ds <- c(0.1, 0.2, 0.4, 0.8, 1.6, 3.2, 6.4, 12.8, 25.6, 51.2, 102.4)
y <- omicsViewer:::.modelFormula(ds, b = -1, c = 0.25, d = 1.1, f = 1, e = 2) + rnorm(length(ds), sd = 1e-5)
mod1 <- drm(y ~ ds, fct = LL.4())
f1 <- omicsViewer:::extractParamDC(mod1)
mod2 <- drm(y ~ ds, fct = LL2.4())
f2 <- omicsViewer:::extractParamDC(mod2)

ok(
all.equal(f1, f2, tolerance = 7.5e-5),
"functions - .modelFormula, extractParamDC"
)


testPar <- function( pars, cid = "(Intercept)", b, c, d, e, f, tol = 0.1 ) {
Expand Down

0 comments on commit 90a06ab

Please sign in to comment.