Re: [Bioc-devel] SummarizedExperiment: duplication of metadata, when modifying colData

2017-12-14 Thread Hervé Pagès
Hi Felix, Nice catch. This can actually be reproduced with just: > example(SummarizedExperiment) > metadata(se0) <- list(aa="aa") > se0[1 , ] <- se0[1 , ] > metadata(se0) $aa [1] "aa" $aa [1] "aa" The culprit is this line: ans_metadata <- c(metadata(x), metadata(value)) in

[Bioc-devel] SummarizedExperiment: duplication of metadata, when modifying colData

2017-12-12 Thread Felix Ernst
Hi all, I got a bit of weird behaviour with SummarizedExperiments in Bioc 3.6 and 3.7. I suppose it is a bug, but I might be wrong, since the accession to the SummarizedExperiment object is not really straight forward. Any suggestions? library(GenomicRanges) library(SummarizedExperiment)