Dear all,
SummarizedExperiment and matrixStats both contain a method/function called
rowRanges one operates on a SummarizedExperiment-object the other on a
matrix. matrixStats is required by SummarizedExperiment, or a package it is
depending on, so rowRanges is masked when loading SummarizedExperiment.
I thought a function/method is called depended on the type of the object;
matrix or SummarizedExperiment-object, such that functions/methods with the
same name can coexist. However, this doesn't seems to work for rowRanges.
The only way to access rowRanges from matrixStats when SummarizedExperiment
is already loaded is using the double colon operator
matrixStats::rowRanges. Is this intentional or is there a other way to
solve this?
Regards,
Maarten
Here is a small example showing the issue:
library(SummarizedExperiment)
Loading required package: matrixStats
matrixStats v0.51.0 (2016-10-08) successfully loaded. See ?matrixStats for
help.
Attaching package: ?matrixStats?
Attaching package: ?SummarizedExperiment?
The following object is masked from ?package:matrixStats?:
rowRanges