ChIPpeakAnno: Invalid row.names length in peaksNearBDP

"Preussner, Jens" <Jens.Preussner-6GLbxAiBP3Zo1qOY/[email protected]> Tue, 26 Aug 2014 06:42:15 +0000
Newsgroups gmane.science.biology.informatics.conductor
Message-ID <2DB14965CF615445B453E3930C87350D55873826@KI-S0113.kerckhoff.mpg.de>
Dear Julie,

I noticed an unwanted breaking of the peaksNearBDP function in your package. When searching for bidirectional promoters in annotationData that contains just one entry, the function gives an "invalid row.names error". Is this intended?

Just for completeness and reproducability, I used the following code:

library("ChIPpeakAnno")
peaks = BED2RangedData(file.path("test.bed"),header=F)
annotation = GFF2RangedData(file.path("ref.gtf"),header=F,comment.char="#",sep="\t")
ovl_data = peaksNearBDP(peaks, AnnotationData = annotation, MaxDistance = 3000, PeakLocForDistance = "middle", FeatureLocForDistance = "TSS")

The two files are attached.
Thanks for your time and best regards,
Jens

_______________________________________________
Bioconductor mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/bioconductor
Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor