Skip to content

Commit

Permalink
added exampleDataPaths funtion for GEO urls
Browse files Browse the repository at this point in the history
  • Loading branch information
jrboyd committed Nov 20, 2024
1 parent b7ff885 commit 8bd1469
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export(exampleBigWigFiles)
export(exampleBigWig_data.frame)
export(exampleChIPtsne2)
export(exampleChIPtsne2.with_meta)
export(exampleDataPaths)
export(examplePeaks)
export(exampleProfDT)
export(exampleQueryGR)
Expand Down
14 changes: 14 additions & 0 deletions R/functions_examples.R
Original file line number Diff line number Diff line change
Expand Up @@ -155,3 +155,17 @@ exampleBigWig_data.frame = function(){
bigwig_config_df$file = file.path(pkg_dir, bigwig_config_df$file)
bigwig_config_df
}

#' exampleDataPaths
#'
#' @return data.frame with URL paths to FE bigwigs and narrowPeak files.
#' @export
#'
#' @examples
#' exampleDataPaths()
exampleDataPaths = function(){
url_dt = data.table::fread(system.file("extdata/example_data_paths.csv", package = "chiptsne2", mustWork = TRUE))
url_dt[, bw_file := paste0(cell, "_", mark, "_FE.bw")]
url_dt[, narrowPeak_file := paste0(cell, "_", mark, ".narrowPeak")]
url_dt[]
}
17 changes: 17 additions & 0 deletions man/exampleDataPaths.Rd

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

0 comments on commit 8bd1469

Please sign in to comment.