Hey Gordon,

You can use a custom track in conjunction with track hubs to do what
you want.  For example this URL:

http://genome.ucsc.edu/cgi-bin/hgTracks?hubUrl=http://genome-test.cse.ucsc.edu/~braney/encodeHub/hub.txt&hgt.customText=http://genome-test.cse.ucsc.edu/~braney/custom.txt

... will add a hub, set the position, and set up a track within it to
be displayed in pack mode.   Unfortunately this requires that you know
the hub id in order to build the track names in the hub.    This
number is from the id in the hubStatus table, is associated with a
hubUrl, and is fairly stable in that once you've added a hubUrl, the
hub id will stay be the same each time you attach a hub.  You can see
the hub id number if you click on an item in one of your hub tracks.
The id number will be after "hub_" in the URL.

We realize that this is a bit arcane.  We're working on a better way
to do what you want with hubs.  Stay tuned.

brian



On Fri, Sep 16, 2011 at 8:46 AM, Assaf Gordon <[email protected]> wrote:
> Thank you Brian,
>
> This works perfectly.
>
> Brian Raney wrote, On 09/15/2011 12:20 PM:
>>
>> 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
>>
>
> A related question:
> Is there a way to use "browser" directives with a hub, or combine a "hubUrl" 
> and "hgt.customText"  CGI parameters ?
>
> My goal is to give users a single URL (e.g. with "hubUrl") to automatically 
> load all the tracks, but also have specific tracks displayed and at specific 
> browser location.
>
> Something like:
>  browser position chr2:50000-60000
>  browser hide all
>  browser pack refGene
>  browser pack [my hub tracks]
>
>
> Any suggestions are welcomed.
>
> Thanks again!
>
>
> _______________________________________________
> Genome maillist  -  [email protected]
> https://lists.soe.ucsc.edu/mailman/listinfo/genome
>

_______________________________________________
Genome maillist  -  [email protected]
https://lists.soe.ucsc.edu/mailman/listinfo/genome

Reply via email to