I am trying to figure out how to make a custom annotation that I can feed into the annotatePeakInBatch function which is part of the ChIPpeakAnno package for Bioconductor.
The usage is something like this,
annotatePeakInBatch(myPeakList, AnnotationData) where myPeakList is a list of peaks derived from a ChIP-seq exeperiment.
I want to be able to create a set of custom annotations for C. elegans.
I would like to be able to make use of data like the human gene ortholog, the wormbase gene name.
I assume the getBM function for BiomaRt might be of help. However, I haven't been able to figure out how to get this to produce the annotations for all genes of a particular species, nor how to convert the output to something that is suitable for annotatePeakInBatch.
This looks good. Thanks!