Skip to content

Commit 4e0f992

Browse files
authored
Merge pull request #14 from microbiome/bioc_review
Use bibtex citations in vignettes and add shiny to Depends
2 parents 08cc76e + 81afcd4 commit 4e0f992

File tree

9 files changed

+78
-82
lines changed

9 files changed

+78
-82
lines changed

Diff for: DESCRIPTION

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: miaDash
2-
Version: 0.99.5
2+
Version: 0.99.6
33
Authors@R:
44
c(person(given = "Giulio", family = "Benedetti", role = c("aut", "cre"),
55
email = "[email protected]",
@@ -21,7 +21,8 @@ License: Artistic-2.0
2121
Encoding: UTF-8
2222
Depends:
2323
R (>= 4.4.0),
24-
iSEE
24+
iSEE,
25+
shiny
2526
Imports:
2627
ape,
2728
biomformat,
@@ -31,7 +32,6 @@ Imports:
3132
mia,
3233
rintrojs,
3334
scater,
34-
shiny,
3535
shinydashboard,
3636
shinyjs,
3737
S4Vectors,

Diff for: NAMESPACE

-29
Original file line numberDiff line numberDiff line change
@@ -45,35 +45,6 @@ importFrom(mia,transformAssay)
4545
importFrom(rintrojs,introjs)
4646
importFrom(scater,runMDS)
4747
importFrom(scater,runPCA)
48-
importFrom(shiny,actionButton)
49-
importFrom(shiny,addResourcePath)
50-
importFrom(shiny,checkboxInput)
51-
importFrom(shiny,conditionalPanel)
52-
importFrom(shiny,downloadButton)
53-
importFrom(shiny,downloadHandler)
54-
importFrom(shiny,fileInput)
55-
importFrom(shiny,fluidRow)
56-
importFrom(shiny,isolate)
57-
importFrom(shiny,modalDialog)
58-
importFrom(shiny,numericInput)
59-
importFrom(shiny,observe)
60-
importFrom(shiny,observeEvent)
61-
importFrom(shiny,radioButtons)
62-
importFrom(shiny,reactiveValues)
63-
importFrom(shiny,renderPrint)
64-
importFrom(shiny,renderUI)
65-
importFrom(shiny,req)
66-
importFrom(shiny,selectInput)
67-
importFrom(shiny,showModal)
68-
importFrom(shiny,showNotification)
69-
importFrom(shiny,sliderInput)
70-
importFrom(shiny,tabPanel)
71-
importFrom(shiny,tabsetPanel)
72-
importFrom(shiny,textInput)
73-
importFrom(shiny,updateNumericInput)
74-
importFrom(shiny,updateSelectInput)
75-
importFrom(shiny,verbatimTextOutput)
76-
importFrom(shiny,wellPanel)
7748
importFrom(shinydashboard,box)
7849
importFrom(shinydashboard,dashboardBody)
7950
importFrom(shinydashboard,dashboardHeader)

Diff for: R/landing_page.R

+12-13
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010
#' @keywords internal
1111

1212
#' @rdname landing_page
13-
#' @importFrom shiny actionButton fluidRow tabPanel tabsetPanel renderUI
14-
#' selectInput sliderInput textInput wellPanel reactiveValues radioButtons
15-
#' numericInput fileInput checkboxInput verbatimTextOutput downloadButton
16-
#' conditionalPanel
1713
#' @importFrom shinydashboard dashboardPage dashboardHeader dashboardSidebar
1814
#' dashboardBody box
1915
#' @importFrom htmltools HTML br tags div tagList
@@ -48,29 +44,30 @@
4844
tabPanel(title = "R Object", value = "rds", br(),
4945

5046
fileInput(inputId = "file", label = "RDS:",
51-
accept = ".rds")),
47+
accept = ".rds", placeholder = "object.rds")),
5248

5349
tabPanel(title = "Raw Data", value = "raw", br(),
5450

5551
fileInput(inputId = "assay", label = "Assays:",
56-
accept = ".csv", multiple = TRUE),
52+
accept = ".csv", multiple = TRUE,
53+
placeholder = "assay.csv"),
5754
div(style = "margin-top: -20px"),
5855

5956
fileInput(inputId = "coldata", label = "colData:",
60-
accept = ".csv"),
57+
accept = ".csv", placeholder = "coldata.csv"),
6158
div(style = "margin-top: -20px"),
6259

6360
fileInput(inputId = "rowdata", label = "rowData:",
64-
accept = ".csv"),
61+
accept = ".csv", placeholder = "rowdata.csv"),
6562
div(style = "margin-top: -20px"),
6663

6764
fileInput(inputId = "row.tree",
68-
label = "rowTree:",
65+
label = "rowTree:", placeholder = "row.tree",
6966
accept = c(".tree", ".tre")),
7067
div(style = "margin-top: -20px"),
7168

7269
fileInput(inputId = "col.tree",
73-
label = "colTree:",
70+
label = "colTree:", placeholder = "col.tree",
7471
accept = c(".tree", ".tre")),
7572
div(style = "margin-top: -20px")),
7673

