Entering edit mode
I have a GenomicRanges object built from interrogated sites and a
RangedData
object of human (allegedly canonical) transcription start sites, from
Julie
Zhu's ChIPpeakAnno package. I want to walk up and down each
chromosome and
find the nearest forward and reverse strand TSS and their distance
from each
site. This seems like it would work:
> nearest(cpgranges, TSS.human.GRCh37)
But one of the objects isn't the right type:
Error in function (classes, fdef, mtable) :
unable to find an inherited method for function "nearest", for
signature
"GRanges", "RangedData"
What's the right way to solve this problem? I know about follow() and
precede(), but those won't work either until I solve this :-)
thanks!
--
If people do not believe that mathematics is simple, it is only
because they
do not realize how complicated life is.
John von Neumann<http: www-groups.dcs.st-="" and.ac.uk="" ~history="" biographies="" von_neumann.html="">
[[alternative HTML version deleted]]