\n", seqId);
hPrintf("\n");
hPrintf("%c%s", '>', seqId);
hPrintf("%s%s", ":", subjId);
chp = seq;
for (i=0; i");
fflush(stdout);
row = sqlNextRow(sr);
}
sqlFreeResult(&sr);
printf("gp120 Protein Sequences
");
safef(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("
Not available.
");
while (row != NULL)
{
seqId = row[0];
seq = row[1];
l =strlen(seq);
hPrintf("\n", seqId);
hPrintf("\n");
hPrintf(">', seqId);
hPrintf("");
hPrintf("%c%s", ':', subjId);
chp = seq;
for (i=0; i");
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;
}