Skip to content

Commit

Permalink
Check for missing annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
timoast committed Apr 17, 2024
1 parent 10480f0 commit 7f7a992
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/utilities.R
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,9 @@ ClosestFeature <- function(
stop("No query regions supplied")
}
annotation <- SetIfNull(x = annotation, y = Annotation(object = object))
if (is.null(x = annotation)) {
stop("No annotations present for the requested assay")
}
missing_seqlevels <- setdiff(
x = seqlevels(x = regions), y = seqlevels(x = annotation)
)
Expand Down

0 comments on commit 7f7a992

Please sign in to comment.