3287d90dcd392481a06ee003ffd23b7d5e6b8b30 kent Wed Nov 24 14:17:02 2021 -0800 Adding trailing end of line to I'm-alive dots. diff --git src/lib/sparseMatrix.c src/lib/sparseMatrix.c index aa15793..2548c1d 100644 --- src/lib/sparseMatrix.c +++ src/lib/sparseMatrix.c @@ -59,30 +59,31 @@ int x,y; double row[xSize]; for (y=0; y<ySize; ++y) { sparseRowMatrixUnpackRow(matrix, y, row, xSize); fprintf(f, "%s", rowLabels[y]); for (x=0; x<xSize; ++x) { double val = row[x]; if (val == 0.0) fprintf(f, "\t0"); // so much zero in the world else fprintf(f, "\t%g", row[x]); } fprintf(f, "\n"); + dotForUser(); } } void sparseRowMatrixSaveAsTsv(struct sparseRowMatrix *matrix, char **columnLabels, char **rowLabels, char *fileName) /* Save sparseRowMatrix to tab-sep-file as expanded non-sparse */ { FILE *f = mustOpen(fileName, "w"); verbose(1, "outputting %d row matrix, a dot every 100 rows\n", matrix->ySize); fprintf(f, "gene\t"); writeTsvRow(f, matrix->xSize, columnLabels); sparseRowMatrixTsvBody(matrix, rowLabels, f); carefulClose(&f); }