bedbaser exposes the bedhost API
and includes convenience functions for common tasks, such as to import a
BED file by id into a GRanges object and a BEDset by its id into a
GRangesList.
BEDbase(cache_path, quietly = FALSE)
getCache(x, cache_type = c("bedfiles", "bedsets"))
setCache(x, cache_path, quietly = TRUE)BEDbase object
BEDbase() creates a cache similar to that of the
Geniml BBClient's cache.
The convenience functions are as follows
bedbaser::BEDbase(): API service constructor
bedbaser::getCache(): Retrieve cache
bedbaser::setCache(): Set path to cache
bedbaser::bb_stats(): Retrieve BEDbase statistics
bedbaser::bb_example(): Retrieve an example BED file or BEDset
bedbaser::bb_metadata(): Retrieve metadata for a BED file or BEDset
bedbaser::bb_list_beds(): List all BED files
bedbaser::bb_list_bedsets(): List all BEDsets
bedbaser::bb_beds_in_bedset(): List BED files in BEDset
bedbaser::bb_bed_text_search(): Search BED files by text
bedbaser::bb_to_granges(): Create a GRanges object from a BED id
bedbaser::bb_to_grangeslist(): Create a GRangesList from a BEDset id
bedbaser::bb_save(): Save a BED file to a path.
bedbase <- BEDbase(cache_path = tempdir())
#> 128999 BED files available.
ex_bed <- bb_example(bedbase, "bed")
bb_metadata(bedbase, ex_bed$id)
#> $name
#> [1] "Histone ChIP-seq from SJSA1 (ENCLB902REK)"
#>
#> $genome_alias
#> [1] "hg38"
#>
#> $genome_digest
#> NULL
#>
#> $bed_compliance
#> [1] "bed6+4"
#>
#> $data_format
#> [1] "encode_narrowpeak"
#>
#> $compliant_columns
#> [1] 6
#>
#> $non_compliant_columns
#> [1] 4
#>
#> $header
#> NULL
#>
#> $id
#> [1] "e3fb49d8d0b292d51e0bca8b021357ad"
#>
#> $description
#> [1] "H3K27me3 ChIP-seq on human SJSA1"
#>
#> $submission_date
#> [1] "2025-06-03T19:53:38.941093Z"
#>
#> $last_update_date
#> [1] "2025-08-29T20:12:17.721073Z"
#>
#> $is_universe
#> [1] FALSE
#>
#> $license_id
#> [1] "DUO:0000042"
#>
#> $annotation
#> $annotation$species_name
#> [1] "Homo sapiens"
#>
#> $annotation$species_id
#> [1] "9606"
#>
#> $annotation$genotype
#> [1] ""
#>
#> $annotation$phenotype
#> [1] ""
#>
#> $annotation$description
#> [1] ""
#>
#> $annotation$cell_type
#> [1] ""
#>
#> $annotation$cell_line
#> [1] ""
#>
#> $annotation$tissue
#> [1] ""
#>
#> $annotation$library_source
#> [1] "genomic"
#>
#> $annotation$assay
#> [1] "ChIP-Seq"
#>
#> $annotation$antibody
#> [1] "H3K27me3"
#>
#> $annotation$target
#> [1] ""
#>
#> $annotation$treatment
#> [1] ""
#>
#> $annotation$global_sample_id
#> $annotation$global_sample_id[[1]]
#> [1] "geo:gsm5111821"
#>
#>
#> $annotation$global_experiment_id
#> $annotation$global_experiment_id[[1]]
#> [1] "geo:gse167669"
#>
#>
#> $annotation$original_file_name
#> [1] "GSM5111821_ENCFF117KAW_pseudoreplicated_peaks_GRCh38.bed.gz"
#>
#>
#> $processed
#> [1] FALSE
#>
#> $stats
#> NULL
#>
#> $plots
#> NULL
#>
#> $files
#> NULL
#>
#> $universe_metadata
#> NULL
#>
#> $raw_metadata
#> NULL
#>
#> $bedsets
#> list()
#>