e46073f856770bdfef4f7637eea8f9f9297aa139
chmalee
  Tue Nov 19 15:57:08 2019 -0800
Initial commit of new track type vcfPhased trio. A line with ticks, one
per haplotype per sample in the VCF, as specified by trackDb variables.

diff --git src/hg/hgTables/vcf.c src/hg/hgTables/vcf.c
index 60f0884..bd692bc 100644
--- src/hg/hgTables/vcf.c
+++ src/hg/hgTables/vcf.c
@@ -13,31 +13,31 @@
 #include "localmem.h"
 #include "obscure.h"
 #include "vcf.h"
 #include "web.h"
 
 #define VCFDATALINE_NUM_COLS 10
 
 boolean isVcfTable(char *table, boolean *retIsTabix)
 /* Return TRUE if table corresponds to a VCF file. 
  * If retIsTabix is non-NULL, set *retIsTabix to TRUE if this is vcfTabix (not just vcf). */
 {
 boolean isVcfTabix = FALSE, isVcf = FALSE;
 struct trackDb *tdb = hashFindVal(fullTableToTdbHash, table);
 if (tdb)
     {
-    isVcfTabix = startsWithWord("vcfTabix", tdb->type);
+    isVcfTabix = startsWithWord("vcfTabix", tdb->type) || startsWithWord("vcfPhasedTrio", tdb->type);
     isVcf = startsWithWord("vcf", tdb->type);
     }
 else
     {
     isVcfTabix = trackIsType(database, table, curTrack, "vcfTabix", ctLookupName);
     if (!isVcfTabix)
 	isVcf = trackIsType(database, table, curTrack, "vcf", ctLookupName);
     }
 if (retIsTabix)
     *retIsTabix = isVcfTabix;
 return (isVcfTabix || isVcf);
 }
 
 struct hTableInfo *vcfToHti(char *table, boolean isTabix)
 /* Get standard fields of VCF into hti structure. */