Hello Eric, The url attribute should be working. Are you following this syntax?
http://genome.ucsc.edu/goldenPath/help/hgTracksHelp.html#TRACK url=<external_url> - Defines a URL for an external link associated with this track. This URL will be used in the details page for the track. Any '$$' in this string this will be substituted with the item name. There is no default for this attribute. Using example 5 from the FAQ above with slight modifications, the format would be like this (below). When you paste into the Custom track submission form, make certain that all track line attributes are on a single line (remove newlines). Use hg18. browser position chr7:127471196-127495720 browser hide all track name="ItemRGBDemo" description="Item RGB demonstration" visibility=2 url=http://maps.google.com/ chr7 127471196 127472363 Pos1 0 + 127471196 127472363 255,0,0 chr7 127472363 127473530 Pos2 0 + 127472363 127473530 255,0,0 chr7 127473530 127474697 Pos3 0 + 127473530 127474697 255,0,0 chr7 127474697 127475864 Pos4 0 + 127474697 127475864 255,0,0 chr7 127475864 127477031 Neg1 0 - 127475864 127477031 0,0,255 chr7 127477031 127478198 Neg2 0 - 127477031 127478198 0,0,255 chr7 127478198 127479365 Neg3 0 - 127478198 127479365 0,0,255 chr7 127479365 127480532 Pos5 0 + 127479365 127480532 255,0,0 chr7 127480532 127481699 Neg4 0 - 127480532 127481699 0,0,255 After loading, click on an item, and on the description page will be "Outside Link: <name>" where name is a hyperlink. The example goes to google maps just as a demonstration. When you build this, the variable $$ can be added to the url to make it item name-specific. Please test the example and then your own dataset. If your dataset still has track line url attribute problems, we would be interested in viewing. Create a small sample, save into a Session, then send the Session link (link obtained from inside the Session tool, not just the url of the browser page) and we can provide feedback. Please reply back to the mailing list (dummy data/url is OK, as long as the formats and other settings are the same as the real data with problems). http://genome.ucsc.edu/goldenPath/help/hgTracksHelp.html#Sessions Thank you, Jennifer --------------------------------- Jennifer Jackson UCSC Genome Informatics Group http://genome.ucsc.edu/ On 5/5/10 7:48 AM, Eric Fournier wrote: > Greetings, > > I'm trying to display a custom track where clicking each individual items > within the track leads to a documentation page specific to said items, much > like how gene tracks are displayed, where clicking on an individual gene > brings up a specific gene-card. > > I've found a post from 2004 in this mailing list giving details on how this > could be done ( > https://lists.soe.ucsc.edu/pipermail/genome/2004-July/005185.html ). However, > this information is either not current or I'm not reading it correctly, as > I've been unable to make use of it to solve my problem. Namely: > > 1) I've found the "url" track attribute to be ignored. Other documentation > mentioned the htmlUrl attribute, but this one does not seem to expand the > variables mentionned in message I've linked to. For example, my current track > information is "track name=myTestTrack description="Some FooBar'ed track" > visibility=2 htmlUrl=http://mydomain.com/$$.html", and fails to load data > from a file named MyTrackItem.html. > > 2) It seems that the htmlUrl attribute causes the text content of the page to > be obtained and pasted in the description page, which makes it impossible to > put image data there. I guess if the variable expansion work, I can just use > this area to display an external link with richer data formatting options. > However, the very best would be if clicking on the item in the genome browser > itself linked directly to the external page. Is that possible? This point was > also touched in the message I linked, but no answers were provided. > > I'm trying to avoid having to mirror the UCSC Genome browser locally to > achieve this, but I can probably do it if it's absolutely necessary. > > Thanks a lot for any help, > -Eric fournier > > _______________________________________________ > Genome maillist - [email protected] > https://lists.soe.ucsc.edu/mailman/listinfo/genome _______________________________________________ Genome maillist - [email protected] https://lists.soe.ucsc.edu/mailman/listinfo/genome
