Hello Inbal, To clear the Browser and reset all controls - do a cart reset. A link is on the main genome gateway page, the Table browser page, or here: http://genome-test.cse.ucsc.edu/cgi-bin/cartReset
The Sessions feature would be a great solution. If you really want only a specific location to open, open the session to that position and use that URL for sharing. I suppose as part of you code that interacts between your web server and the genome browser you could incorporate the cart reset, a series of track control URLs (or "hide all"), and then the URL custom track creation (as Galt defined). Then add the position URL to the Session link Creating a new Session each time a user views the data is not recommended. Sessions are intended to be more permanent and are therefore saved longer on our server (but keep backups!). Instead, create a one or a few sessions with the "background" tracks of interest and use those as the base. Remember, that you can always set a custom track to "hide" - just because the data is loaded does not mean that it has to be displayed. Good luck and we hope this clarifies things a bit more. Be sure to read the Session help I sent earlier - it covers in detail most of this information with examples of usage paths. Jennifer Jackson UCSC Genome Bioinformatics Group Inbal Paz wrote: > Hello Galt and Jennifer, > > Thanks for your quick reply. > I'm not sure your suggestions solve the problem so I'll try to describe it > clearer and attach an example. > I'm writing a web server and want to display the results in the genome > browser. I construct a web page with links to the URLs - each URL should > display tracks of a different sequence (see the attached html file). > I want that the user will open the link and get the correct display in the > genome browser without having to delete former tracks or load files > manually. > The problem I encountered is that once I load custom tracks to the genome > browser via the URL construction machinery, the tracks are saved and when I > load another URL, the previous tracks I've loaded are added. How can I > automatically "clean" the genome browser after each URL loading? > Should I use the "sessions" feature and create a different session for each > sequence? Is there a way to create a session automatically (by providing a > file)? > > Thanks, > Inbal > > -----Original Message----- > From: Galt Barber [mailto:[email protected]] > Sent: Monday, June 22, 2009 11:25 PM > To: [email protected] > Cc: 'yael mandel-gutfreund'; Inbal Paz > Subject: Re: [Genome] Questions about custom tracks > > > I would like to add that there is another possibility > that might be useful to you. > > Make a file that just contains the URLs of the tracks > that you want, one line per URL. > > Then feed the URL of this list file to the customTracks > machinery. > > It will work recursively > (a little bit like an include file does in C), > bringing in each of the other URLs. > > -Galt > > > On Mon, 22 Jun 2009, Jennifer Jackson wrote: > > >> Hello Inbal, >> >> For best results, load each separately using the Custom track >> page/tools. Loading using a URL is an option. >> http://genome.ucsc.edu/goldenPath/help/hgTracksHelp.html#CustomTracks >> >> For organizing/retaining track settings, use the Sessions feature. >> http://genome.ucsc.edu/goldenPath/help/hgTracksHelp.html#Sessions >> >> Try these methods and let us know if you continue to experience problems, >> Jennifer Jackson >> UCSC Genome Bioinformatics Group >> >> >> Inbal Paz wrote: >> >>> Hi, >>> >>> I encountered a problem when loading a custom track by constructing a URL >>> (for example: >>> >>> > http://genome.ucsc.edu/cgi-bin/hgTracks?org=human&position=chr3&hgt.customTe > > xt=http://sfmap.technion.ac.il/1245062002/chr3:71184417-71184564:-/bedgraph. > >>> txt). The problem occurs when I try to load more than one URL to the same >>> browser (each URL contains different track), on by one, without clearing >>> > the > >>> browser's cache. The tracks are mixed up with each other. I found out >>> > that > >>> I have to delete the cookies after loading one URL and then open the next >>> URL in a different browser in order to display the track properly. Is >>> > there > >>> a way to avoid doing this procedure and load all the URLs in the same >>> browser? >>> >>> In addition, I would like to know if it's possible to load a custom track >>> and automatically switch on one of the UCSC tracks (the UCSC genes track, >>> for example). I assume it involves adding some code to my custom track >>> > file > >>> (I use the Bedgraph format). >>> >>> Thanks in advance, >>> Inbal Paz >>> >>> >>> >>> >>> >>> >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Genome maillist - [email protected] >>> https://lists.soe.ucsc.edu/mailman/listinfo/genome >>> >>> >> _______________________________________________ >> Genome maillist - [email protected] >> https://lists.soe.ucsc.edu/mailman/listinfo/genome >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Genome maillist - [email protected] >> https://lists.soe.ucsc.edu/mailman/listinfo/genome >> _______________________________________________ Genome maillist - [email protected] https://lists.soe.ucsc.edu/mailman/listinfo/genome
