Link to UCSC gtexGene track description page for selected gene symbol I have this link that comes up when I am in the browser window and click on the gene name, which leads me to description page about the gene (in this example it is BOK gene).

How can I generate that link? Below are some of my failed attempts. There is a UCSC FAQ page about the links, didn't help much, maybe I am reading it wrong.

Link that works, generated when clicked on gene on the website:

http://genome-euro.ucsc.edu/cgi-bin/hgc?hgsid=226968178_C6XmUjsjtt3Mm9fOmePo6VqRN6TV&amp;c=chr2&amp;l=241667282&amp;r=242920780&amp;o=242498135&amp;t=242513546&amp;g=gtexGene&amp;i=BOK

Which gives me this page:


My failed attempts to generated custom link:

http://genome-euro.ucsc.edu/cgi-bin/hgTracks?db=hg19&amp;position=chr2%3A241667283-242920780&amp;gtexGene&amp;i=BOK

http://genome.ucsc.edu/cgi-bin/org=human&amp;db=hg19&amp;gtexGene&amp;i=BOK

http://genome.ucsc.edu/cgi-bin/gtexGene?org=human&amp;db=hg19&amp;i=BOK

http://genome.ucsc.edu/cgi-bin/gtexGene?org=human&amp;db=hg19&amp;hgg_gene=BOK

http://genome.ucsc.edu/cgi-bin/gtexGene?org=human&amp;db=hg19&amp;i=BOK

http://genome.ucsc.edu/cgi-bin/gtexGene?org=human&amp;db=hg19&amp;g=gtexGene&amp;i=BOK

http://genome.ucsc.edu/cgi-bin/org=human&amp;db=hg19&amp;g=gtexGene&amp;i=BOK

http://genome.ucsc.edu/cgi-bin/hgTracks?org=human&amp;db=hg19&amp;g=gtexGene&amp;i=BOK
You never want to include the hgsid parameter in your url because that is the link to your current browsing session and all its specific contents. So if you send that link to someone else and then they start browsing around that link may not work correctly again in the future if you or the person you sent the link to modify your browsing session.

As to how to create links to hgc pages, the usually follow a somewhat general format:
http://genome-euro.ucsc.edu/cgi-bin/hgc?db=hg19&amp;c=chr2&amp;o=242498135&amp;t=242513546&amp;g=gtexGene&amp;i=BOK

You need the db and g parameters to specify the assembly build and track, and then you need to provide the position in the form of the c,o and t parameters. The last thing you want is the i paramter to specify the item name. The reason the i parameter alone is not enough is because we do not require uniqueness on item names (there may be many copies of an item across the genome for instance).

You can obtain the c, o, t and i parameters by selecting the chrom, chromStart, chromEnd and name fields from the gtexGene table:

$ mysql --user=genome --host=genome-mysql.soe.ucsc.edu -A -P 3306 -e "select chrom, chromStart, chromEnd, name from gtexGene limit 1" hg38
+-------+------------+----------+---------+
| chrom | chromStart | chromEnd | name    |
+-------+------------+----------+---------+
| chr1  |      11868 |    13052 | DDX11L1 |
+-------+------------+----------+---------+