Perhaps my question should have been: Do you know if there is a way of 
adding a custom track programatically at all?  How, in general, do I add 
a custom track without going through this interface: 
http://genome.ucsc.edu/cgi-bin/hgCustom .   Should I be sending an HTTP 
request instead?  Or should the method below (ie. just opening a 
formatted URL) work, as long as I have formatted the file/url correctly?

It's not so much the Java I'm asking about, but more that I'm having a 
hard time figuring out if this is even the right way to go about it.

-Michelle

On 12-06-12 10:50 AM, Greg Roe wrote:
> The only thing I can suggest is to make sure the URL in the new web 
> browser window includes the hgt.customText parameter.
>
> - Greg
>
>
> On 6/11/12 4:35 PM, Michelle Ly wrote:
>> Hi there,
>>
>> I'm a new user to genome browsers.  I'm trying to create a GWT
>> application that lets users select some parameters and then open a UCSC
>> browser.  As a start, I have a button that just opens a custom track.
>> I'm testing with one of the examples provided on the website:
>>
>> http://genome.ucsc.edu/cgi-bin/hgTracks?org=human&position=chr22&hgt.customText=http://genome.ucsc.edu/goldenPath/help/examples/ct_example1.txt
>>  
>>
>> <http://genome.ucsc.edu/cgi-bin/hgTracks?org=human&position=chr22&hgt.customText=http://genome.ucsc.edu/goldenPath/help/examples/ct_example1.txt>
>>  
>>
>>
>> It works when I simply copy and paste that url into a new window, but if
>> I try to open it via code, it doesn't work:
>>
>> Button b = new Button("Open", new ClickHandler() {
>>           public void onClick(ClickEvent event) {
>>
>> Window.open("http://genome.ucsc.edu/cgi-bin/hgTracks?org=human&position=chr22&hgt.customText=http://genome.ucsc.edu/goldenPath/help/examples/ct_example1.txt";,
>>  
>>
>> "_blank", "");
>>           }
>>         });
>>
>> It opens up a generic view of chromosome 22 instead.  Any ideas?
>>
>> -Michelle
>>
>>
>> _______________________________________________
>> 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