43af8e2635c1797ee03bf3ded32d795ed4a91ed9 braney Wed Sep 10 19:20:24 2014 -0700 add exonFrames to genePreds that don't have them. #13861 diff --git src/hg/lib/bigGenePred.c src/hg/lib/bigGenePred.c index c25823b..3731892 100644 --- src/hg/lib/bigGenePred.c +++ src/hg/lib/bigGenePred.c @@ -188,30 +188,31 @@ *pList = NULL; } void bigGenePredOutput(struct bigGenePred *el, FILE *f, char sep, char lastSep) /* Print out bigGenePred. Separate fields with sep. Follow last field with lastSep. */ { if (sep == ',') fputc('"',f); fprintf(f, "%s", el->chrom); if (sep == ',') fputc('"',f); fputc(sep,f); fprintf(f, "%u", el->chromStart); fputc(sep,f); fprintf(f, "%u", el->chromEnd); fputc(sep,f); if (sep == ',') fputc('"',f); +if (el->name != NULL) fprintf(f, "%s", el->name); if (sep == ',') fputc('"',f); fputc(sep,f); fprintf(f, "%u", el->score); fputc(sep,f); if (sep == ',') fputc('"',f); fprintf(f, "%s", el->strand); if (sep == ',') fputc('"',f); fputc(sep,f); fprintf(f, "%u", el->thickStart); fputc(sep,f); fprintf(f, "%u", el->thickEnd); fputc(sep,f); fprintf(f, "%u", el->itemRgb); fputc(sep,f); @@ -255,35 +256,38 @@ { 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); +if (el->type != NULL) fprintf(f, "%s", el->type); if (sep == ',') fputc('"',f); fputc(sep,f); if (sep == ',') fputc('"',f); +if (el->geneName != NULL) 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); +if (el->geneType != NULL) fprintf(f, "%s", el->geneType); if (sep == ',') fputc('"',f); fputc(lastSep,f); } /* -------------------------------- End autoSql Generated Code -------------------------------- */