71495d97a500eb0b1f176584e677c0d3965bf9ae max Fri Jun 2 17:22:25 2017 -0700 improving layout of evidence a bit, refs #13634 diff --git src/hg/hgGeneGraph/hgGeneGraph src/hg/hgGeneGraph/hgGeneGraph index 3d97dfd..c463d06 100755 --- src/hg/hgGeneGraph/hgGeneGraph +++ src/hg/hgGeneGraph/hgGeneGraph @@ -1479,46 +1479,50 @@ if isPpi: sourceDesc = "Interaction" else: sourceDesc = "Reaction" print '%s <a href="%s" target="_BLANK">%s</a>: ' % (dbName, url, sourceDesc) print entToDesc(causeType, causeName, causeGenes) if themeGenes!="": if isPpi: print "—" # unicode long dash else: print "→" # Unicode Arrow - print entToDesc(themeType, themeName, themeGenes) + desc = entToDesc(themeType, themeName, themeGenes) + print desc if relType!="" or relSubtype!="": if relType!="" and relSubtype!="": print "(%s/%s)" % (relType, relSubtype) elif relType!="": print "(%s)" % (relType) elif relSubtype!="": print "(%s)" % (relSubtype) - if evidence!="": - print ", Evidence: ", evidence.replace("|", ", ").replace("_", " ") - if onlyDoc==None and len(docSet)!=0: + if len(desc)>25: + print "<br>" print prettyDocLinks(conn, sorted(docSet)) + if evidence!="" and evidence!="unknown": + print "<br>Evidence: <i>", evidence.replace("|", ", ").replace("_", " "), "</i>" + + print "</li>" print "</ul>" def showPwyPpiInfo(conn, gene1, gene2): " print pathway and PPI info about link " gene1, gene2 = sorted([gene1, gene2]) q = "SELECT ggEventDb.* FROM ggLinkEvent, ggEventDb " \ "WHERE gene1='%s' and gene2='%s' AND ggEventDb.eventId=ggLinkEvent.eventId" % (gene1,gene2) rows = sqlQuery(conn, q) # split db rows into ppi and pathway rows pwyRows, ppiRows = [], [] for r in rows: if r[0].startswith("ppi_"):