src/hg/instinct/hgHeatmap2/drawingCode.c 1.68
1.68 2009/06/22 21:45:36 jzhu
fix bug: missing last feature value in output file
Index: src/hg/instinct/hgHeatmap2/drawingCode.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/instinct/hgHeatmap2/drawingCode.c,v
retrieving revision 1.67
retrieving revision 1.68
diff -b -B -U 4 -r1.67 -r1.68
--- src/hg/instinct/hgHeatmap2/drawingCode.c 22 Jun 2009 21:35:49 -0000 1.67
+++ src/hg/instinct/hgHeatmap2/drawingCode.c 22 Jun 2009 21:45:36 -0000 1.68
@@ -1384,9 +1384,9 @@
// the feature value output file name in tmp directory , consider change the file name
FILE* fout=fopen("/tmp/featureOutput.txt","w");
for (i=0; i<nSamples; i++)
{
- for (j=0; j<nCols; j++)
+ for (j=0; j<nCols+1; j++)
{
if (featureArray[i][j])
fprintf(fout,"%s",featureArray[i][j]);
fprintf(fout,"\t");