hasaru-k / GlimmaV2

interactive plots for differential expression analysis
GNU Lesser General Public License v3.0
25 stars 8 forks source link

BiocStyle::html_document does not render Glimma plots #80

Closed nztao closed 2 years ago

nztao commented 2 years ago

Knitting Rmd files with the BiocStyle::html_document output (BiocStyle_2.25.0) does not appear and shows a blank space. However, if you remove "BiocStyle::" and use html_document, the interactive plot renders successfully and embeds/appears as expected.

For example, I followed a demonstration similar to the posted Glimma guide:

> ---
> title: "Example: Issues rendering Glimma plots"
> output:
>   BiocStyle::html_document:
>     toc: true
>     toc_float:
>       collapsed: true
>       smooth_scroll: true
> vignette: |
>   %\VignetteIndexEntry{Example: Issues rendering Glimma plots}
>   %\VignetteEngine{knitr::rmarkdown}
>   %\VignetteEncoding{UTF-8}
> ---
# Glimma plots do not embed with BiocStyle

```{r}
#Packages needed
if (!require("BiocManager", quietly = TRUE))
    install.packages("BiocManager")

BiocManager::install(c("Glimma", "limma", "edgeR"))

library(Glimma)
library(limma)
library(edgeR)

#Load and read in example RNAseq123 data from wd()
#https://github.com/hasaru-k/GlimmaV2/blob/master/inst/RNAseq123/dge.rds
dge <- readRDS("dge.rds")

MDS Plot

glimmaMDS(dge)

Session info {.unnumbered}

sessionInfo()

I tried updating all my package versions and using `render(x, BiocStyle::html_document())` to process it, but no luck. Any suggestions? 

Thank you!
Shians commented 2 years ago

Thanks for the report, I think the issue will need to be resolved by BiocStyle. Thanks also for starting the conversation on it with Bioc support https://support.bioconductor.org/p/9145537/.