default_session | R Documentation |
Creates the necessary configuration string for a default session for your browser. A default session is the set of tracks that are displayed when your browser is first displayed.
default_session(assembly, displayed_tracks, display_assembly = TRUE)
assembly |
the config string generated by |
displayed_tracks |
a vector of tracks generated by a |
display_assembly |
a boolean determining whether the reference sequence is visible or not. TRUE by default. |
a character vector of stringified JSON configuration for the defaultSession to be used by the browser when first loaded
# create the assembly configuration assembly <- assembly("https://jbrowse.org/genomes/hg19/fasta/hg19.fa.gz", bgzip = TRUE) # create variant and wiggle tracks variant <- track_variant( "clinvar.vcf.gz", assembly ) wiggle <- track_wiggle( "read-cov.bw", assembly ) # create a default session with those tracks open by default default_session <- default_session( assembly, c(variant, wiggle) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.