@@ -82,7 +79,8 @@
8279

8380
fileInput(inputId = "main.file",
8481
label = "Main file:", accept = c(".biom",
85-
".QZA", ".txt")),
82+
".QZA", ".txt"),
83+
placeholder = "biom, QZA or txt"),
8684
div(style = "margin-top: -20px"),
8785

8886
conditionalPanel(
@@ -98,11 +96,12 @@
9896
condition = "input.ftype == 'MetaPhlAn'",
9997

10098
fileInput(inputId = "col.data",
101-
label = "colData:", accept = ".tsv"),
99+
label = "colData:", accept = ".tsv",
100+
placeholder = "coldata.tsv"),
102101
div(style = "margin-top: -20px"),
103102

104103
fileInput(inputId = "tree.file",
105-
label = "Tree:",
104+
label = "Tree:", placeholder = "tree.tree",
106105
accept = c(".tree", ".tre"))))),
107106

108107
actionButton("import", "Upload", class = "btn-primary")),

Diff for: R/miaDash.R

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#' @export
2323
#' @rdname miaDash
2424
#' @importFrom iSEE iSEE
25-
#' @importFrom shiny addResourcePath
2625
#' @importFrom utils packageVersion
2726
#' @importFrom htmltools tags
2827
miaDash <- function() {

Diff for: R/observers.R

-5
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#' @importFrom utils read.csv
1818
#' @importFrom ape read.tree
1919
#' @importFrom S4Vectors DataFrame
20-
#' @importFrom shiny isolate observeEvent req
2120
#' @importFrom biomformat read_biom
2221
#' @importFrom mia convertFromBIOM importMetaPhlAn
2322
#' @importFrom TreeSummarizedExperiment TreeSummarizedExperiment
@@ -113,7 +112,6 @@
113112
}
114113

115114
#' @rdname create_observers
116-
#' @importFrom shiny isolate observeEvent req
117115
#' @importFrom SummarizedExperiment assay
118116
#' @importFrom mia subsetByPrevalent subsetByRare agglomerateByRank
119117
#' transformAssay
@@ -195,7 +193,6 @@
195193

196194
#' @rdname create_observers
197195
#' @importFrom stats as.formula
198-
#' @importFrom shiny isolate observeEvent req
199196
#' @importFrom mia addAlpha runNMDS runRDA getDissimilarity
200197
#' @importFrom TreeSummarizedExperiment rowTree
201198
#' @importFrom scater runMDS runPCA
@@ -300,7 +297,6 @@
300297
}
301298

302299
#' @rdname create_observers
303-
#' @importFrom shiny updateSelectInput updateNumericInput observe
304300
#' @importFrom SummarizedExperiment assayNames
305301
#' @importFrom mia taxonomyRanks
306302
#' @importFrom rintrojs introjs
@@ -344,7 +340,6 @@
344340
}
345341

