When I want to create an MA plot from the data normalized by rma
method, the following error is shown. Could anybody help me solve this issue?
> library(affy)
> library(GEOquery)
> library(tidyverse)
> getGEOSuppFiles("GSE57178")
> untar("GSE57178/GSE57178_RAW.tar", exdir = "data/")
> data.affy <- ReadAffy(celfile.path = "data/")
> data.rma <- rma(data.affy)
> MAplot(data.rma, which = c(1:18), plot.method = "smoothScatter", type = "pm")
Error in (function (classes, fdef, mtable) :
unable to find an inherited method for function MAplot for signature "ExpressionSet"
> sessionInfo()
R version 4.3.3 (2024-02-29)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 22.04.4 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.10.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.10.0
locale:
[1] LC_CTYPE=en_US.UTF-8
[2] LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8
[4] LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8
[6] LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8
[8] LC_NAME=C
[9] LC_ADDRESS=C
[10] LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8
[12] LC_IDENTIFICATION=C
tzcode source: system (glibc)
attached base packages:
[1] stats graphics grDevices utils datasets
[6] methods base
other attached packages:
[1] hugene10stv1cdf_2.18.0 lubridate_1.9.3
[3] forcats_1.0.0 stringr_1.5.1
[5] dplyr_1.1.4 purrr_1.0.2
[7] readr_2.1.5 tidyr_1.3.1
[9] tibble_3.2.1 ggplot2_3.5.0
[11] tidyverse_2.0.0 GEOquery_2.70.0
[13] affy_1.80.0 Biobase_2.62.0
[15] BiocGenerics_0.48.1
Thank you so much. I watched a video from Harvard in which the instructor used
affy::MAplot
for output ofrma
function and it worked for them without any error. I think that the implementation of one of the two functions may have been changed afterward which results in this error. I wonder, is there another alternative that its output plot is like that of theaffy::MAplot
? This can help for easier comparison between before and after normalization, asaffycoretools::maplot
is not implemented forAffyBatch
objects.