\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("Protein Sequences
");
safef(query, sizeof(query),
//"select dnaSeqId, seq from gisaidXref, dnaSeq where subjId = '%s' and id = dnaSeqId order by dnaSeqId", subjId);
//"select aaSeqId, seq from gisaidXref, aaSeq where subjId = '%s' order by aaSeqId", subjId);
"select aaSeqId, seq from gisaidXref, 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("%c%s", '>', seqId);
hPrintf("%s%s", ":", subjId);
//hPrintf("\n", seqId);
//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;
}