View source: R/get_encode_peaks_metadata.R
get_encode_peaks_metadata | R Documentation |
Get a subset of the ENCODE metadata for epigenomic peaks in human data.
get_encode_peaks_metadata(
save_dir = tools::R_user_dir(package = "PeakyFinders", which = "cache"),
overwrite = FALSE
)
overwrite |
Should any local files of the same name be overwritten?
default |
### Get peak data only #####
meta <- search_encode(file_type = "peak",
assembly = "GRCh38",
organism = "Homo sapiens",
partial_match = TRUE)
for(col in names(meta)){
if(all(is.na(meta[[col]]))){
messager("Removing:",col)
meta[[col]] <- NULL
}
}
tmp <- "~/Downloads/encode_peaks_metadata.tsv.gz"
data.table::fwrite(meta, file = tmp, sep="\t")
piggyback::pb_new_release(repo = "neurogenomics/PeakyFinders",
tag="latest")
piggyback::pb_upload(file = tmp,
repo = "neurogenomics/PeakyFinders",
overwrite = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.