2f48d68cce72bd8ddfb21a11da72d244b7c8c479
markd
  Sun Oct 3 08:31:41 2010 -0700
added options to specify how to obtained qName and tName.  Output query and target defs in score file
diff --git src/hg/blastToPsl/blastToPsl.c src/hg/blastToPsl/blastToPsl.c
index fee0ddb..21f06c5 100644
--- src/hg/blastToPsl/blastToPsl.c
+++ src/hg/blastToPsl/blastToPsl.c
@@ -47,7 +47,7 @@
 {
 pslTabOut(psl, pslFh);
 if (scoreFh != NULL)
-    pslBuildWriteScores(scoreFh, psl, bb->bitScore, bb->eVal);
+    pslBuildScoresWrite(scoreFh, psl, bb->bitScore, bb->eVal);
 pslCheck("blastToPsl", stderr, psl);
 }
 
@@ -89,10 +89,7 @@
 FILE *pslFh = mustOpen(pslFile, "w");
 FILE *scoreFh = NULL;
 if (scoreFile != NULL)
-    {
-    scoreFh = mustOpen(scoreFile, "w");
-    fputs(pslBuildScoreHdr, scoreFh);
-    }
+    scoreFh = pslBuildScoresOpen(scoreFile, FALSE);
 unsigned flags =  pslBuildGetBlastAlgo(bf->program) |  (pslxFmt ? bldPslx : 0);
 
 while ((bq = blastFileNextQuery(bf)) != NULL)