346342
#' @rdname create_observers
347-
#' @importFrom shiny observeEvent
348343
.create_launch_observers <- function(FUN, input, session, rObjects) {
349344

350345
# nocov start

Diff for: R/outputs.R

-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#' @keywords internal
1414

1515
#' @rdname render_output
16-
#' @importFrom shiny renderPrint
1716
.render_overview <- function(output, rObjects) {
1817

1918
# nocov start
@@ -26,7 +25,6 @@
2625
}
2726

2827
#' @rdname render_output
29-
#' @importFrom shiny downloadHandler
3028
.render_download <- function(output, rObjects) {
3129

3230
# nocov start

Diff for: R/utils.R

-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
}
1717

1818
#' @rdname utils
19-
#' @importFrom shiny showNotification
2019
.update_tse <- function(tse, fun, fun_args) {
2120

2221
tse <- tryCatch({withCallingHandlers({
@@ -41,7 +40,6 @@
4140
}
4241

4342
#' @rdname utils
44-
#' @importFrom shiny showModal modalDialog
4543
.print_message <- function(..., title = "Invalid input:") {
4644

4745
# nocov start

Diff for: inst/REFERENCES.bib

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
@Manual{core2024r,
2+
title = {R: A Language and Environment for Statistical Computing},
3+
author = {{R Core Team}},
4+
organization = {R Foundation for Statistical Computing},
5+
address = {Vienna, Austria},
6+
year = {2024},
7+
url = {https://www.R-project.org/},
8+
}
9+
10+
@misc{benedetti2024iseetree,
11+
title={iSEEtree: interactive explorer for hierarchical data},
12+
author={Giulio Benedetti and Ely Seraidarian and Theotime Pralas and Akewak Jeba and Tuomas Borman and Leo Lahti},
13+
year={2024},
14+
eprint={2412.02882},
15+
archivePrefix={arXiv},
16+
primaryClass={cs.MS},
17+
url={https://arxiv.org/abs/2412.02882}
18+
}
19+
20+
@article{rue2018isee,
21+
title={iSEE: interactive summarizedexperiment explorer},
22+
author={Rue-Albrecht, Kevin and Marini, Federico and Soneson, Charlotte and Lun, Aaron TL},
23+
journal={F1000Research},
24+
volume={7},
25+
year={2018},
26+
publisher={Faculty of 1000 Ltd},
27+
doi={10.12688/f1000research.14966.1}
28+
}
29+
30+
@Manual{chang2024shiny,
31+
title = {shiny: Web Application Framework for R},
32+
author = {Winston Chang and Joe Cheng and JJ Allaire and Carson Sievert and Barret Schloerke and Yihui Xie and Jeff Allen and Jonathan McPherson and Alan Dipert and Barbara Borges},
33+
year = {2024},
34+
note = {R package version 1.9.1},
35+
url = {https://CRAN.R-project.org/package=shiny},
36+
}
37+
38+
@Manual{borman2024mia,
39+
title = {mia: Microbiome analysis},
40+
author = {Tuomas Borman and Felix G.M. Ernst and Sudarshan A. Shetty and Leo Lahti},
41+
year = {2024},
42+
note = {R package version 1.14.0},
43+
url = {https://bioconductor.org/packages/mia},
44+
doi = {10.18129/B9.bioc.mia},
45+
}
46+
47+
@article{huang2020treesummarizedexperiment,
48+
title={TreeSummarizedExperiment: a S4 class for data with hierarchical structure},
49+
author={Huang, Ruizhu and Soneson, Charlotte and Ernst, Felix GM and Rue-Albrecht, Kevin C and Yu, Guangchuang and Hicks, Stephanie C and Robinson, Mark D},
50+
journal={F1000Research},
51+
volume={9},
52+
year={2020},
53+
publisher={Faculty of 1000 Ltd},
54+
doi={10.12688/f1000research.26669.2}
55+
}

Diff for: vignettes/miaDash.Rmd

+8-27
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ output:
1414
number_sections: true
1515
self_contained: true
1616
code_folding: show
17+
bibliography: ../inst/REFERENCES.bib
1718
date: "`r doc_date()`"
1819
package: "`r pkg_ver('miaDash')`"
1920
vignette: >
@@ -29,21 +30,6 @@ knitr::opts_chunk$set(
2930
)
3031
```
3132

32-
```{r vignetteSetup, echo=FALSE, message=FALSE, warning=FALSE}
33-
## Bib setup
34-
library(RefManageR)
35-
36-
## Write bibliography information
37-
bib <- c(
38-
R = citation(),
39-
mia = citation("mia")[1],
40-
iSEEtree = citation("iSEEtree")[1],
41-
iSEE = citation("iSEE")[1],
42-
TreeSummarizedExperiment = citation("TreeSummarizedExperiment")[1],
43-
shiny = citation("shiny")[1]
44-
)
45-
```
46-
4733
# Introduction
4834

4935
This notebook provides a practical introduction to the Microbiome Analysis
@@ -169,12 +155,12 @@ citation("miaDash")
169155
miaDash originates from the joint effort of the R/Bioconductor community. It is
170156
mainly based on the following software:
171157

172-
- R `r Citep(bib[["R"]])`, statistical programming language
173-
- `r Biocpkg("mia")` `r Citep(bib[["mia"]])`, framework for microbiome data analysis
174-
- `r Biocpkg("iSEEtree")` `r Citep(bib[["iSEEtree"]])`, TreeSummarizedExperiment interactive explorer
175-
- `r Biocpkg("iSEE")` `r Citep(bib[["iSEE"]])`, SummarizedExperiment interactive explorer
176-
- `r Biocpkg("TreeSummarizedExperiment")` `r Citep(bib[["TreeSummarizedExperiment"]])`, S4 container for hierarchical data
177-
- `r CRANpkg("shiny")` `r Citep(bib[["shiny"]])`, web app development in R
158+
- [R](https://www.r-project.org/), statistical programming language [@core2024r]
159+
- [mia](https://bioconductor.org/packages/release/bioc/html/mia.html), framework for microbiome data analysis [@borman2024mia]
160+
- [iSEEtree](https://bioconductor.org/packages/release/bioc/html/iSEEtree.html), TreeSummarizedExperiment interactive explorer [@benedetti2024iseetree]
161+
- [iSEE](https://bioconductor.org/packages/release/bioc/html/iSEE.html), SummarizedExperiment interactive explorer [@rue2018isee]
162+
- [TreeSummarizedExperiment](https://bioconductor.org/packages/release/bioc/html/TreeSummarizedExperiment.htmlm), S4 container for hierarchical data [@huang2020treesummarizedexperiment]
163+
- [shiny](https://cran.r-project.org/web/packages/shiny/index.html), web app development in R [@chang2024shiny]
178164

179165
## Help
180166

@@ -194,9 +180,4 @@ options(width = 120)
194180
sessionInfo()
195181
```
196182

197-
# References
198-
199-
```{r vignetteBiblio, results="asis", echo=FALSE, warning=FALSE, message=FALSE}
200-
# Print bibliography
201-
PrintBibliography(bib, .opts = list(hyperlink = "to.doc", style = "html"))
202-
```
183+
# References

0 commit comments

Comments
 (0)