92d22aef00c95d22ddf0013f5a58d2d4c67a3100 max Tue Dec 17 07:02:11 2019 -0800 changes after code review, refs #24660 diff --git src/hg/hgc/geneReviewsClick.c src/hg/hgc/geneReviewsClick.c index f207b20..3e06283 100644 --- src/hg/hgc/geneReviewsClick.c +++ src/hg/hgc/geneReviewsClick.c @@ -3,45 +3,44 @@ /* Copyright (C) 2014 The Regents of the University of California * See README in this or parent directory for licensing information. */ #include "common.h" #include "hgc.h" #include "geneReviewsClick.h" void doGeneReviews(struct trackDb *tdb, char *itemName) /* generate the detail page for geneReviews */ { struct sqlConnection *conn = hAllocConn(database); char *table = tdb->table; int start = cartInt(cart, "o"); int num = 4; genericHeader(tdb, itemName); - //removed genericBedClick(conn, tdb, itemName, start, num) and copied from there this more customized code char query[512]; char **row; struct bed *bed; boolean hasBin = TRUE; struct sqlResult *sr; sqlSafef(query, sizeof query, "select * from %s where name = '%s' and chrom = '%s' and chromStart = %d", table, itemName, seqName, start); sr = sqlGetResult(conn, query); while ((row = sqlNextRow(sr)) != NULL) { bed = bedLoadN(row+hasBin, num); - printf("Link to Gene Review: %s
\n", bed->name, bed->name); + printf("Link to Gene Reviews: %s
\n", bed->name, bed->name); printPos(bed->chrom, bed->chromStart, bed->chromEnd, NULL, TRUE, bed->name); } prGeneReviews(conn, itemName); printf("
"); printTrackHtml(tdb); hFreeConn(&conn); } void prGeneReviews(struct sqlConnection *conn, char *itemName) /* print GeneReviews associated to this item Note: this print function has been replaced by addGeneReviewToBed.pl which print the same information to the field 5 of bigBed file */ { struct sqlResult *sr;