[Bioc-devel] initialize method for ExpressionSet
mtmorgan at fhcrc.org
Mon Aug 3 14:46:05 CEST 2009
Hi Matthias --
Matthias Kohl wrote:
> Dear all,
> just had a look at the initialize method for class ExpressionSet.
> As far as I understand, the part "else if (missing(exprs))" won't be
> called as you have "exprs = new("matrix")" in the definition of the method.
In an R function
foo <- function(x=integer()) missing(x)
'missing' has to do with whether the argument is provided by the user,
not in the function definition.
> So, is
> expected to give an error?
no, no error expected, or seen.
ExpressionSet (storageMode: lockedEnvironment)
assayData: 0 features, 0 samples
element names: exprs
varLabels and varMetadata description: none
fvarLabels and fvarMetadata description: none
experimentData: use 'experimentData(object)'
It helps to have your sessionInfo(); implementations change and it's
hard to know which version you're referring to. Here's mine for the above:
R version 2.9.0 Patched (2009-06-06 r48723)
attached base packages:
 stats graphics grDevices utils datasets methods base
other attached packages:
loaded via a namespace (and not attached):
More information about the Bioc-devel