Re: [Bioc-devel] Unexpected behaviour with Assays and Vector classes

2015-11-15 Thread Aaron Lun
Hello all, I've encountered some unexpected behaviour with some of the base classes while developing stuff for genomic interactions. The first issue lies with the subset replacement in the Vector class. Let's say I make a derived class "foo" inheriting from Vector, as below: > require(S4Vect

Re: [Bioc-devel] Unexpected behaviour with Assays and Vector classes

2015-11-15 Thread Hervé Pagès
Hi Aaron, On 11/15/2015 10:59 AM, Aaron Lun wrote: Hello all, I've encountered some unexpected behaviour with some of the base classes while developing stuff for genomic interactions. The first issue lies with the subset replacement in the Vector class. Let's say I make a derived class "foo" in

Re: [Bioc-devel] Unexpected behaviour with Assays and Vector classes

2015-11-15 Thread Aaron Lun
Hi Herve, I would have expected GRanges behaviour, where the metadata is affected by the replacement. For example, with GRanges objects, I often use the metadata to store statistics or descriptors relevant to each genomic interval, e.g., peak scores, log-fold changes and so on. If I did a replacem

Re: [Bioc-devel] Unexpected behaviour with Assays and Vector classes

2015-11-16 Thread Hervé Pagès
Hi Aaron, On 11/15/2015 12:37 PM, Aaron Lun wrote: Hi Herve, I would have expected GRanges behaviour, where the metadata is affected by the replacement. For example, with GRanges objects, I often use the metadata to store statistics or descriptors relevant to each genomic interval, e.g., peak s

Re: [Bioc-devel] Unexpected behaviour with Assays and Vector classes

2015-11-16 Thread Hervé Pagès
Hi Aaron, On 11/16/2015 09:39 AM, Hervé Pagès wrote: Hi Aaron, On 11/15/2015 12:37 PM, Aaron Lun wrote: Hi Herve, I would have expected GRanges behaviour, where the metadata is affected by the replacement. For example, with GRanges objects, I often use the metadata to store statistics or desc

Re: [Bioc-devel] Unexpected behaviour with Assays and Vector classes

2015-11-18 Thread Hervé Pagès
Developers, On 11/16/2015 11:39 PM, Hervé Pagès wrote: Hi Aaron, On 11/16/2015 09:39 AM, Hervé Pagès wrote: [...] Anyway, you convinced me that we should not try to follow too closely the names model for how we treat metadata columns. If nobody objects, I'll change the behavior of the various

Re: [Bioc-devel] Unexpected behaviour with Assays and Vector classes

2015-12-03 Thread Morgan, Martin
> -Original Message- > From: Bioc-devel [mailto:bioc-devel-boun...@r-project.org] On Behalf Of > Hervé Pagès > Sent: Sunday, November 15, 2015 2:54 PM > To: Aaron Lun; bioc-devel@r-project.org > Subject: Re: [Bioc-devel] Unexpected behaviour with Assays and Vector >