Skip to content

Commit eb0b3c3

Browse files
committed
Fix bug
1 parent dc9ad77 commit eb0b3c3

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ importFrom(Biostrings,letterFrequency)
2121
importFrom(Biostrings,readDNAStringSet)
2222
importFrom(GenomeInfoDb,"seqlengths<-")
2323
importFrom(GenomeInfoDb,seqlengths)
24+
importFrom(GenomeInfoDb,seqnames)
2425
importFrom(GenomicRanges,GRanges)
2526
importFrom(GenomicRanges,makeGRangesFromDataFrame)
2627
importFrom(GenomicRanges,setdiff)

R/geom_ideogram.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#' @importFrom patchwork wrap_plots
2222
#' @importFrom methods extends
2323
#' @importFrom utils menu
24-
#' @importFrom GenomeInfoDb seqlengths seqlengths<-
24+
#' @importFrom GenomeInfoDb seqlengths seqlengths<- seqnames
2525
#' @importFrom GenomicRanges trim
2626
#' @importFrom S4Vectors values<-
2727
#' @export

R/utils.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ getIdeogram <- function(genome, subchr = NULL, cytobands = TRUE) {
222222
message("Done")
223223
}
224224
if (length(subchr)) {
225-
gr <- gr[seqnames(gr) == subchr]
225+
gr <- gr[GenomeInfoDb::seqnames(gr) == subchr]
226226
}
227227

228228
gr <- sort(gr)

0 commit comments

Comments
 (0)