Track Hub Example

From Genecats
Jump to navigationJump to search

Venkat, of ENCODE3 at Stanford, has a trackhubtest repository you can check out from github to add to your public_html folder to create your own example Track Hub. By copying the example, it provides a means to explore the mechanics of Hubs by adding lines and editing the Hub.

Web address of Venkat's GitHub repository:

From your command line in a directory in your public_html directory use the following command to clone the repository:

Then create a link to the hub.txt file, for example if hub.txt is in the directory where you cloned it, such as, /cluster/home/brianlee/public_html/trackHubTestVenkat/VenkatClone/trackhubtest/, you can create a URL to access the hub.txt file from your directory (example):

Drop your URL in the "My Hubs" page and change visibility to see the different tracks:

By making copies and changes to the Hub architecture, you can explore Hub architecture. An excellent easy "Homework Problem" is to take all the individual .txt files in the hg19/ directory and put them in the trackDb.txt file where they would normally live (replacing every "include xxx.txt" line with the text that is broken out in an external file).