This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Question about aggregated() function of opm R package

I'm trying to run the test data provided by the opm R package (Example_1.csv.xz, Example_2.csv.xz, Example_3.csv.xz). And when I want to check aggregated data, I met an Error.

aggregated(example.opm)

Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘aggregated’ for signature ‘"OPM"’


And here is the completed code:

files <- opm_files("testdata")
example.opm <- read_opm(files, include = "*Example_?.csv.xz")
x <- do_aggr(example.opm)
aggregated(example.opm) 

Here is the version information:

R 4.1.2

opm 1.3.77


I'd appreciate it if anyone knows how to solve this problem. Thanks for reading.

biolog microarrays opm r phenotype

1 answer

I think the reason is that I need to add one step, do_aggr(), before the aggregated() step.

Log in to answer this question.