This tool was originally created to help temporarily debug problems reported by users who are developing hubs. For example, if there was a remote assembly hub and one wanted to make a local copy of the trackDb architecture, one could provide hubClone the URL to the hub.txt and replicate a working copy. Of note, however, almost all of the files for the hub data would still be remote, and pointed to with URLs. For instance, here is a plant assembly hub,
https://genome-test.gi.ucsc.edu/~hiram/hubs/Plants/hub.txt, which in turn points to a genomes.txt,
https://genome-test.gi.ucsc.edu/~hiram/hubs/Plants/genomes.txt, and then several trackDb.txt files and related assembly hub support files. Here is the usage of hubClone to copy this hub:
The result is a copy of the hub architecture in a local directory, but wherever there was a local reference to a file, such as in the above genomes.txt for this stanza for a Arabidopsis assembly hub, the remote locations of the file data are substituted in, so the copy of the hub will continue to work in the UCSC Genome Browser when the new hub.txt URL is pasted in:
Original assembly hub stanza in the genomes.txt: