Skip to content

Commit

Permalink
fix error when intron not on same chr as any genes in the txdb (issue #…
Browse files Browse the repository at this point in the history
  • Loading branch information
ischeller committed May 2, 2024
1 parent e775832 commit 3db74d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/resultAnnotations.R
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ checkIntergenic <- function(junctions_gr, i, refseq.genes){
# check if distance to nearest is > 1000 -> intergenic
# otherwise up/downstream
dist = min(distance(test_junction, refseq.genes), na.rm = TRUE)
if(dist > 0){
if(is.finite(dist) && dist > 0){
# find nearest and compare starts
if(start(refseq.genes[nearest(junctions_gr[i],
refseq.genes)]) > start){
Expand Down

0 comments on commit 3db74d9

Please sign in to comment.