tracks: Create a set of tracks for a custom JBrowse 2 view

View source: R/tracks.R

tracksR Documentation

Create a set of tracks for a custom JBrowse 2 view

Description

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

Usage

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)

JBrowseR documentation built on June 8, 2023, 6:41 a.m.