Skip to content

Commit

Permalink
Fix examples and import conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
HDash committed Jun 25, 2024
1 parent 97e2854 commit 7653d6f
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 17 deletions.
4 changes: 0 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ Imports:
BiocParallel,
DT,
ggplot2,
patchwork,
plotly,
scales,
tidyverse,
universalmotif,
GenomicRanges,
Expand All @@ -52,7 +50,6 @@ Imports:
rmarkdown,
curl,
jsonlite,
htmltools,
viridis,
emoji,
SummarizedExperiment,
Expand All @@ -68,7 +65,6 @@ Suggests:
markdown,
methods,
remotes,
rmarkdown,
rworkflows,
testthat (>= 3.0.0),
utils
Expand Down
6 changes: 6 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,18 @@ export(read_motif_file)
export(read_peak_file)
export(report_command)
export(report_header)
import(ggplot2)
import(plotly, except = last_plot)

import(tidyverse)
importFrom(BiocFileCache,BiocFileCache)
importFrom(BiocFileCache,bfcinfo)
importFrom(DT,datatable)
importFrom(GenomicAlignments,summarizeOverlaps)
importFrom(Rsamtools,countBam)
importFrom(SummarizedExperiment,assay)
importFrom(curl,curl_fetch_memory)
importFrom(emoji,emoji)
importFrom(htmltools,tagList)
importFrom(htmlwidgets,JS)
importFrom(jsonlite,fromJSON)
Expand All @@ -30,3 +35,4 @@ importFrom(universalmotif,read_meme)
importFrom(universalmotif,read_transfac)
importFrom(universalmotif,read_uniprobe)
importFrom(utils,browseURL)
importFrom(viridis,scale_fill_viridis)
5 changes: 5 additions & 0 deletions R/MotifPeeker.R
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,14 @@
#' @inheritParams read_motif_file
#' @inheritParams check_genome_build
#'
#' @import ggplot2
#' @import tidyverse
#' @importFrom emoji emoji
#' @importFrom viridis scale_fill_viridis
#' @importFrom tools file_path_sans_ext
#' @importFrom rmarkdown render
#' @importFrom utils browseURL
#' @rawNamespace import(plotly, except = last_plot)
#'
#' @return Path to the output directory.
#'
Expand Down
2 changes: 1 addition & 1 deletion R/calc_frip.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#' read_file <- Rsamtools::BamFile(read_file)
#' data("CTCF_ChIP_peaks", package = "MotifPeeker")
#'
#' frip(read_file, CTCF_ChIP_peaks)
#' calc_frip(read_file, CTCF_ChIP_peaks)
#'
#' @export
calc_frip <- function(
Expand Down
2 changes: 1 addition & 1 deletion R/check_ENCODE.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#' @importFrom jsonlite fromJSON
#'
#' @examples
#' check_ENCODE("ENCFF109VAD")
#' check_ENCODE("ENCFF109VAD", expect_format = "bam")
#'
#' @export
check_ENCODE <- function(encode_id, expect_format, verbose = FALSE) {
Expand Down
4 changes: 0 additions & 4 deletions R/link_JASPAR.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
#' @returns A character string containing the JASPAR motif link. If
#' \code{motif_id} is not a valid JASPAR motif ID, it is returned as is.
#'
#' @examples
#' link_JASPAR("MA1930.2")
#' link_JASPAR("MA1930.2", download = TRUE)
#'
#' @keywords internal
link_JASPAR <- function(motif_id, download = FALSE) {
if (is.na(motif_id) || !startsWith(motif_id, "MA")) {
Expand Down
2 changes: 2 additions & 0 deletions R/print_DT.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#' @importFrom htmlwidgets JS
#' @importFrom htmltools tagList
#'
#' @returns A DT object suitable to be used with \code{print()}.
#'
#' @keywords internal
print_DT <- function(df, html_tags = FALSE, extra = FALSE) {
## Handle empty values
Expand Down
2 changes: 1 addition & 1 deletion man/calc_frip.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/check_ENCODE.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions man/link_JASPAR.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/print_DT.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7653d6f

Please sign in to comment.