Skip to content

[Bioc-devel] 'droplevels' argument in `[` method for SummarizedExperiment?

4 messages · Martin Morgan, Michael Lawrence, Steve Lianoglou +1 more

#
On 03/12/2014 03:02 PM, Wolfgang Huber wrote:
vs. x$tissue = droplevels(x$tissue)
there are a surprising number of places were levels could be dropped -- each 
column of colData, each column of (possibly two levels of) 'mcols' on the row 
data, and the seqlevels of the row data.

Does this make sense lower in the class hierarchy, e.g., Vector, as well as 
GRanges/List?

Martin

  
    
#
On Wed, Mar 12, 2014 at 3:52 PM, Michael Lawrence
<lawrence.michael at gene.com> wrote:
Or do:

colData(x) <- droplevels(colData(x))
Perhaps true, however in Wolfgan'g case (the DESeqDataSet) I think
most people would want that to work over the colData of the object.

In which case, perhaps DESeq2 should just define
droplevels,DESeqDataSet to work over the colData of the dds for to
enable that convenience.

-steve