884a11762453d7f4141aed366f3d1eaa2a428a20
max
Sun Jun 4 23:59:50 2017 -0700
a few more fixes for openbel and gpml, refs #13634
diff --git src/hg/hgGeneGraph/hgGeneGraph src/hg/hgGeneGraph/hgGeneGraph
index 94ae679..955c1c9 100755
--- src/hg/hgGeneGraph/hgGeneGraph
+++ src/hg/hgGeneGraph/hgGeneGraph
@@ -1486,31 +1486,31 @@
print entToDesc(causeType, causeName, causeGenes)
desc = ""
if themeGenes!="":
if isPpi:
print "—" # unicode long dash
else:
print "→" # Unicode Arrow
desc = entToDesc(themeType, themeName, themeGenes)
print desc
if relType!="" or relSubtype!="":
if relType!="" and relSubtype!="":
- print "(%s/%s)" % (relType, relSubtype)
+ print "(%s, %s)" % (relType, relSubtype)
elif relType!="":
print "(%s)" % (relType)
elif relSubtype!="":
print "(%s)" % (relSubtype)
if onlyDoc==None and len(docSet)!=0:
if len(desc)>25:
print "
"
print prettyDocLinks(conn, sorted(docSet))
if evidence!="" and evidence!="unknown":
print "
Evidence: ", evidence.replace("|", ", ").replace("_", " "), ""
print ""
@@ -1946,30 +1946,31 @@
for g1 in row.causeGenes.split("|"):
for g2 in row.themeGenes.split("|"):
pair = tuple(sorted([g1, g2]))
pairToPmids[pair].add(row.docId)
pairs["literome"].add(pair)
for pair, pmids in pairToPmids.iteritems():
if len(pmids)>1:
pairs["literome (>= 2 PMIDs)"].add(pair)
return pairs
def showStats():
" "
print "