Entering edit mode
jens
•
0
@jens-20467
Last seen 5.7 years ago
Hi,
I have encountered an unexpected behaviour of the newSeqExpressionSet function. Passing an integer count matrix 'count.m' of size 4957x999 to the function results in the following error:
> newSeqExpressionSet(count.m)
Error in validObject(.Object) :
invalid class “SeqExpressionSet” object: featureNames differ between assayData and featureData
Using the same matrix works if the dimensionality is specified explicitly:
> newSeqExpressionSet(count.m[1:4957,1:999])
SeqExpressionSet (storageMode: lockedEnvironment)
assayData: 4957 features, 999 samples
element names: counts, normalizedCounts, offset
protocolData: none
phenoData: none
featureData: none
experimentData: use 'experimentData(object)'
Annotation:
The abstract form also works as expected:
> newSeqExpressionSet(count.m[1:dim(count.m)[1],1:dim(count.m)[2]])
SeqExpressionSet (storageMode: lockedEnvironment)
assayData: 4957 features, 999 samples
element names: counts, normalizedCounts, offset
protocolData: none
phenoData: none
featureData: none
experimentData: use 'experimentData(object)'
Annotation:
Software versions:
R version 3.5.1 (2018-07-02)
Platform: x86_64-redhat-linux-gnu (64-bit)
Running under: CentOS Linux 7 (Core)
Biobase_2.42.0
Although providing the explicit dimension values is a fairly simple work-around, it seems to be a bug worth fixing.
I would share the input matrix if required for validation.
Kind regards, Jens
In the future please add the package that the function comes from as a post tag. Please also include the full
sessionInfo()
that show the versions of the packages you are using. Your versions information you provide does not include the package the function came from.Thanks for the suggestions. I have reproduced the error on a second computer (my laptop) today and the full sessionInfo() is below.
Reproduced on second computer with latest Biobase packages.