[BioC] summarizeOverlaps: ambiguous method dispatch
Martin Morgan
mtmorgan at fhcrc.org
Sun May 19 02:50:17 CEST 2013
On 05/18/2013 04:38 PM, Michael Lawrence wrote:
> Entering this code:
>
> library(TxDb.Hsapiens.UCSC.hg19.knownGene)
> library(LungCancerLines)
> exons <- exons(TxDb.Hsapiens.UCSC.hg19.knownGene, vals = list(gene_id =
> "7157"))
> counts <- summarizeOverlaps(exons, LungCancerBamFiles())
>
> Yields:
>
> Note: method with signature 'GAlignments#Vector' chosen for function
> 'countOverlaps',
> target signature 'GAlignments#GRanges'.
> "Vector#GenomicRanges" would also be valid
> Note: method with signature 'GAlignments#Vector' chosen for function
> 'countOverlaps',
> target signature 'GAlignments#GRanges'.
> "Vector#GenomicRanges" would also be valid
>
> While this is apparently harmless, a couple of questions:
>
> - What is the rationale for defining countOverlaps methods on 'Vector'? If
> this is a simple wrapper, why not go all the way to ANY?
>
> - Would it be feasible to avoid these Notes (which probably unnecessarily
> worry the user), for example by defining specific methods for GenomicRanges
> and GRangesList? I realize that dual dispatch is inherently prone to
> ambiguities, but some brute-forcing might be worth the effort.
Yes, this will get addressed, thanks for the heads up. Martin
>
> Michael
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> Bioconductor mailing list
> Bioconductor at r-project.org
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor
>
--
Computational Biology / Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N.
PO Box 19024 Seattle, WA 98109
Location: Arnold Building M1 B861
Phone: (206) 667-2793
More information about the Bioconductor
mailing list