5c5df1a7446ad3368896deba413360935c334188
kate
  Wed Feb 10 13:12:47 2016 -0800
Support for multiple GTEx releases/versions (to add V6 track). refs #15645

diff --git src/hg/lib/gtexGeneBed.c src/hg/lib/gtexGeneBed.c
index d1e4557..267bab4 100644
--- src/hg/lib/gtexGeneBed.c
+++ src/hg/lib/gtexGeneBed.c
@@ -198,15 +198,24 @@
 "   chromEnd int unsigned not null,	# End position in chromosome\n"
 "   name varchar(255) not null,	# Gene symbol\n"
 "   score int unsigned not null,	# Score from 0-1000\n"
 "   strand char(1) not null,	# + or - for strand\n"
 "   geneId varchar(255) not null,	# Ensembl gene ID, referenced in GTEx data tables\n"
 "   transcriptId varchar(255) not null,	# Ensembl ID of Canonical transcript; determines genomic position\n"
 "   transcriptClass varchar(255) not null,	# GENCODE transcript class (coding, nonCoding, pseudo)\n"
 "   expCount int unsigned not null,	# Number of experiment values\n"
 "   expScores longblob not null,	# Comma separated list of experiment scores\n"
           "#Indices\n"
 "   PRIMARY KEY(geneId)\n"
 ")\n",
     table);
 sqlRemakeTable(conn, table, query);
 }
+
+char *gtexVersionSuffix(char *table)
+/* Return version string for a GTEx track table.  For now, just supporting V4 (no suffix) and V6 */
+{
+if (endsWith(table, "V6"))
+    return("V6");
+return("");
+}
+