An embeddable interactive genome browser powered by igv.js. Unlike the other plotomics components this one is config-driven: igv.js streams and tiles remote indexed files (BAM/CRAM, bigWig, VCF, BED, ...) itself, so data flows through the browser configuration as URLs rather than as columns.
Usage
igv(
genome = "hg38",
locus = NULL,
tracks = list(),
config = NULL,
width = NULL,
height = NULL,
element_id = NULL
)Arguments
- genome
Genome identifier understood by igv.js (e.g.
"hg38","hg19","mm10"). Used whenconfigisNULL.- locus
Optional initial locus string, e.g.
"chr8:127,736,588-127,739,371", or a gene symbol.- tracks
A list of igv.js track configurations (each a named list with at least a
url). Used whenconfigisNULL.- config
Optional full igv.js browser configuration (named list). When supplied it is passed through as-is and the convenience arguments are ignored.
- width, height
Widget dimensions (any valid CSS size).
- element_id
Optional explicit DOM id.