Download files and import signals.

importSignalFromUrl(urls, range, cols, format = "BigWig")

Arguments

urls

Vector of character. URLs.

range

GRanges object. The coordinates.

cols

The colors for each signal.

format

The format of the file.

Value

A list of track object

Examples

library(GenomicRanges)
range <- GRanges('chr4:50000-100000')
## set the URLs
prefix <- 'https://www.encodeproject.org/files/'
url <- c(H3K9me3 = 'ENCFF776OVW/@download/ENCFF776OVW.bigWig')
urls <- paste0(prefix, url)
names(urls) <- names(url)
# download the files and import the signals
# genomicSigs <- importSignalFromUrl(urls, range = range,
#                                     cols = list(
#                                       'H3K9me3'=c('#000011', 'blue'),
#                                       'H3K27ac'=c('#111100', 'orange')),
#                                     format = 'BigWig')