Skip to content

Commit

Permalink
Add api_header
Browse files Browse the repository at this point in the history
  • Loading branch information
jwokaty committed Aug 14, 2024
1 parent 85dce46 commit 5898ada
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 12 deletions.
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Generated by roxygen2: do not edit by hand

export(.BEDbase)
export(bb_bed_text_search)
export(bb_beds_in_bedset)
export(bb_example)
Expand All @@ -9,6 +10,7 @@ export(bb_metadata)
export(bb_to_granges)
export(bb_to_grangeslist)
export(bedbaser)
exportClasses(BEDbase)
importFrom(AnVIL,Service)
importFrom(BiocFileCache,BiocFileCache)
importFrom(BiocFileCache,bfcadd)
Expand Down
Empty file added R/BEDbase-class.R
Empty file.
9 changes: 0 additions & 9 deletions R/bedbase-class.R

This file was deleted.

22 changes: 21 additions & 1 deletion R/bedbaser.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
#' BEDbase class
#'
#' @importFrom methods new
#'
#' @export
.BEDbase <- setClass(
"BEDbase",
contains = "Service"
)


#' @rdname bedbaser
#'
#' @title An R client for BEDbase
Expand All @@ -8,7 +19,7 @@
#'
#' @details
#'
#' The main functions are as follows
#' The convenience functions are as follows
#' * `bedbaser::bedbaser()`: API constructor
#' * `bedbaser::bb_example()`: Retrieve an example BED file or BEDset
#' * `bedbaser::bb_metadata()`: Retrieve metadata for a BED file or BEDset
Expand All @@ -34,13 +45,22 @@ bedbaser <- function() {
Service(
service = "BEDbase",
host = "api.bedbase.org",
api_reference_version = .BEDBASE_API_REFERENCE_VERSION,
authenticate = FALSE,
api_url = "https://api.bedbase.org/openapi.json",
package = "bedbaser"
)
)
}


## Copied from the AnVIL package
.api_header <- function(api) api@api_header

.BEDBASE_API_REFERENCE_VERSION <- "0.5.0"



#' Get the example BED file or BEDset with metadata
#'
#' @param api API object of BEDbase created from bedbaser()
Expand Down
2 changes: 1 addition & 1 deletion man/BEDbase-class.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/bedbaser.Rd

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

0 comments on commit 5898ada

Please sign in to comment.