dbba7c9b61761063d377073363623d114edb4d45 braney Mon Sep 8 18:56:13 2014 -0700 get genePredToBigGenePred to work with simple genePred diff --git src/hg/lib/bigGenePred.c src/hg/lib/bigGenePred.c index 2f72c19..c25823b 100644 --- src/hg/lib/bigGenePred.c +++ src/hg/lib/bigGenePred.c @@ -228,57 +228,62 @@ if (sep == ',') fputc('}',f); } fputc(sep,f); { int i; if (sep == ',') fputc('{',f); for (i=0; i<el->blockCount; ++i) { fprintf(f, "%d", el->chromStarts[i]); fputc(',', f); } if (sep == ',') fputc('}',f); } fputc(sep,f); if (sep == ',') fputc('"',f); +if (el->name2 != NULL) fprintf(f, "%s", el->name2); if (sep == ',') fputc('"',f); fputc(sep,f); if (sep == ',') fputc('"',f); fprintf(f, "%s", genePredCdsStatStr(el->cdsStartStat)); if (sep == ',') fputc('"',f); fputc(sep,f); if (sep == ',') fputc('"',f); fprintf(f, "%s", genePredCdsStatStr(el->cdsEndStat)); if (sep == ',') fputc('"',f); fputc(sep,f); { int i; if (sep == ',') fputc('{',f); for (i=0; i<el->blockCount; ++i) { + if (el->exonFrames != NULL) fprintf(f, "%d", el->exonFrames[i]); + else + fputs("-1", f); fputc(',', f); } if (sep == ',') fputc('}',f); } fputc(sep,f); if (sep == ',') fputc('"',f); fprintf(f, "%s", el->type); if (sep == ',') fputc('"',f); fputc(sep,f); if (sep == ',') fputc('"',f); fprintf(f, "%s", el->geneName); if (sep == ',') fputc('"',f); fputc(sep,f); if (sep == ',') fputc('"',f); +if (el->geneName2 != NULL) fprintf(f, "%s", el->geneName2); if (sep == ',') fputc('"',f); fputc(sep,f); if (sep == ',') fputc('"',f); fprintf(f, "%s", el->geneType); if (sep == ',') fputc('"',f); fputc(lastSep,f); } /* -------------------------------- End autoSql Generated Code -------------------------------- */