6296e8a313306cb80b8fc78f1eee4980d0fe94f6
max
  Fri Aug 10 15:26:29 2018 -0700
allowing http links in VCF INFO fields, refs #21895

diff --git src/inc/vcf.h src/inc/vcf.h
index 872c5a9..8dbd04b 100644
--- src/inc/vcf.h
+++ src/inc/vcf.h
@@ -164,30 +164,33 @@
 switch (type)
     {
     case vcfInfoInteger:
 	fprintf(f, "%d", datum.datInt);
 	break;
     case vcfInfoFloat:
 	fprintf(f, "%f", datum.datFloat);
 	break;
     case vcfInfoFlag:
 	fprintf(f, "%s", datum.datString); // Flags could have values in older VCF
 	break;
     case vcfInfoCharacter:
 	fprintf(f, "%c", datum.datChar);
 	break;
     case vcfInfoString:
+        if (startsWith("http", datum.datString))
+            fprintf(f, "<a href='%s'>%s</a>", datum.datString, datum.datString);
+        else
             fprintf(f, "%s", datum.datString);
 	break;
     default:
 	errAbort("vcfPrintDatum: Unrecognized type %d", type);
 	break;
     }
 }
 
 #define VCF_IGNORE_ERRS (INT_MAX - 1)
 
 struct vcfFile *vcfFileNew();
 /* Return a new, empty vcfFile object. */
 
 struct vcfFile *vcfFileFromHeader(char *name, char *headerString, int maxErr);
 /* Parse the VCF header string into a vcfFile object with no rows.