[BioC] [Bioc-devel] granges() method for GenomicRanges objects akin to ranges()...

Julian Gehring julian.gehring at embl.de
Tue Jul 8 19:36:30 CEST 2014


Hi Herve,

>> 2) A 'dropMcols' or 'dropmcols' method with signature 'GRanges' that is
>> a wrapper for
>>    mcols(x) <- NULL
>
> How about setMcols(), which is more general than dropmcols()?
>

Do you mean a function like:

   setMcols <- function(x, value = NULL) {
     mcols(x) = value
     return(x)
   }

I'd be fine with this.  However, some argued before that setting to NULL 
may be counterintuitive for non-advanced users.

Best wishes
Julian



More information about the Bioconductor mailing list