[Bioc-devel] Gviz AnnotationTrack fails when [-operator is defined

2014-05-04 Thread Sebastian Gibb
Dear Florian, dear all, I want to use Gviz::AnnotationTrack to visualize my own class. This class overloads the [ operator. It seems that just the definition of my own [ results in a method dispatching error: Error in callNextMethod(x, i) : bad object found as method (class “function”) After

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

2014-05-04 Thread Tim Triche, Jr.
I wanted something to extract @ranges from a GRanges object along with its @seqnames, @strand, and @seqinfo. Essentially, everything but the mcols. Does this make sense? Is there a lighter-weight way to avoid any copying in-flight? setMethod(granges, GRanges, function(x) {

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

2014-05-04 Thread Tim Triche, Jr.
Right, what I was wondering however is whether it's possible not to create or modify the object at all, but rather access only the necessary bits. It seems like a slightly different structure that puts all the location in one place (say @granges) and the metadata in another (as it presently

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

2014-05-04 Thread Michael Lawrence
Why not just do mcols(gr) - NULL It's way more obvious than granges(gr). And that should happen virtually instantaneously in R 3.1, regardless of the length. On Sun, May 4, 2014 at 3:55 PM, Tim Triche, Jr. tim.tri...@gmail.comwrote: Right, what I was wondering however is whether it's

[Bioc-devel] Installing Annotation Packages Matching a Pattern

2014-05-04 Thread Dario Strbenac
Hello, I would like to install all software packages and also all annotation packages containing the pattern Hsapiens or Mmusculus in their name. I know about biocLite(all_group()) to do the first task, but I'm not sure if it's possible to query the repository with a pattern. The installation

Re: [Bioc-devel] Installing Annotation Packages Matching a Pattern

2014-05-04 Thread Martin Morgan
The BiocInstaller package library(BiocInstaller) defines appropriate repositories biocinstallRepos() that can be queried for available packages that are named consistently with your needs nms = row.names(available.packages(contrib.url(biocinstallRepos( want = grep(Hsapiens|Mmusculus,

Re: [Rd] Historical NA question

2014-05-04 Thread Hadley Wickham
Thanks Luke! Hadley On Sat, May 3, 2014 at 11:48 AM, luke-tier...@uiowa.edu wrote: Hint: Ross will be 60 this year. luke On Sat, 3 May 2014, Hadley Wickham wrote: Can anyone tell me what the significance of 1954 is in R's NA? Thanks! Hadley -- Luke Tierney Chair, Statistics and

Re: [Rd] Historical NA question

2014-05-04 Thread Spencer Graves
A fortune? Spencer On 5/4/2014 6:00 AM, Hadley Wickham wrote: Thanks Luke! Hadley On Sat, May 3, 2014 at 11:48 AM, luke-tier...@uiowa.edu wrote: Hint: Ross will be 60 this year. luke On Sat, 3 May 2014, Hadley Wickham wrote: Can anyone tell me what the significance of 1954 is in R's

Re: [Rd] Historical NA question

2014-05-04 Thread Michael Friendly
On 03/05/2014 12:39 PM, Hadley Wickham wrote: Can anyone tell me what the significance of 1954 is in R's NA? Just ask R: 2*(1-pnorm(1954)) [1] 0 2*(1-pnorm(1954)) %in% NA [1] 0 __ R-devel@r-project.org mailing list