ChIPpeakAnno: Invalid row.names length in peaksNearBDP
1
0
Entering edit mode
@jens-preussner-6712
Last seen 5.0 years ago
Germany
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
Annotation AnnotationData Annotation AnnotationData • 1.2k views
ADD COMMENT
1
Entering edit mode
Julie Zhu ★ 4.3k
@julie-zhu-3596
Last seen 5 months ago
United States
Jens, Thanks for reporting the bug in function peaksNearBDP! Jianhong has fixed it and the new version is 2.14.1 (revision 93700). Best regards, Julie On 8/26/14 2:42 AM, "Preussner, Jens" <jens.preussner at="" mpi-="" bn.mpg.de=""> wrote: 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 [[alternative HTML version deleted]]
ADD COMMENT

Login before adding your answer.

Traffic: 955 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6