c41282bd6cf17dd6d19072af594382ef7a33ee75 angie Thu Jun 9 10:57:54 2011 -0700 Track #1656 (GWAS Catalog) update: not the usual 5-minute reload,because NHGRI interspersed a bunch of new columns into their download file, and hg19 is now using snp132. diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c index 456892f..b53ae33 100644 --- src/hg/hgc/hgc.c +++ src/hg/hgc/hgc.c @@ -17128,31 +17128,32 @@ boolean first = TRUE; char **row; while ((row = sqlNextRow(sr)) != NULL) { if (first) first = FALSE; else printf("<HR>\n"); struct gwasCatalog *gc = gwasCatalogLoad(row+rowOffset); printCustomUrl(tdb, item, FALSE); printPos(gc->chrom, gc->chromStart, gc->chromEnd, NULL, TRUE, gc->name); printf("<B>Reported region:</B> %s<BR>\n", gc->region); printf("<B>Publication:</B> %s <em>et al.</em> " "<A HREF=\"", gc->author); printEntrezPubMedUidAbstractUrl(stdout, gc->pubMedID); - printf("\" TARGET=_BLANK>%s</A>. <em>%s.</em> %s<BR>\n", gc->title, gc->journal, gc->pubDate); + printf("\" TARGET=_BLANK>%s</A>%s <em>%s.</em> %s<BR>\n", + gc->title, (endsWith(gc->title, ".") ? "" : "."), gc->journal, gc->pubDate); printf("<B>Disease or trait:</B> %s<BR>\n", subNrNs(gc->trait)); printf("<B>Initial sample size:</B> %s<BR>\n", subNrNs(gc->initSample)); printf("<B>Replication sample size:</B> %s<BR>\n", subNrNs(gc->replSample)); printf("<B>Reported gene(s):</B> %s<BR>\n", subNrNs(gc->genes)); char *strongAllele = NULL, *strongRsID = splitSnpAndAllele(gc->riskAllele, &strongAllele); if (strongRsID) printf("<B>Strongest SNP-Risk allele:</B> " "<A HREF=\"http://www.ncbi.nlm.nih.gov/SNP/snp_ref.cgi?type=rs&rs=%s\" " "TARGET=_BLANK>%s</A>-%s<BR>\n", strongRsID, strongRsID, strongAllele); else printf("<B>Strongest SNP-Risk allele:</B> %s<BR>\n", subNrNs(gc->riskAllele)); gwasCatalogCheckSnpAlleles(tdb, gc); printf("<B>Risk Allele Frequency:</B> %s<BR>\n", subNrNs(gc->riskAlFreq)); if (isEmpty(gc->pValueDesc) || sameString(gc->pValueDesc, "NS")) printf("<B>p-Value:</B> %s<BR>\n", subNrNs(gc->pValue));