4d29ce62c5c76ed62d132f9e2ed05cfa61f7fc1a
hiram
  Fri Sep 16 10:04:48 2022 -0700
can not use bare dollar sign in html text causes confusion for trackDb make refs #30012

diff --git src/hg/utils/automation/asmHubWindowMasker.pl src/hg/utils/automation/asmHubWindowMasker.pl
index 55631a6..8202415 100755
--- src/hg/utils/automation/asmHubWindowMasker.pl
+++ src/hg/utils/automation/asmHubWindowMasker.pl
@@ -49,34 +49,34 @@
 This track depicts masked sequence as determined by <a href="
 http://bioinformatics.oxfordjournals.org/content/22/2/134.full" target="_blank">WindowMasker</a> on the
 the $assemblyDate $em${organism}$noEm/$asmId/$ncbiAssemblyId genome assembly.
 The WindowMasker tool is included in the NCBI C++ toolkit. The source code
 for the entire toolkit is available from the NCBI
 <a href="ftp://ftp.ncbi.nih.gov/toolbox/ncbi_tools++/CURRENT/" target="_blank">
 FTP site</a>.
 </p>
 
 <h2>Methods</h2>
 <p>
 To create this track, WindowMasker was run with the following parameters:
 <pre>
 windowmasker -mk_counts true -input $asmId.unmasked.fa -output wm_counts
 windowmasker -ustat wm_counts -sdust true -input $asmId.unmasked.fa -output windowmasker.intervals
-perl -wpe 'if (s/^>lcl\\|(.*)\\n\$//) { \$chr = \$1; } \\
+perl -wpe 'if (s/^&gt;lcl\\|(.*)\\n&dollar;//) { &dollar;chr = &dollar;1; } \\
    if (/^(\\d+) - (\\d+)/) { \\
-   \$s=\$1; \$e=\$2+1; s/(\\d+) - (\\d+)/\$chr\\t\$s\\t\$e/; \
-   }' windowmasker.intervals > windowmasker.sdust.bed
+   &dollar;s=&dollar;1; &dollar;e=&dollar;2+1; s/(\\d+) - (\\d+)/&dollar;chr\\t&dollar;s\\t&dollar;e/; \
+   }' windowmasker.intervals &gt; windowmasker.sdust.bed
 </pre>
 The windowmasker.sdust.bed included masking for areas of the
 assembly that are gap.  The file was 'cleaned' to remove those areas
 of masking in gaps, leaving only the sequence masking.  The final
 result covers $basesCovered bases in the assembly size $asmSize for
 a percent coverage of % $percentCoverage.
 </p>
 
 <h2>References</h2>
 
 <p>
 Morgulis A, Gertz EM, Sch&auml;ffer AA, Agarwala R.
 <a href="http://bioinformatics.oxfordjournals.org/content/22/2/134.full" target="_blank">
 WindowMasker: window-based masker for sequenced genomes</a>.
 <em>Bioinformatics</em>. 2006 Jan 15;22(2):134-41.