e70152e44cc66cc599ff6b699eb8adc07f3e656a kent Sat May 24 21:09:34 2014 -0700 Adding Copyright NNNN Regents of the University of California to all files I believe with reasonable certainty were developed under UCSC employ or as part of Genome Browser copyright assignment. diff --git src/hg/hgGene/pseudoGene.c src/hg/hgGene/pseudoGene.c index 7232580..79fe6fb 100644 --- src/hg/hgGene/pseudoGene.c +++ src/hg/hgGene/pseudoGene.c @@ -1,115 +1,118 @@ /* pseudoGene descriptions. */ +/* Copyright (C) 2013 The Regents of the University of California + * See README in this or parent directory for licensing information. */ + #include "common.h" #include "hash.h" #include "linefile.h" #include "dystring.h" #include "spDb.h" #include "hdb.h" #include "web.h" #include "genePred.h" #include "bed.h" #include "hgGene.h" static boolean pseudoGeneExists(struct section *section, struct sqlConnection *conn, char *geneId) /* Return TRUE if mrna on this one. */ { boolean result; result = FALSE; if (hTableExists(sqlGetDatabase(conn), "ucscRetroInfo")) { struct sqlResult *sr; char **row; char query[255]; sqlSafef(query, sizeof(query), "select name from ucscRetroInfo where name='%s' or kgName='%s' or refseq='%s'", geneId, geneId, geneId); sr = sqlGetResult(conn, query); if ((row = sqlNextRow(sr)) != NULL) { result = TRUE; } sqlFreeResult(&sr); } return(result); } static void pseudoGenePrint(struct section *section, struct sqlConnection *conn, char *geneId) /* Print out mrna descriptions annotations. */ { struct sqlResult *sr; char **row; char condStr[255]; char *descID, *desc; char *emptyStr; char query[255]; char *name, *chrom, *chromStart, *chromEnd, *refseq, *rtype; int score; webPrintLinkTableStart(); webPrintLabelCell("Retro Id"); webPrintLabelCell("Type"); webPrintLabelCell("Score "); webPrintLabelCell("Genome Location"); webPrintLabelCell("Description"); hPrintf("\n