track_feature | R Documentation |
Creates the necessary configuration string for an indexed GFF3 file so that it can be used in a JBrowse custom linear genome view.
track_feature(track_data, assembly)
track_data |
the URL to the GFF3 file |
assembly |
the config string generated by |
It is important to note that while only the GFF3 file is
passed as an argument, tracks_variant
assumes that a GFF3
index of the same name is located with the file
For example:
track_feature("data/features.gff")
Assumes that data/features.gff.tbi
also exists.
This is a JBrowse 2 convention, and the default naming output of tabix
For more information on creating an index with tabix, visit https://www.htslib.org/
a character vector of stringified FeatureTrack JSON configuration
assembly <- assembly("https://jbrowse.org/genomes/hg19/fasta/hg19.fa.gz", bgzip = TRUE) track_feature("features.gff", assembly)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.