4898794edd81be5285ea6e544acbedeaeb31bf78
max
  Tue Nov 23 08:10:57 2021 -0800
Fixing pointers to README file for license in all source code files. refs #27614

diff --git src/hg/protein/pbHgnc/pbHgnc.c src/hg/protein/pbHgnc/pbHgnc.c
index 9c7b958..a05a7f4 100644
--- src/hg/protein/pbHgnc/pbHgnc.c
+++ src/hg/protein/pbHgnc/pbHgnc.c
@@ -1,118 +1,118 @@
 /* pbHgnc - process HGNC data */
 
 /* Copyright (C) 2013 The Regents of the University of California 
- * See README in this or parent directory for licensing information. */
+ * See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */
 #include "common.h"
 #include "hCommon.h"
 #include "hdb.h"
 
 void usage()
 /* Explain usage and exit. */
 {
 errAbort(
   "pbHgnc - process HGNC data\n"
   "usage:\n"
   "   pbHgnc yymmdd\n"
   "      yymmdd is the date on the proteins database\n"
   "example: pbHgnc 051015\n");
 }
 
 int main(int argc, char *argv[])
 {
 struct sqlConnection *conn2;
   
 char query2[256];
 struct sqlResult *sr2;
 char **row2;
 
 char *proteinDataDate;
  
 FILE   *o2;
 
 
 if (argc != 2) usage();
 proteinDataDate = argv[1];
    
 o2 = fopen("j.dat", "w");
 char proteinsDb[1024];
 safef(proteinsDb, sizeof proteinsDb, "proteins%s", proteinDataDate);
 conn2= hAllocConn(proteinsDb);
 
 sqlSafef(query2, sizeof query2,
 	"select hgncId, symbol, name, refSeqMapped, refSeqIds, uniProtMapped, entrezMapped, locusType from hgnc where status not like '%%Withdrawn%%'");
 sr2 = sqlMustGetResult(conn2, query2);
 row2 = sqlNextRow(sr2);
 while (row2 != NULL)
     {
     char *entrez;
     char *hgncId, *name, *symbol, *refSeqIds, *uniProt;
     int j;
     // char *locusType;
     char *refseq;
 
     j=0;
     hgncId 	= row2[j];j++;
     symbol 	= row2[j];j++;
     name	= row2[j];j++;
     refseq 	= row2[j];j++;
     refSeqIds 	= row2[j];j++;
     uniProt   	= row2[j];j++;
     entrez   	= row2[j];j++;
     // locusType  	= row2[j];j++;
     
     boolean gotRefseq = FALSE;
 
     /* process refSeqMapped first */
 
     if (refseq != NULL && !sameWord(refseq, ""))
     	{
     	fprintf(o2, "%s\t%s\t%s\t%s\t%s\t%s\n", symbol, refseq, uniProt, hgncId, entrez, name);
 	gotRefseq = TRUE;
 	}
 
     /* process refSeqIds next */
 
     char *chp = strstr(refSeqIds, ",");
     if (chp != NULL) 
     	{
     	*chp = '\0';
         while (chp != NULL)
 	    {    
 	    fprintf(o2, "%s\t%s\t%s\t%s\t%s\t%s\n", symbol, refseq, uniProt, hgncId, entrez, name);
 	    chp++;
  	    while (*chp == ' ') chp++;
 	    refseq = chp;
             chp = strstr(refseq, ",");
 	    if (chp != NULL) *chp = '\0';
 	    }
 	fprintf(o2, "%s\t%s\t%s\t%s\t%s\t%s\n", symbol, refseq, uniProt, hgncId, entrez, name);
 	gotRefseq = TRUE;
 	}
     else
     	{
 	if (refseq != NULL && !sameWord(refseq,""))
 	    {
 	    fprintf(o2, "%s\t%s\t%s\t%s\t%s\t%s\n", symbol, refseq, uniProt, hgncId, entrez, name);
 	    }
 	else
 	    {
 	    /* output the record if no RefSeq in either refSeqIds or refSeqMapped */
 	    if (!gotRefseq)
 	    	{
 	    	fprintf(o2, 
 		"%s\t%s\t%s\t%s\t%s\t%s\n", symbol, refseq, uniProt, hgncId, entrez, name);
 		}
 	    }
 	}
     fflush(o2);
     row2 = sqlNextRow(sr2);
     }
 sqlFreeResult(&sr2);
 
 hFreeConn(&conn2);
 fclose(o2);
     
 mustSystem("cat j.dat |sort -u >hgncXref.tab");
 return(0);
 }