Get metadata for a BED file or BEDset given its id. Abort if not found or id is not not 32 characters.

bb_metadata(bedbase, id, full = FALSE)

Arguments

bedbase

BEDbase() object

id

integer(1) record or object identifier

full

logical(1) (default FALSE) include full record with stats, files, and metadata

Value

list() metadata

Examples

bedbase <- BEDbase()
#> 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()
#> 

ex_bedset <- bb_example(bedbase, "bedset")
bb_metadata(bedbase, ex_bedset$id)
#> $id
#> [1] "gse197519"
#> 
#> $name
#> [1] "gse197519"
#> 
#> $md5sum
#> [1] "68446c42cb23bce7207f3b6f4a761387"
#> 
#> $submission_date
#> [1] "2025-05-02T10:19:51.283823Z"
#> 
#> $last_update_date
#> [1] "2025-05-02T10:19:51.283826Z"
#> 
#> $statistics
#> NULL
#> 
#> $plots
#> NULL
#> 
#> $description
#> [1] "Data from [GEO GSE197519](https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE197519)\nVanguard is a glucose deprivation-responsive long non-coding RNA essential for chromatin remodeling-reliant DNA repair"
#> 
#> $summary
#> NULL
#> 
#> $bed_ids
#> $bed_ids[[1]]
#> [1] "3053b7b8be8ca1502b46946dde0e4ced"
#> 
#> $bed_ids[[2]]
#> [1] "98d8fbbdde4e7b510e4b5f9fe469b78f"
#> 
#> 
#> $author
#> [1] "Ben, Zhang"
#> 
#> $source
#> [1] "gse197519"
#>