e35f8411576669175e9b0529c0aec04615c0422a braney Mon May 2 10:28:58 2016 -0700 changes for Gencode v24 knownGene. diff --git src/hg/lib/txGraph.c src/hg/lib/txGraph.c index 9beed48..f520f9a 100644 --- src/hg/lib/txGraph.c +++ src/hg/lib/txGraph.c @@ -18,30 +18,31 @@ { struct txGraph *ret; AllocVar(ret); ret->vertexCount = sqlUnsigned(row[5]); ret->edgeCount = sqlUnsigned(row[7]); ret->sourceCount = sqlSigned(row[9]); ret->tName = cloneString(row[0]); ret->tStart = sqlSigned(row[1]); ret->tEnd = sqlSigned(row[2]); ret->name = cloneString(row[3]); safecpy(ret->strand, sizeof(ret->strand), row[4]); { int i; char *s = row[6]; +if (ret->vertexCount) AllocArray(ret->vertices, ret->vertexCount); for (i=0; ivertexCount; ++i) { s = sqlEatChar(s, '{'); txVertexCommaIn(&s, &ret->vertices[i]); s = sqlEatChar(s, '}'); s = sqlEatChar(s, ','); } } { int i; char *s = row[8]; for (i=0; iedgeCount; ++i) { s = sqlEatChar(s, '{');