track_data_frame | R Documentation |
Creates the necessary configuration string for an R data frame so that it can be viewed as a track in a JBrowse custom linear genome view.
track_data_frame(track_data, track_name, assembly)
track_data |
the data frame with track data. Must have cols:
|
track_name |
the name to use for the track |
assembly |
the config string generated by |
a character vector of stringified track JSON configuration
assembly <- assembly("https://jbrowse.org/genomes/hg19/fasta/hg19.fa.gz", bgzip = TRUE)
df <- data.frame(
chrom = c(1, 2),
start = c(123, 456),
end = c(789, 101112),
name = c('feature1', 'feature2')
)
track_data_frame(df, "my_features", assembly)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.