17c23271d8e3b97b89d6e3b9ded90d1c14d3e23d
max
  Tue Nov 3 00:25:20 2015 -0800
fixing off-by-one errors in external tools menu, refs #16308

diff --git src/hg/hgTracks/extTools.ra src/hg/hgTracks/extTools.ra
index aec8692..0374ec6 100644
--- src/hg/hgTracks/extTools.ra
+++ src/hg/hgTracks/extTools.ra
@@ -1,81 +1,82 @@
 # accepted wildcards:
 # Existing URL replacement chars in trackDb, e.g.
 # $s - chrom name, stripping "chr"
 # $S - full chrom name, leaving "chr"
 # $[ - start position of window
+# $start1 - start position of window + 1
 # $] - end position of window
 # $n - current organism name, spaces replaced with underscores
 # $D - current database, like hg19
 
 # Additional ones:
 # $seq - current sequence in view
 # $taxId - taxon id of current db
 # $returnUrl - full URL of current hgTracks page
 # $position - current position, format chr:start-end
 # $halfLen - 1/2 of the current window size (for pointing external tools to the current center)
 
 # If something doesn't work, Hit "Esc" when the redirection takes place and append 
 # &debug=1
 # to the URL shown in the browser (it has hgt.redirectTool=xxx in it)
 # This will show all parameters sent to the external site and lets you edit them.
 
 tool NCBIPrev
 shortLabel NCBI Map Viewer
 longLabel NCBI Genome Browser
 url http://www.ncbi.nlm.nih.gov/mapview/maps.cgi
 email info@ncbi.nlm.nih.gov
 onlyDbs hg19
 isHttpGet true
 param taxId $taxId
 param CHR $s
-param BEG $[
+param BEG $start1
 param END $]
 param build previous
 
 tool NCBI
 shortLabel NCBI Map Viewer
 longLabel NCBI Genome Browser
 url http://www.ncbi.nlm.nih.gov/mapview/maps.cgi
 email info@ncbi.nlm.nih.gov
 notDbs hg19
 isHttpGet true
 param taxId $taxId
 param CHR $s
-param BEG $[
+param BEG $start1
 param END $]
 
 tool ensemblArch
 shortLabel Ensembl
 longLabel Ensembl Genome Browser
 url http://dec2014.archive.ensembl.org/$n/contigview
 onlyDbs hg38
 email helpdesk@ensembl.org
 isHttpGet true
 param chr $s
-param start $[
+param start $start1
 param end $]
 
 tool ensembl
 shortLabel Ensembl
 longLabel Ensembl Genome Browser
 url http://www.ensembl.org/$n/contigview
 email helpdesk@ensembl.org
 notDbs hg38
 isHttpGet true
 param chr $s
-param start $[
+param start $start1
 param end $]
 
 tool primer3Plus
 shortLabel Primer3Plus
 longLabel Updated interface of the popular primer designer. Primers flank the nucleotide in the center of the screen.
 url http://primer3plus.com/cgi-bin/dev/primer3plus.cgi
 email server@untergasser.de
 maxSize 10000
 param GENBRO_RETURN_PATH $returnUrl
 param GENBRO_DB $db
 param GENBRO_POSITION $position
 param SEQUENCE_TEMPLATE $seq
 
 tool primerBlast
 shortLabel Primer-BLAST