a2d849d0acd9e8921d1ff131d907ca867c858d11
braney
Thu Jul 19 10:47:57 2018 -0700
changes to support new new Gencode models in hgGene
diff --git src/hg/hgGene/synonym.c src/hg/hgGene/synonym.c
index 0a1249d..174f751 100644
--- src/hg/hgGene/synonym.c
+++ src/hg/hgGene/synonym.c
@@ -317,31 +317,31 @@
char *toRefTable = genomeOptionalSetting("knownToRef");
if (toRefTable != NULL && sqlTableExists(conn, toRefTable))
{
sqlSafef(query, sizeof(query), "select value from %s where name='%s'", toRefTable,
id);
refSeqAcc = emptyForNull(sqlQuickString(conn, query));
}
if (sqlTableExists(conn, "kgXref"))
{
sqlSafef(query, sizeof(query), "select mRNA from kgXref where kgID='%s'", id);
mrnaAcc = emptyForNull(sqlQuickString(conn, query));
}
if (sameWord(genome, "C. elegans"))
hPrintf("WormBase ID: %s
", id);
else
- hPrintf("UCSC ID: %s
", id);
+ hPrintf("UCSC ID: %s
", isGencode2 ? curAlignId : curGeneId );
}
if (refSeqAcc[0] != 0)
{
hPrintf("RefSeq Accession: %s
\n", refSeqAcc);
}
else if (mrnaAcc[0] != 0)
{
sqlSafefFrag(condStr, sizeof(condStr), "acc = '%s'", mrnaAcc);
if (sqlGetField(database, gbCdnaInfoTable, "acc", condStr) != NULL)
{
hPrintf("Representative RNA: