I have the following MAE:
> data A MultiAssayExperiment object of 4 listed experiments with user-defined names and respective classes. Containing an ExperimentList class object of length 4: [1] BRCA_miRNASeqGene-20160128: SummarizedExperiment with 500 rows and 65 columns [2] BRCA_RNASeqGene-20160128: SummarizedExperiment with 500 rows and 187 columns [3] exp_1: SummarizedExperiment with 500 rows and 65 columns [4] exp_2: SummarizedExperiment with 500 rows and 65 columns
When i run wideformat function on data i have the following error (but only when patients are > 107):
> wideFormat(data[1:20, 1:108, ])
Error in dimnames(x) <- dn : length of 'dimnames' [2] not equal to array extent
Any suggestions?
This sounds like a corner case that we'll need to have either the object itself or reproducible code that generates it, in order to debug. Would appreciate that very much if you can provide it.
Actually, can I request that you first do your subsetting alone in a step, before trying
wideFormat()
? I see that you are attempting to select columns (1:108) that do not exist in some of your experiments (three have only 65 columns), which is likely the cause of your error.With only subsetting no error is generated! but with 1:107 wideformat runs! (and also this do not exist in some of my experiments) !