Accepts any number of tracks, returns the configuration string necessary to load these tracks into your JBrowse view.

tracks(...)

Arguments

...

The tracks to be added to the JBrowse 2 view

Value

a character vector of stringified JSON configuration for all tracks to add to the browser

Examples

# 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)
#> [1] "[{\"type\": \"AlignmentsTrack\", \"name\": \"alignments\", \"assemblyNames\": [\"hg19\"], \"trackId\": \"hg19_alignments\", \"adapter\": { \"type\": \"BamAdapter\", \"bamLocation\": { \"uri\": \"alignments.bam\" }, \"index\": { \"location\": { \"uri\": \"alignments.bam.bai\" } } } }]"