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/gsid/gsidSubj3/sequence.c src/hg/gsid/gsidSubj3/sequence.c
index 1e6bb15..b6cabd6 100644
--- src/hg/gsid/gsidSubj3/sequence.c
+++ src/hg/gsid/gsidSubj3/sequence.c
@@ -1,116 +1,116 @@
 /* sequence - do Sequence section. */
 
 /* 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 "hash.h"
 #include "linefile.h"
 #include "dystring.h"
 #include "cheapcgi.h"
 #include "spDb.h"
 #include "gsidSubj3.h"
 #include "hdb.h"
 #include "net.h"
 #include "hPrint.h"
 
 
 static boolean sequenceExists(struct section *section, 
 	struct sqlConnection *conn, char *subjId)
 /* Return TRUE if sequenceAll table exists and it has an entry with the gene symbol */
 {
 if (sqlTableExists(conn, "dnaSeq") == TRUE)
     {
     return(TRUE);
     }
 return(FALSE);
 }
 
 static void sequencePrint(struct section *section, 
 	struct sqlConnection *conn, char *subjId)
 /* Print out Sequence section. */
 {
 char query[256];
 struct sqlResult *sr;
 char **row;
 char *seq, *seqId;
 
 int i, l;
 char *chp;
 
 printf("<B>gp120 DNA Sequences</B><BR>");
 sqlSafef(query, sizeof(query), 
       "select dnaSeqId, seq from gsIdXref, dnaSeq where subjId = '%s' and id = dnaSeqId order by dnaSeqId", subjId);
 sr = sqlMustGetResult(conn, query);
 row = sqlNextRow(sr);
 if (row == NULL) printf("<BR>Not available.<BR><BR>");
 
 while (row != NULL) 
     {
     seqId    = row[0];
     seq	     = row[1];
 
     l =strlen(seq);
     hPrintf("<A NAME=\"%s\">\n", seqId);
     hPrintf("<pre>\n");
     hPrintf("%c%s", '>', seqId);
     hPrintf("%s%s", ":", subjId);
     chp = seq;
     for (i=0; i<l; i++)
 	{
 	if ((i%50) == 0) hPrintf("\n");
 	hPrintf("%c", *chp);
 	chp++;
 	}
     hPrintf("</pre>");
     fflush(stdout);
     
     row = sqlNextRow(sr);
     }
 sqlFreeResult(&sr);
 
 printf("<B>gp120 Protein Sequences</B><BR>");
 sqlSafef(query, sizeof(query), 
       "select aaSeqId, seq from gsIdXref, aaSeq where subjId = '%s' and aaSeqId = id order by aaSeqId", subjId);
 sr = sqlMustGetResult(conn, query);
 row = sqlNextRow(sr);
 if (row == NULL) printf("<BR>Not available.<BR>");
     
 while (row != NULL) 
     {
     seqId    = row[0];
     seq	     = row[1];
 
     l =strlen(seq);
     hPrintf("<A NAME=\"%s\">\n", seqId);
     hPrintf("<pre>\n");
     hPrintf("><A HREF=\"../cgi-bin/pbGsid?proteinID=%s\"", seqId);
     hPrintf("%c%s", '>', seqId);
     hPrintf("</A>");
     hPrintf("%c%s", ':', subjId);
     chp = seq;
     for (i=0; i<l; i++)
 	{
 	if ((i%50) == 0) hPrintf("\n");
 	hPrintf("%c", *chp);
 	chp++;
 	}
     hPrintf("</pre>");
     fflush(stdout);
     
     row = sqlNextRow(sr);
     }
 sqlFreeResult(&sr);
 return;
 }
 
 struct section *sequenceSection(struct sqlConnection *conn, 
 	struct hash *sectionRa)
 /* Create sequence section. */
 {
 struct section *section = sectionNew(sectionRa, "sequence");
 section->exists = sequenceExists;
 section->print = sequencePrint;
 return section;
 }