Add track hubs
Track hubs allow for the display of tracks of data alongside the other data in the Ensembl genome browser. This is a very flexible feature and the data can be hosted anywhere.
The following is an annotated example of an RNA-seq alignment track hub on the Heliconius melpomene melpomene Hmel2 assembly available on ensembl.lepbase.org, which you can adapt to suit your data. Trackhubs are not visible by default but can be displayed by using the cog symbol to configure lowest of the region views on the linked page.
Set up the track hub
Add the track data to a publicly accessible location:
here the data are added to a directory hosted at download.lepbase.org/v4/trackhub/data/rnaseq/heliconius_melpomene_melpomene_hmel2/
$ ls -sh /path/to/trackhub/data/rnaseq/heliconius_melpomene_melpomene_hmel2/
total 2.3G
98M 13F.bw 103M 15A.bw 101M ERR232445.bw 81M ERR232460.bw
111M 13G.bw 104M 15B.bw 81M ERR232447.bw 163M SRR2076766.bw
105M 13H.bw 104M 15C.bw 75M ERR232451.bw 129M SRR2076767.bw
110M 13I.bw 96M 15D.bw 108M ERR232456.bw 211M SRR2076768.bw
105M 13J.bw 111M 15E.bw 100M ERR232458.bw 212M SRR2076769.bwCreate a hub.txt file with a description of the data available in the track hub:
$ nano /path/to/trackhub/rnaseq/hub.txt
hub LepBase-RNASeq
shortLabel RNA-Seq Alignments
longLabel RNA-Seq Alignments for LepBase
genomesFile genomes.txt
email help@lepbase.orgCreate a genomes.txt file with a 2 line entry for each assembly linking the assembly name to the associated track configuration files:
Create a trackDb.txt file for your assembly:
the first section creates a superTrack to group all datasets
the following sections define three compositeTracks, one for each of the datasets included in the track hub
the remaining sections each specify the path to one of the bigwig files hosted on download.lepbase.org and the compositeTrack to which the sample belongs
For each sample, add an html file with a brief description to a docs folder:
this will be displayed if a user clicks the information icon while configuring the display in the Ensembl browser to show/hide tracks
Add the track hub to your Ensembl browser
Add/edit an assembl-specific configuration file in your Ensembl plugin:
update the
urlto point to your own siteremember to commit and push the changes when done
Restart your Ensembl site to add the track hub:
adding the trackhub to an assembly requires a restart, but subsequent changes to the data/configuration files will be picked up automatically
Last updated
Was this helpful?