Hey Assaf, The hubs themselves are not stored in a session. They are stored in the hubStatus table in hgcentral. The fact that one has a hub attached *is* stored in a session in a cart variable of the type:
hgHubConnect.hub.N X where N is the id of the hub in the hubStatus table, and X is 0 or 1 depending on whether the user has the hub turned on or not. To create a URL to open a hub in hgTracks, add "hubUrl=http://myserver/hub.txt" to your URL. e.g. http://genome.ucsc.edu/cgi-bin/hgTracks?db=hg19&hubUrl=http://hgwdev.cse.ucsc.edu/~braney/myHub/hub.txt I hope this answers your questions. If not, please respond to this list. brian On Thu, Sep 15, 2011 at 7:51 AM, Assaf Gordon <[email protected]> wrote: > Hello, > > Is there a way to create an HTML link that will automatically load a hub > definition file ? > > Similar to using "hgt.customText" with hgTracks, as so: > http://genome.ucsc.edu/hgTracks?...&hgt.customText=http://myserver/mytrack.txt > > but with hubs ? > > Also, > Are "My Hubs" saved as part of a session ? > > That is, > If I load a private hub file, save my session and share it with another user > - will the private hub be automatically loaded by the other user ? > > > Thanks, > -gordon > _______________________________________________ > Genome maillist - [email protected] > https://lists.soe.ucsc.edu/mailman/listinfo/genome > _______________________________________________ Genome maillist - [email protected] https://lists.soe.ucsc.edu/mailman/listinfo/genome
