447843e8a6310fa7a837c2f1790dea8a093e9cf7 angie Wed Sep 20 13:20:53 2017 -0700 NCBI RefSeq: link out to MGI IDs for mouse. Use the human-specific hgnc column of ncbiRefSeqLink table. In hgc, if contents of hgnc start with "MGI:" then label as MGI instead of HGNC. In ncbiRefSeqOther bigBed, omit extra columns that have no values (like OMIM and HGNC for mouse, and MGI for human); auto-generate ncbiRefSeqOther.as accordingly. refs #18997 diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c index 01eeef5..f0c9bcf 100644 --- src/hg/hgc/hgc.c +++ src/hg/hgc/hgc.c @@ -11922,31 +11922,37 @@ printf("", nrl->mrnaAcc); printf("%s
\n", nrl->mrnaAcc); } if (differentWord(nrl->genbank, "") && differentWord(nrl->genbank,nrl->id)) { printf("Genbank: "); printf("", nrl->genbank); printf("%s
\n", nrl->genbank); } if (differentWord(nrl->protAcc, "")) { printf("Protein: "); printf("", nrl->protAcc); printf("%s
\n", nrl->protAcc); } -if (differentWord(nrl->hgnc, "")) +if (startsWith("MGI", nrl->hgnc)) + { + printf("MGI: " + "%s
\n", + nrl->hgnc, nrl->hgnc); + } +else if (differentWord(nrl->hgnc, "")) { printf("HGNC: "); printf("", nrl->hgnc); printf("%s
\n", nrl->hgnc); } if (differentWord(nrl->locusLinkId, "")) { printf("Entrez Gene: "); printf("", nrl->locusLinkId); printf("%s
\n", nrl->locusLinkId); } if (differentWord(nrl->name,""))