A subset of the ENCODE metadata that includes links to all human epigenomic peaks data.
peaks_metadata_encode(
save_dir = tools::R_user_dir(package = "PeakyFinders", which = "cache"),
overwrite = FALSE
)
### Get peak data only #####
meta <- search_encode(file_type = c("^bed narrowpeak","^bed broadpeak"),
assembly = "GRCh38",
organism = "Homo sapiens",
partial_match = TRUE)
meta <- subset(meta[(!file_type
PeakyFinders:::drop_empty_cols(meta)
tmp <- "~/Downloads/encode_peaks_metadata.tsv.gz"
data.table::fwrite(meta, file = tmp, sep="\t")
Directory to cache file in.
Should any local files of the same name be overwritten?
default TRUE
.
meta <- peaks_metadata_encode()
#> Loading required namespace: piggyback