Closed jxshi closed 5 months ago
According to the following error message:
! Error from the generic function 'plotMA' defined in package 'BiocGenerics': no S4 method definition for argument 'object' of class 'DESeqAnalysis' was found. Did you perhaps mean calling the function 'plotMA' from another package, e.g. 'limma'? In that case, please use the syntax 'limma::plotMA'.
The following template inst/rmarkdown/templates/02-differential-expression/skeleton/skeleton.Rmd
, line 279 also needs to be updated:
print(plotMa(object = object, i = i))
Updated version:
print(limma::plotMA(object = object, i = i))
Thanks @jxshi I'll make a couple tweaks to these templates. Note that plotMa
is correct -- we're not using the BiocGenerics variant here.
It looks like you may need to update your R packages -- what does utils::sessionInfo
return?
Current _setup.R
file is here:
https://github.com/acidgenomics/r-acidmarkdown/blob/main/inst/rmarkdown/shared/_setup.R
You can check whether your library is current with:
if (!requireNamespace("BiocManager", quietly = TRUE)) {
install.packages("BiocManager")
}
install.packages(
pkgs = "AcidDevTools",
repos = c(
"https://r.acidgenomics.com",
BiocManager::repositories()
),
dependencies = TRUE
)
AcidDevTools::valid()
Hi @mjsteinbaugh,
Thank you for your timely reply! You are right, the AcidDevTools
package is outdated and needs to be updated. After updating this package, the issue is resolved.
Best, Jianxiang
Hi guys,
Since the function
scale_color_synesthesia_c
inAcidPlots
package has been updated toacid_scale_color_synesthesia_c
, the corresponding code in_setup.R
file needs to be updated.Updated version: