45a43477fb72105c168c76e551407e7a68eeabdd braney Sat Jun 25 11:46:46 2022 -0700 change commas in source table entries to underbars to prevent confustion in comma-separated list diff --git src/hg/txGraph/txgToAgx/txgToAgx.c src/hg/txGraph/txgToAgx/txgToAgx.c index ca15ff1..e643a23 100644 --- src/hg/txGraph/txgToAgx/txgToAgx.c +++ src/hg/txGraph/txgToAgx/txgToAgx.c @@ -83,30 +83,31 @@ ev->evCount += 1; } } slAddHead(&ag->evidence, ev); } slReverse(&ag->evidence); /* Convert sources into mrnaRefs. */ int sourceCount = ag->mrnaRefCount = tx->sourceCount; AllocArray(ag->mrnaRefs, sourceCount); int sourceIx; for (sourceIx=0; sourceIx<sourceCount; ++sourceIx) { struct txSource *source = &tx->sources[sourceIx]; ag->mrnaRefs[sourceIx] = cloneString(source->accession); + replaceChar(ag->mrnaRefs[sourceIx], ',', '_'); } /* Deal with tissues and libs by just making arrays of all zero. */ AllocArray(ag->mrnaTissues, tx->sourceCount); AllocArray(ag->mrnaLibs, tx->sourceCount); return ag; } void txgToAgx(char *inTxg, char *outAgx) /* txgToAgx - Convert from txg (txGraph) format to agx (altGraphX). */ { struct lineFile *lf = lineFileOpen(inTxg, TRUE); char *row[TXGRAPH_NUM_COLS]; FILE *f = mustOpen(outAgx, "w");