1ce5b46ce00a99dd7a61a0e68c67651bb75c0d55
gperez2
  Tue Feb 15 09:49:45 2022 -0800
Updating and fixing some of Max additions to the UniProt track description page, refs #28560

diff --git src/hg/makeDb/trackDb/uniprotAlpha.html src/hg/makeDb/trackDb/uniprotAlpha.html
index cf22343..ac410a5 100644
--- src/hg/makeDb/trackDb/uniprotAlpha.html
+++ src/hg/makeDb/trackDb/uniprotAlpha.html
@@ -80,31 +80,31 @@
   </tr>
   <tr>
     <td>UniProt Sequence Conflicts</td>
     <td>Differences between Genbank sequences and the UniProt sequence.</td>
   </tr>
   <tr>
     <td>UniProt Repeats</td>
     <td>Regions of repeated sequence motifs or repeated domains.</td>
   </tr>
   <tr>
     <td>UniProt Other Annotations</td>
     <td>All other annotations, e.g. compositional bias</td>
   </tr>
 </table>
 <p>
-For consistency and make it easier for user of mutation-related tracks,
+For consistency and convenience for user of mutation-related tracks,
 the subtrack &quot;UniProt/SwissProt Variants&quot; is a copy of the track
 &quot;UniProt Variants&quot; in the track group &quot;Phenotype and Literature&quot;, or 
 &quot;Variation and Repeats&quot;, depending on the assembly.
 </p>
 
 <h2>Display Conventions and Configuration</h2>
 
 <p>
 Genomic locations of UniProt/SwissProt annotations are labeled with a short name for
 the type of annotation (e.g. &quot;glyco&quot;, &quot;disulf bond&quot;, &quot;Signal peptide&quot;
 etc.). A click on them shows the full annotation and provides a link to the UniProt/SwissProt
 record for more details. TrEMBL annotations are always shown in 
 <span style="color: rgb(0,150,250)"><b>light blue</b></span>, except in the Signal Peptides,
 Extracellular Domains, Transmembrane Domains, and Cytoplamsic domains subtracks.</p>
 
@@ -122,158 +122,159 @@
 
 <p>
 In the &quot;UniProt Modifications&quot; track, lipoification sites are highlighted in 
 <span style="color: rgb(12,12,120)"><b>dark blue</b></span>, glycosylation sites in 
 <span style="color: rgb(0,100,100)"><b>dark green</b></span>, and phosphorylation in 
 <span style="color: rgb(200,200,0)"><b>light green</b></span>.</p>
 
 <p>
 Duplicate annotations are removed as far as possible: if a TrEMBL annotation
 has the same genome position and same feature type, comment, disease and
 mutated amino acids as a SwissProt annotation, it is not shown again. Two
 annotations mapped through different protein sequence alignments but with the same genome
 coordinates are only shown once.  </p>
 
 <p>On the configuration page of this track, you can choose to hide any TrEMBL annotations.
-This filter will also hide the UniProt alternative isoform protein sequences, because
+This filter will also hide the UniProt alternative isoform protein sequences because
 both types of information are less relevant to most users. Please contact us if you
 want more detailed filtering features.</p>
 
 <p>Note that for the human hg38 assembly and SwissProt annotations, there
 also is a <a
-href="hgTracks?db=hg38&hubUrl=ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/genome_annotation_tracks/UP000005640_9606_hub/hub.txt" target=_blank>public
+href="hgTracks?db=hg38&hubUrl=https://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/genome_annotation_tracks/UP000005640_9606_hub/hub.txt" target=_blank>public
 track hub</a> prepared by UniProt itself, with 
 genome annotations maintained by UniProt using their own mapping
 method based on those Gencode/Ensembl gene models that are annotated in UniProt
