fe9ac1696e6c0b4d66262bcc4cb2b7dc5875d02d angie Tue Jan 11 10:22:17 2011 -0800 Small bugfix and format tweak for SNP details when there are multiplemappings to the genome. diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c index 399549c..730cced 100644 --- src/hg/hgc/hgc.c +++ src/hg/hgc/hgc.c @@ -16218,34 +16218,34 @@ errAbort("SNP %s not found at %s base %d", itemName, seqName, start); sqlFreeResult(&sr); safef(query, sizeof(query), "select * from %s where name='%s'", table, itemName); sr = sqlGetResult(conn, query); while ((row = sqlNextRow(sr)) != NULL) { if (version >= 132) snp = snp132ExtLoad(row+rowOffset); else snp = (struct snp132Ext *)snp125Load(row+rowOffset); if (snp->chromStart != start || differentString(snp->chrom, seqName)) { if (snpCount==0) - printf("
This SNP maps to these additional locations:" + printf("This SNP maps to these additional locations:" "

"); snpCount++; - bedPrintPos((struct bed *)&snp, 3, tdb); + bedPrintPos((struct bed *)snp, 3, tdb); printf("
"); } } sqlFreeResult(&sr); // Make table for collapsible sections: puts(""); checkForGwasCatalog(conn, tdb, itemName); checkForHgdpGeo(conn, tdb, itemName, start); checkForHapmap(conn, tdb, itemName); checkForLsSnpMappings(conn, tdb->track, itemName); printSnpAlignment(tdb, snpAlign); puts("
"); printTrackHtml(tdb); hFreeConn(&conn); }