tracks | R Documentation |
Accepts any number of tracks, returns the configuration string necessary to load these tracks into your JBrowse view.
tracks(...)
... |
The tracks to be added to the JBrowse 2 view |
a character vector of stringified JSON configuration for all tracks to add to the browser
# create an assembly configuration and alignments track assembly <- assembly("https://jbrowse.org/genomes/hg19/fasta/hg19.fa.gz", bgzip = TRUE) alignments <- track_alignments("alignments.bam", assembly) # create a tracks configuration with the alignments track tracks(alignments)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.