9575c7ded6204e195d050b3bc18b77e43359423c braney Mon Feb 7 14:37:55 2022 -0800 remove links to PDB images which are no longer present. Change URL to structure to conform to current PDB site. diff --git src/hg/hgGene/domains.c src/hg/hgGene/domains.c index 5057d10..cfcc70c 100644 --- src/hg/hgGene/domains.c +++ src/hg/hgGene/domains.c @@ -146,57 +146,43 @@ el->name); hPrintf("%s - %s
\n", el->name, description); freez(&description); } slFreeList(&list); hPrintf("
\n"); } } list = spExtDbAcc1List(spConn, swissProtAcc, "PDB"); if (list != NULL) { struct sqlConnection *conn2 = sqlConnect(db); char query[256], **row; struct sqlResult *sr; - int column = 0, maxColumn=3, rowCount=0; hPrintf("Protein Data Bank (PDB) 3-D Structure
"); sqlSafef(query, sizeof(query), "select extAcc1,extAcc2 from extDbRef,extDb" " where extDbRef.acc = '%s'" " and extDb.val = 'PDB' and extDb.id = extDbRef.extDb" , swissProtAcc); sr = sqlGetResult(spConn, query); hPrintf("\n"); hPrintf("MuPIT help\n"); while ((row = sqlNextRow(sr)) != NULL) { - if (++column > maxColumn) - { - hPrintf(""); - column = 1; - if (rowCount == 0) - { - hPrintf(""); - } - ++rowCount; - } hPrintf("\n"); } hPrintf("
To conserve bandwidth, only the images from the first %d structures are shown.", maxColumn); - hPrintf("
"); - hPrintf("", row[0]); - if (rowCount < 1) - hPrintf("
", row[0]); + hPrintf("
", row[0]); hPrintf("%s - %s ", row[0], row[1]); // include links to MuPIT (formerly LS-SNP) if (lsSnpPdbHasPdb(conn2, row[0])) hPrintf(" MuPIT", lsSnpPdbGetUrlPdbSnp(row[0], NULL)); hPrintf("
\n"); hPrintf("

\n"); slFreeList(&list); sqlDisconnect(&conn2); } /* Do modBase link. */ { hPrintf("ModBase Predicted Comparative 3D Structure on ");