-for a given protein. For proteins that differ from the genome, UniProt's own mapping method
-will in most cases map a protein and its annotations to an unexpected location
+for a given protein. For proteins that differ from the genome, UniProt's mapping method
+will, in most cases, map a protein and its annotations to an unexpected location
 (see below for details on UCSC's mapping method).</p>
 
 <h2>Methods</h2>
 
 <p>
 Briefly, UniProt protein sequences were aligned to the transcripts associated
 with the protein, the top-scoring alignments were retained, and the result was
 projected to the genome through a transcript-to-genome alignment.
 Depending on the genome, the transcript-genome alignments was either
 provided by the source database (NBCI RefSeq), created at UCSC (UCSC RefSeq) or
 derived from the transcripts (Ensembl/Augustus).  The transcript set is NCBI
 RefSeq for hg38, UCSC RefSeq for hg19 (due to alt/fix haplotype misplacements 
 in the NCBI RefSeq set on hg19). For other genomes, RefSeq, Ensembl and Augustus 
 are tried, in this order. The resulting protein-genome alignments of this process 
 are available in the file formats for liftOver or pslMap from our data archive
 (see "Data Access" section below).
 </p>
 
 <p>An important step of the mapping process is filtering the alignment from
 protein to transcript. Due to differences between the UniProt proteins and the
 transcripts and the genome, the best matching transcript is not always the
 correct transcript.  Therefore, only for organisms that have a RefSeq transcript track,
 proteins are only aligned to the RefSeq transcripts that are annotated
 by UniProt for this protein. If no transcripts are annotated on the protein, or
 the annotated ones do not exist anymore, but a NCBI Gene ID is annotated,
 the RefSeq transcripts for the gene are used.  If no NCBI Gene is annotated,
-then the best matching alignment is used. After this, on hg38, only a handful
-of edge cases (pseudogenes, very recently added proteins) remain where the
+then the best matching alignment is used. Only a handful of edge cases
+(pseudogenes, very recently added proteins) on hg38 remain where the
 global transcriptome-wide matches have to be used.  The details page of the
-protein alignments shows which transcript were used for the mapping and how
+protein alignments shows the transcripts used for the mapping and how
 these transcripts were found. There can be multiple transcripts for one
-protein, as their coding sequences can be identical or several of them were
-annotated and they do not differ by more than 1% in alignment score.
+protein, as their coding sequences can be identical or several of them do
+not differ by more than 1% in alignment score.
 </p>
 
 <p>In other words, when an NCBI or UCSC RefSeq track is used for the mapping and to align a
 protein sequence to the correct transcript, we use a three stage process:
 <ol>
     <li>If UniProt has annotated a given RefSeq transcript for a given protein
     sequence, the protein is aligned to this transcript. Any difference in the
     version suffix is tolerated in this comparison.  
     <li>If no transcript is annotated or the transcript cannot be found in the
     NCBI/UCSC RefSeq track, the UniProt-annotated NCBI Gene ID is resolved to a
     set of NCBI RefSeq transcript IDs via the most current version of NCBI
-    genes tables. Of the resulting alignments, only the top match and all
+    genes tables. Only the top match of the resulting alignments and all
     others within 1% of its score are used for the mapping.
-    <li>If no transcript can be found after step (2), the protein is aligned to all transcripts and the top match and all others withint 1% of its score are used.
+    <li>If no transcript can be found after step (2), the protein is aligned to all transcripts,
+    the top match, and all others within 1% of its score are used.
 </ol>
 
 <p>This system was designed to resolve the problem of incorrect mappings of
 proteins, mostly on hg38, due to differences between the SwissProt
 sequences and the genome reference sequence, which has changed since the
 proteins were defined. The problem is most pronounced for gene families
 composed of either very repetitive or very similar proteins. To make sure that
 the alignments always go to the best chromosome location, all _alt and _fix
 reference patch sequences are ignored for the alignment, so the patches are
 entirely free of UniProt annotations. Please contact us if you have feedback on
-this process, we are no aware of a way to evaluate the results completely and
-in an automated manner, and appreciate feedback or example edge cases.</p>
+this process or example edge cases. We are not aware of a way to evaluate the
+results completely and in an automated manner.</p>
 <p>
 Proteins were aligned to transcripts with TBLASTN, converted to PSL, filtered
-with pslReps (93% query coverage, keep alignments within top-1% score), lifted to genome
+with pslReps (93% query coverage, keep alignments within top 1% score), lifted to genome
 positions with pslMap and filtered again with pslReps.  UniProt annotations were
 obtained from the UniProt XML file.  The UniProt annotations were then mapped to the
 genome through the alignment described above using the pslMap program.  This approach
 draws heavily on the <A HREF="https://modbase.compbio.ucsf.edu/LS-SNP/"
 TARGET="_BLANK">LS-SNP</A> pipeline by Mark Diekhans.
 Like all Genome Browser source code, the main script used to build this track
 can be found on <a
 href="https://github.com/ucscGenomeBrowser/kent/tree/master/src/hg/utils/otto/uniprot/doUniprot">Github</a>.
 </p>
 
 <h2>Automated data updates and release history</h2>
 <p>
 This track is automatically updated on an ongoing basis, every 2-3 months.
 The current version is always shown on the track details page, it includes the
 release of UniProt, the version of the transcript set and a unique MD5 that is
 based on the protein sequences, the transcript sequences, the mapping file
 between both and the transcript-genome alignment. The exact transcript
 that was used for the alignment is shown when clicking a protein alignment
 in one of the two alignment tracks.
 </p>
 
 <p>
 For reproducibility of older analysis results, previous versions of this track
 are available for browsing in the form of the <a
     href="hgTracks?db=$db&hubUrl=https://hgdownload.soe.ucsc.edu/goldenPath/archive/$db/uniprot/hub.txt"
     target=_blank> UCSC UniProt Archive Track Hub</a>. The underlying data of
     all releases of this track (past and current) can be obtained from our <a
     href="https://hgdownload.soe.ucsc.edu/goldenPath/archive/$db/uniprot"
-target=_blank>Downloads Server, in the data archive directory</a>.  The UniProt
-protein-to-genome alignment is also available from there, in file formats for
-our command line programs liftOver or pslMap, which can be used to map
+target=_blank>downloads server</a>, including the UniProt
+protein-to-genome alignment. The file formats available are in the
+command line programs liftOver or pslMap, which can be used to map
 coordinates on protein sequences to genome coordinates. The filenames are
 unipToGenome.over.chain.gz and unipToGenomeLift.psl.gz.  </p>
 <!-- should I add pslMap/liftOver examples here? -->
 
 <h2>Data Access</h2>
 
 <p>
 The raw data of the current track can be explored interactively with the
 <a href="../cgi-bin/hgTables">Table Browser</a>, or the
 <a href="../cgi-bin/hgIntegrator">Data Integrator</a>.
 For automated analysis, the genome annotation is stored in a bigBed file that 
 can be downloaded from the
 <a href="http://hgdownload.soe.ucsc.edu/gbdb/$db/uniprot/" target="_blank">download server</a>.
 The exact filenames can be found in the 
 <a href="https://github.com/ucscGenomeBrowser/kent/blob/master/src/hg/makeDb/trackDb/uniprot.ra">track configuration file</a>. 
 Annotations can be converted to ASCII text by our tool <tt>bigBedToBed</tt>
 which can be compiled from the source code or downloaded as a precompiled
 binary for your system. Instructions for downloading source code and binaries can be found
 <a href="http://hgdownload.soe.ucsc.edu/downloads.html#utilities_downloads">here</a>.
 The tool can also be used to obtain only features within a given range, for example:
-<br> 
+<p>
 <tt>bigBedToBed http://hgdownload.soe.ucsc.edu/gbdb/$db/uniprot/unipStruct.bb -chrom=chr6 -start=0 -end=1000000 stdout</tt> 
-<br>
+</p>
 Please refer to our
 <a href="https://groups.google.com/a/soe.ucsc.edu/forum/#!forum/genome">mailing list archives</a>
 for questions, or our
 <a href="../FAQ/FAQdownloads.html#download36">Data Access FAQ</a>
 for more information. 
 </p>
 
 <p>
 
 <h2>Credits</h2>
 
 <p>
 This track was created by Maximilian Haeussler at UCSC, with a lot of input from Chris
 Lee, Mark Diekhans and Brian Raney, feedback from the UniProt staff, Alejo
 Mujica, Regeneron Pharmaceuticals and Pia Riestra, GeneDx. Thanks to UniProt for making all data