Skip to content

Commit a156490

Browse files
committed
fix: dont run failing ideogram example check
1 parent 8193be1 commit a156490

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

NAMESPACE

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,13 @@ importFrom(methods,extends)
131131
importFrom(patchwork,wrap_plots)
132132
importFrom(rlang,.data)
133133
importFrom(rlang,as_label)
134+
importFrom(rtracklayer,GRangesForUCSCGenome)
135+
importFrom(rtracklayer,browserSession)
136+
importFrom(rtracklayer,getTable)
134137
importFrom(rtracklayer,import)
138+
importFrom(rtracklayer,tableName)
139+
importFrom(rtracklayer,ucscGenomes)
140+
importFrom(rtracklayer,ucscTableQuery)
135141
importFrom(scales,comma)
136142
importFrom(scales,rescale)
137143
importFrom(scales,scientific)

R/geom_ideogram.R

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,21 @@
2121
#'
2222
#' @return Plot.
2323
#' @importFrom dplyr %>%
24-
#' @importFrom GenomicRanges GRanges makeGRangesFromDataFrame
24+
#' @importFrom GenomicRanges GRanges makeGRangesFromDataFrame trim
2525
#' @importFrom IRanges IRanges subsetByOverlaps
26-
#' @importFrom ggplot2 ggplot_add ggplot geom_rect aes_string geom_polygon theme_classic theme element_blank
27-
#' scale_x_continuous scale_y_continuous margin
26+
#' @importFrom ggplot2 ggplot_add ggplot geom_rect aes_string geom_polygon
27+
#' theme_classic theme element_blank scale_x_continuous scale_y_continuous
28+
#' margin
2829
#' @importFrom patchwork wrap_plots
2930
#' @importFrom methods extends
3031
#' @importFrom utils menu
32+
#' @importFrom rtracklayer ucscGenomes ucscTableQuery tableName getTable
33+
#' GRangesForUCSCGenome browserSession
3134
#' @importFrom GenomeInfoDb seqlengths seqlengths<- seqnames
32-
#' @importFrom GenomicRanges trim GRanges
3335
#' @export
3436
#'
3537
#' @examples
38+
#' \dontrun{
3639
#' library(ggbio)
3740
#'
3841
#' # load metadata
@@ -68,6 +71,7 @@
6871
#' basic_coverage +
6972
#' geom_gene(gtf.gr = gtf_gr) +
7073
#' geom_ideogram(genome = "hg19", plot.space = 0)
74+
#' }
7175
#'
7276
geom_ideogram <- function(genome = "hg19", mark.color = "red", mark.alpha = 0.7, mark.line.size = 1,
7377
add.shadow = TRUE, shadow.color = "grey", shadow.alpha = 0.7, shadow.line.size = 1,

R/utils.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ getIdeogram <- function(genome, subchr = NULL, cytobands = TRUE) {
275275
suppressWarnings(GenomeInfoDb::seqlengths(gr) <- new.seqlength)
276276
gr <- GenomicRanges::trim(gr)
277277
} else {
278-
message("cytoBand informatin is not available, only get ranges.")
278+
message("cytoBand information is not available, only getting ranges.")
279279
message("Loading ranges...")
280280
gr <- rtracklayer::GRangesForUCSCGenome(genome)
281281
message("Done")

man/geom_ideogram.Rd

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)