Re: [Bioc-devel] rownames in SummerizedExperiments

2014-04-06 Thread Hervé Pagès
Hi Michael, Simon, On 04/06/2014 02:32 PM, Michael Lawrence wrote: On Sat, Apr 5, 2014 at 8:42 AM, Simon Anders wrote: Hi On 05/04/14 17:39, Simon Anders wrote: When I use "mcols" on a SummerizedExperiment object, I get a DataFrame with the row metadata, but without rownames. This is quite

Re: [Bioc-devel] rownames in SummerizedExperiments

2014-04-06 Thread Simon Anders
Hi > This is because an > SE is modeled as a matrix, which does not have the same constraint as a > data.frame. Thanks, Michael. That's the point I was missing. I never realized that array dimnames don't have to be unique. Strange, actually. Simon _

Re: [Bioc-devel] rownames in SummerizedExperiments

2014-04-06 Thread Michael Lawrence
eSet constrains rownames to be unique, so that's a precedent. Seems like there should at least be row/column consistency here. On Sun, Apr 6, 2014 at 6:22 PM, Martin Morgan wrote: > On 04/06/2014 04:21 PM, Michael Lawrence wrote: > >> >> >> >> On Sun, Apr 6, 2014 at 2:48 PM, Simon Anders >

Re: [Bioc-devel] rownames in SummerizedExperiments

2014-04-06 Thread Martin Morgan
On 04/06/2014 04:21 PM, Michael Lawrence wrote: On Sun, Apr 6, 2014 at 2:48 PM, Simon Anders mailto:and...@embl.de>> wrote: Hi Michael On 06/04/14 23:32, Michael Lawrence wrote: > On an arbitrary vector, the names do not need to be unique, but they DO > need to be unique on

Re: [Bioc-devel] rownames in SummerizedExperiments

2014-04-06 Thread Michael Lawrence
On Sun, Apr 6, 2014 at 2:48 PM, Simon Anders wrote: > Hi Michael > > On 06/04/14 23:32, Michael Lawrence wrote: > > On an arbitrary vector, the names do not need to be unique, but they DO > > need to be unique on a DataFrame (according to the data.frame > > conventions). Conditioning on whether t

Re: [Bioc-devel] rownames in SummerizedExperiments

2014-04-06 Thread Simon Anders
Hi Michael On 06/04/14 23:32, Michael Lawrence wrote: > On an arbitrary vector, the names do not need to be unique, but they DO > need to be unique on a DataFrame (according to the data.frame > conventions). Conditioning on whether there are duplicate names would be > too complicated, so it is lef

Re: [Bioc-devel] rownames in SummerizedExperiments

2014-04-06 Thread Michael Lawrence
On Sat, Apr 5, 2014 at 8:42 AM, Simon Anders wrote: > Hi > > On 05/04/14 17:39, Simon Anders wrote: > > When I use "mcols" on a SummerizedExperiment object, I get a DataFrame > > with the row metadata, but without rownames. This is quite annoying if I > > want to select specific rows using my fea

Re: [Bioc-devel] rownames in SummerizedExperiments

2014-04-05 Thread Simon Anders
Hi On 05/04/14 17:39, Simon Anders wrote: > When I use "mcols" on a SummerizedExperiment object, I get a DataFrame > with the row metadata, but without rownames. This is quite annoying if I > want to select specific rows using my feature identifiers. Okay, I should have read the help page for "mc

[Bioc-devel] rownames in SummerizedExperiments

2014-04-05 Thread Simon Anders
Hi Martin et al. When I use "mcols" on a SummerizedExperiment object, I get a DataFrame with the row metadata, but without rownames. This is quite annoying if I want to select specific rows using my feature identifiers. Would it be possible to change that? Simon Demonstration of the issue: