Creates the necessary configuration string for a bigWig file so that it can be used in a JBrowse custom linear genome view.

track_wiggle(track_data, assembly)

Arguments

track_data

the URL to the bigWig file

assembly

the config string generated by assembly

Value

a character vector of stringified WiggleTrack JSON configuration

Examples

track_wiggle(
  "https://jbrowse.org/genomes/hg19/COLO829/colo_normal.bw",
  assembly("https://jbrowse.org/genomes/hg19/fasta/hg19.fa.gz", bgzip = TRUE)
)
#> [1] "{ \"type\": \"QuantitativeTrack\", \"name\": \"colo_normal\", \"assemblyNames\": [\"hg19\"], \"trackId\": \"hg19_colo_normal\", \"adapter\": { \"type\": \"BigWigAdapter\", \"bigWigLocation\": { \"uri\": \"https://jbrowse.org/genomes/hg19/COLO829/colo_normal.bw\" } } }"